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

2010-03-21 Thread xake at rymdraket dot net
When building a file with -fPIE -pie and -Wl,--no-export-dynamic it still export dynamic symbols not exported for a "normal" executable. According to info ld this should normally not happen, but does not specify what is considered not normal. As this behavior actually breaks the testsuite for ld if

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

2010-03-21 Thread hjl dot tools at gmail dot com
--- Additional Comments From hjl dot tools at gmail dot com 2010-03-21 19:26 --- This patch works for me: diff --git a/bfd/elflink.c b/bfd/elflink.c index 8f6b5f4..98ea753 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -1715,7 +1715,7 @@ _bfd_elf_add_default_symbol (bfd *abfd,

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

2010-03-21 Thread hjl dot tools at gmail dot com
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2010-03-21 23:27 --- Subject: Bug 11413 CVSROOT:/cvs/src Module name:src Changes by: h...@sourceware.org 2010-03-21 23:26:33 Modified files: bfd: ChangeLog elflink.c Log message: