This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Can I link a.out .o with ELF?


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]