From: H.J. Lu Date: Thu, 19 Mar 2009 02:38:53 +0000 (+0000) Subject: 2009-03-18 H.J. Lu X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=13e4f8ad17b4c8a6a6bcfe6aebe8647068985ce0;p=binutils-gdb.git 2009-03-18 H.J. Lu * readelf.c (debug_apply_relocations): Allow relocations against function symbols. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index fc43990f4d8..c6984416d17 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2009-03-18 H.J. Lu + + * readelf.c (debug_apply_relocations): Allow relocations + against function symbols. + 2009-03-18 Alan Modra * sysdep.h: Include alloca-conf.h instead of config.h and remove diff --git a/binutils/readelf.c b/binutils/readelf.c index 3431249a807..276d4dd59b5 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -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. */