This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
RE: [PATCH v5] Fix dynamic linker issue with bind-now
- From: "Petar Jovanovic" <petar dot jovanovic at rt-rk dot com>
- To: "'Roland McGrath'" <roland at hack dot frob dot com>
- Cc: "'H.J. Lu'" <hjl dot tools at gmail dot com>, "'GNU C Library'" <libc-alpha at sourceware dot org>, "'Mike Frysinger'" <vapier at gentoo dot org>
- Date: Wed, 15 Jul 2015 22:45:50 +0200
- Subject: RE: [PATCH v5] Fix dynamic linker issue with bind-now
- Authentication-results: sourceware.org; auth=none
- References: <1436883776-79869-1-git-send-email-petar dot jovanovic at rt-rk dot com> <CAMe9rOpP4grHPgxxzwvR6SUJu9fa+rKMvo+O6tDNT8Svqj0neg at mail dot gmail dot com> <002e01d0bf2a$ea61e440$bf25acc0$ at rt-rk dot com> <20150715193158 dot D8C532C39DB at topped-with-meat dot com>
-----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