fix Xtensa ld's handling of XCC exception tables

Bob Wilson
Fri Oct 13 11:02:00 GMT 2006

Tensilica's XCC compiler uses its own format for C++ exception tables.  These 
tables go in .xt_except_table and .xt_except_desc sections, or the 
.gnu.linkonce.e.* and .gnu.linkonce.h.* versions.  (Yes, ".e" and ".h" were not 
very good choices for those section names, but they're hard to change now.) 
I've committed this patch to make ld ignore relocations from these tables to 
text that is not included in the link.

	* elf32-xtensa.c (elf_xtensa_action_discarded): New.
	(elf_backend_action_discarded): Define.
	* emultempl/xtensaelf.em (is_inconsistent_linkonce_section): Check
	for linkonce XCC exception tables (".e" and ".h").

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: binutils-xcc-excepts.patch
URL: <>

More information about the Binutils mailing list