This is the mail archive of the binutils@sourceware.org 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]
Other format: [Raw text]

PIE and --(no-)export-dynamic


Should the -export-dynamic/--no-export-dynamic do any difference on a
PIE file?

As an example lets take ld/testsuite/ld-elfvers/vers4.c.
compile it:

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

If you objdump -T the resulting files you will see that test2 still
exports foo@@VERS_2.0 along other things (like main).

Is this a expected behaviour or is it a bug?
(this on a F13-box running ld 2.20.51.0.2, can reproduce on a Gentoo box
running 2.20.1)

Regards
Peter


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