public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: "H . J . Lu" <hjl@lucon.org>
To: Alan Modra <alan@linuxcare.com.au>
Cc: binutils@sourceware.cygnus.com
Subject: Re: Can I link a.out .o with ELF?
Date: Sun, 04 Jun 2000 22:17:00 -0000	[thread overview]
Message-ID: <20000604221658.A11726@lucon.org> (raw)
In-Reply-To: <20000604213130.A11634@lucon.org>

On Sun, Jun 04, 2000 at 09:31:30PM -0700, H . J . Lu wrote:
> 
> It seems that ELF_LINK_NON_ELF doesn't work too well with symbol
> versioning. As the result, when a verioned symbol is referenced
> in an a.out .o file, the ELF_LINK_NON_ELF bit on the default symbol
> is not set. I am not sure what else is not working right.
> 

I have a patch to stop ld from dumping core. But it still doesn't
work right. On Linux/ia32/glibc 2.1 or glibc 2.2:

# make
gcc -o ok dummy.c x.o
gcc -o not x.o dummy.c
./ok || true
hello
./not
make: *** [all] Interrupt

I had to use Ctrl-C to stop it. The problem is ld sees printf
in x.o first.


H.J.
----
begin 644 aout.tar.gz
M'XL(```W.SD``^V72V_30!"`70$"KX2HQ*47I)$5I`0UV_4C3@E"0O*AEY9;
M;PCDVIO$Q+$C/Z)0RBDG;OPG>N&'('&`&V?*;.)`*B1R2E#+?,IZ9W9GL]9X
M9C5[Y`]D-XJEMD:$*83K.)H0*+GF<C_#<EU-M$W3=6W;;MO*WK5=#<0Z7VI!
MF1=^!J#U7\=_M5LU?T7QO*>](&#,C^,.I`-(TH+I?`^ELS,HLE(J30TR?'1@
MPE,(R^'P#0^87JM[7@.:*=2>0>TE8^F@LYA4AG\:!+'TDP[3LR$TNXO=&/H?
MQ]17"+JGX*=EP5'AO5,XJH)S^5^QY>Q?>^WZ4'EVK7NLRG_AM'_EOV4+9>^X
M%N7_)ABG4<AF00#UH(^>>)0WV%L&,,JBI.A"/6\\8>\HX:XK>**N?8]5^>_:
M3I7_PA)."\?;KNE0_F^"VUNAMK/U6U_X?+OJ^S*.4Z9]^%\Y?O]Y^O7.]/Q[
M7WGCR[<?%Q?3\^U/'QGZ[";^[F%_0]/NHJST&?>7Y!ULMY2`=@_FW8P:-BR\
MK%=!.AQAB1-RC1]Z0AOZ4:+-S]YU??)+8#6U]CU6Y;]CM9?RWY[G/]7_&T'G
MJL#6C0D/#"SUQS++HS31#6%R81KL<HAV&"_DI&`J4K%DYWF!@=K3C=DA\2(Q
MJFF=^W'42V"?\5Z<GL2@@IJI!RX:E7D_AH?R9,3T83I68C[:G>MYB<:U_5TU
MQ'0_#%%KFE:ESU?6U.9,#_#"4M4H"TO3K0SQEC'&>TLFU:M$H4P*W3CPO`[4
M#YX?-\#BCUO<!DN%7DO8>X=14DZ@/LID)G%I+AL&U3L$01`$01`$01`$01`$
001`$05Q=?@(H\\^``"@`````
`
end

  reply	other threads:[~2000-06-04 22:17 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-06-04 18:07 H . J . Lu
2000-06-04 18:16 ` H . J . Lu
2000-06-04 18:30 ` Alan Modra
2000-06-04 18:38   ` H . J . Lu
2000-06-04 21:31     ` H . J . Lu
2000-06-04 22:17       ` H . J . Lu [this message]
2000-06-05  7:28         ` Alan Modra
2000-06-05  7:57           ` H . J . Lu
2000-06-05  8:58           ` H . J . Lu
2000-06-05  9:49           ` Ian Lance Taylor
2000-06-05 10:15             ` H . J . Lu
2000-06-05 10:16               ` Ian Lance Taylor
2000-06-05 10:23                 ` H . J . Lu
2000-06-05  7:46   ` H . J . Lu
2000-06-05 10:54 Mark Kettenis
2000-06-05 11:15 ` H . J . Lu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20000604221658.A11726@lucon.org \
    --to=hjl@lucon.org \
    --cc=alan@linuxcare.com.au \
    --cc=binutils@sourceware.cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).