[PATCH v5] Fix dynamic linker issue with bind-now
Petar Jovanovic
petar.jovanovic@rt-rk.com
Wed Jul 15 20:45:00 GMT 2015
-----Original Message-----
From: Roland McGrath [mailto:roland@hack.frob.com]
Sent: Wednesday, July 15, 2015 9:32 PM
To: Petar Jovanovic <petar.jovanovic@rt-rk.com>
Cc: 'H.J. Lu' <hjl.tools@gmail.com>; 'GNU C Library'
<libc-alpha@sourceware.org>; 'Mike Frysinger' <vapier@gentoo.org>
Subject: RE: [PATCH v5] Fix dynamic linker issue with bind-now
>> As "static int const __attribute__ ..."?
>> In that case, bar is removed from the sections list, likely due to some
optimizations.
>__attribute__ ((used)) will probably fix that.
It seems that just removing 'static' is sufficient.
I will send another patch with:
const int __attribute__ ((section(".bar"))) bar = 0x12345678;
Regards,
Petar
More information about the Libc-alpha
mailing list