This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH 00/12] Check UNDEFWEAK_NO_DYNAMIC_RELOC for weak undefined symbol
- From: Hans-Peter Nilsson <hp at bitrange dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: binutils at sourceware dot org
- Date: Thu, 12 Oct 2017 19:02:35 -0400 (EDT)
- Subject: Re: [PATCH 00/12] Check UNDEFWEAK_NO_DYNAMIC_RELOC for weak undefined symbol
- Authentication-results: sourceware.org; auth=none
- References: <20171012131007.27554-1-hjl.tools@gmail.com>
On Thu, 12 Oct 2017, H.J. Lu wrote:
> Don't generate dynamic relocation against weak undefined symbol if it
> is resolved to zero.
>
> H.J. Lu (12):
> Move UNDEFWEAK_NO_DYNAMIC_RELOC to elf-bfd.h
> aarch64: Check UNDEFWEAK_NO_DYNAMIC_RELOC
> tile: Check UNDEFWEAK_NO_DYNAMIC_RELOC
> arm: Check UNDEFWEAK_NO_DYNAMIC_RELOC
> mips: Check UNDEFWEAK_NO_DYNAMIC_RELOC
> ia64: Check UNDEFWEAK_NO_DYNAMIC_RELOC
> hppa: Check UNDEFWEAK_NO_DYNAMIC_RELOC
> m68k: Check UNDEFWEAK_NO_DYNAMIC_RELOC
> microblaze: Check UNDEFWEAK_NO_DYNAMIC_RELOC
> nios2: Check UNDEFWEAK_NO_DYNAMIC_RELOC
> s390: Check UNDEFWEAK_NO_DYNAMIC_RELOC
> sh: Check UNDEFWEAK_NO_DYNAMIC_RELOC
Looks like this would be the cure for the new FAILs
FAIL: PR ld/22269
FAIL: PR ld/22269 (-z dynamic-undefined-weak)
that I see for cris-linux with that test-case you added.
Could you please do the same for elf32-cris.c?
Thanks.
brgds, H-P