This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
RE: PATCH: PR ld/11218: --gc-sections does not detect unresolved symbol
- From: "Stern, Eli" <eli dot stern at ti dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: "binutils at sourceware dot org" <binutils at sourceware dot org>
- Date: Wed, 24 Feb 2010 16:40:05 +0100
- Subject: RE: PATCH: PR ld/11218: --gc-sections does not detect unresolved symbol
- References: <6dc9ffc81001251125n3c2c97b5l602ad7e8b5af2bdc@mail.gmail.com>
I tried the patch. This is the error message I get:
/data/t-toolchain/t-20100224/usr/bin/../lib/gcc/armeb-linux-uclibceabi/4.2.0/../../../../armeb-linux-uclibceabi/bin/ld generated: undefined reference to `unresolved_detected_at_runtime_not_at_linktime'
collect2: ld returned 1 exit status
Thanx
Eli Stern
-----Original Message-----
From: H.J. Lu [mailto:hjl.tools@gmail.com]
Sent: Monday, January 25, 2010 9:26 PM
snip
>
>
Here is a patch. OK to install?
Thanks.
--
H.J.
---
bfd/
2010-01-25 Alan Modra <amodra@gmail.com>
H.J. Lu <hongjiu.lu@intel.com>
PR ld/11218
* elflink.c (elf_link_output_extsym): Do not ignore undefined
symbols with ref_regular set when gc_sections is active.
ld/testsuite/
2010-01-25 H.J. Lu <hongjiu.lu@intel.com>
PR ld/11218
* ld-gc/dummy.s: New.
* ld-gc/pr11218-1.c: Likewise.
* ld-gc/pr11218-2.c: Likewise.
* ld-gc/pr11218.d: Likewise.