[PATCH] ld: Hide symbols defined by HIDDEN/PROVIDE_HIDDEN

H.J. Lu hjl.tools@gmail.com
Tue May 22 03:36:00 GMT 2018


On Mon, May 21, 2018 at 6:26 PM, Alan Modra <amodra@gmail.com> wrote:
> On Sun, May 20, 2018 at 09:02:24PM -0700, H.J. Lu wrote:
>> On Sun, May 20, 2018 at 7:11 PM, Alan Modra <amodra@gmail.com> wrote:
>> > FAIL: ld-i386/pr23194
>> >
>> > and a similar result for ld-x86-64/pr23194
>>
>> I can't reproduce it on native x86-64 nor i686.
>
> Hmm, the failures disappeared when testing with your latest patch.  I
> suppose it might have been fixed by one of the other x86 patches that
> have gone in recently.
>
>> Here is the updated patch which avoids making forced local symbol
>> dynamic.  There are no regressions on native x86-64 and i686 as
>> well as for cross ppc-linux and ppc64-linux.
>
> OK.  It still feels like a hack to me, but trying to run
> record_link_assignment earlier will probably have its own set of
> problems.
>

I am checking in my patch together with this patch to adjust tic6x tests
for removing local symbol, __c6xabi_DSBT_BASE, defined by
PROVIDE_HIDDEN in linker script from dynamic symbol table.


-- 
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ld-Adjust-tic6x-tests.patch
Type: text/x-patch
Size: 129844 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20180522/2a61496c/attachment.bin>


More information about the Binutils mailing list