This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


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

Re: Versioning mess proved!!!



Franz.Sirl-kernel@lauterbach.com said:
> If you change the last compile command to:
>  gcc tA-22.c -fpic -Wl,-v -L213 -ltB -o tA
$ gcc tA-22.c -fpic -Wl,-v -L213 -ltB -o tA
collect2 version 2.96 20000929 (experimental) (Alpha GNU/Linux for ELF)
/usr/bin/ld -m elf64alpha -O1 -dynamic-linker /lib/ld-linux.so.2 -o tA
 /usr/lib/gcc-lib/alpha-redhat-linux/2.96/../../../crt1.o
 /usr/lib/gcc-lib/alpha-redhat-linux/2.96/../../../crti.o
 /usr/lib/gcc-lib/alpha-redhat-linux/2.96/crtbegin.o -L213
 -L/usr/lib/gcc-lib/alpha-redhat-linux/2.96
 -L/usr/lib/gcc-lib/alpha-redhat-linux/2.96/../../.. /tmp/ccjNsAta.o
 -v -ltB -lgcc -lc -lgcc /usr/lib/gcc-lib/alpha-redhat-linux/2.96/crtend.o
 /usr/lib/gcc-lib/alpha-redhat-linux/2.96/../../../crtn.o
GNU ld version 2.10.91 (with BFD 2.10.0.26)

> (added -fpic), what does objdump/readelf tell you?
$ objdump -xTR tA|grep foo
0000000000000000  w    F *UND*  0000000000000024              0x80 foo
0000000000000000  w   DF *UND*  0000000000000024              0x80 foo
0000000120100998 GLOB_DAT          foo

$ readelf -a tA|grep foo
  120100998  a00000019 R_ALPHA_GLOB_DAT      0000000000000000  foo                       + 0
    10: 0000000000000000    36 FUNC    WEAK   DEFAULT  UND foo
   108: 0000000000000000    36 FUNC    WEAK   DEFAULT  UND foo

No JMP_SLOT thing...

Cheers,
					Christian



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