2009-03-18 H.J. Lu <hongjiu.lu@intel.com>
* readelf.c (debug_apply_relocations): Allow relocations against function symbols.
This commit is contained in:
parent
7728216e03
commit
13e4f8ad17
2 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2009-03-18 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* readelf.c (debug_apply_relocations): Allow relocations
|
||||
against function symbols.
|
||||
|
||||
2009-03-18 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* sysdep.h: Include alloca-conf.h instead of config.h and remove
|
||||
|
|
|
@ -8394,6 +8394,9 @@ debug_apply_relocations (void * file,
|
|||
Gcc -feliminate-dwarf2-dups may generate symbols
|
||||
without type for debug info. */
|
||||
&& ELF_ST_TYPE (sym->st_info) != STT_NOTYPE
|
||||
/* Icc generates relocations against function symbols
|
||||
instead of local labels. */
|
||||
&& ELF_ST_TYPE (sym->st_info) != STT_FUNC
|
||||
/* Relocations against object symbols can happen,
|
||||
eg when referencing a global array. For an
|
||||
example of this see the _clz.o binary in libgcc.a. */
|
||||
|
|
Loading…
Reference in a new issue