bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/11413] --no-export-dynamic broken for PIE?


From: xake at rymdraket dot net
Subject: [Bug ld/11413] --no-export-dynamic broken for PIE?
Date: 22 Mar 2010 08:23:43 -0000

------- Additional Comments From xake at rymdraket dot net  2010-03-22 08:23 
-------
Thanks for that, now the testcase passes.

But there is still more things exported when compiling a PIE file, then when
compiling a "normal" file, is this something we have to live with?

$ gcc -o test1 -Wl,--no-export-dynamic vers4.c 
$ gcc -o test2 -fPIE -pie -Wl,--no-export-dynamic vers4.c 
$ objdump -T test*

test1:     file format elf64-x86-64

DYNAMIC SYMBOL TABLE:
0000000000000000      DF *UND*  0000000000000000  GLIBC_2.2.5 printf
0000000000000000  w   D  *UND*  0000000000000000              __gmon_start__
0000000000000000      DF *UND*  0000000000000000  GLIBC_2.2.5 __libc_start_main
0000000000000000      DF *UND*  0000000000000000  GLIBC_2.4   __stack_chk_fail



test2:     file format elf64-x86-64

DYNAMIC SYMBOL TABLE:
0000000000000270 l    d  .interp        0000000000000000              .interp
0000000000000000      DF *UND*  0000000000000000  GLIBC_2.2.5 printf
0000000000000000  w   D  *UND*  0000000000000000              __gmon_start__
0000000000000000  w   D  *UND*  0000000000000000              
_Jv_RegisterClasses
0000000000000000      DF *UND*  0000000000000000  GLIBC_2.2.5 __libc_start_main
0000000000000000  w   DF *UND*  0000000000000000  GLIBC_2.2.5 __cxa_finalize
0000000000000000      DF *UND*  0000000000000000  GLIBC_2.4   __stack_chk_fail
0000000000201020 g    D  *ABS*  0000000000000000  Base        _end
0000000000201010 g    D  *ABS*  0000000000000000  Base        _edata
00000000000008e0 g    DF .text  0000000000000088  Base        __libc_csu_init
0000000000201010 g    D  *ABS*  0000000000000000  Base        __bss_start
000000000000087a g    DF .text  0000000000000054  Base        main
00000000000008d0 g    DF .text  0000000000000002  Base        __libc_csu_fini


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=11413

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]