This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: readelf: Allow relocations against function symbols


Hi,

Icc generates relocations against function symbols in .debug_info
section.  This patch allows it.  OK to install?

Thanks.

H.J.
---
2009-03-18  H.J. Lu  <hongjiu.lu@intel.com>

	* readelf.c (debug_apply_relocations): Allow relocations
	against function symbols.

--- binutils/readelf.c.func	2009-03-18 15:52:44.000000000 -0700
+++ binutils/readelf.c	2009-03-18 17:41:30.000000000 -0700
@@ -8536,6 +8536,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.  */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]