This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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]

RE: [PATCH v5] Fix dynamic linker issue with bind-now


-----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


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