[PATCH] LD: PROVIDE_HIDDEN export class problem

John David Anglin dave.anglin@bell.net
Wed May 1 20:33:00 GMT 2013


On 4/29/2013 6:30 PM, Maciej W. Rozycki wrote:
> 2. For the hppa64-hp-hpux11.23 and hppa64-linux targets the backend
>     produces .dynsym and .dynstr sections even in static links.  The former
>     section is empty and the latter contains a single zero byte, however
>     the result is they show up in `readelf -s' dumps.  Other dynamic
>     sections are also produced as is a dynamic segment.
>
>     This is probably a bug in these backends; especially for Linux I fail
>     to see a reason why the kernel would require any dynamic file
>     structures in a static executable.  I will appreciate feedback from
>     HPPA maintainers; meanwhile I have tweaked test patterns to discard
>     rubbish before static symbol table dumps to avoid failures on these
>     targets (I'd prefer to remove the tweak though, if that is indeed a
>     bug).
This is definitely intentional for HP-UX.  See discussion in this
thread: <http://sourceware.org/ml/binutils/2002-02/msg00365.html>.

For Linux, it's probably a bug but it isn't a problem as far as
I know.

Dave

-- 
John David Anglin    dave.anglin@bell.net



More information about the Binutils mailing list