[Xtensa] handle non-existent property tables

Bob Wilson bwilson@tensilica.com
Wed May 7 23:19:00 GMT 2008


I've committed this patch for Xtensa.  At some point I had forgotten about the 
need to handle objects without the Xtensa-specific property sections.  The 
assembler always creates those sections so they're almost always present.  The 
function in BFD to retrieve a property section was attempting to create it if it 
did not exist.  That is wrong in contexts where the object is just being read as 
an input.

2008-05-07  Bob Wilson  <bob.wilson@acm.org>

bfd/
         * elf32-xtensa.c (xtensa_property_section_name): New.
         (xtensa_make_property_section): New.
         (xtensa_get_property_section): Make static.  Do not create a new
         section if it does not exist.
gas/
         * config/tc-xtensa.c (xtensa_create_property_segments): Use
         xtensa_make_property_section instead of xtensa_get_property_section.
         (xtensa_create_xproperty_segments): Likewise.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: binutils-prop-sec.patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20080507/7969d0e6/attachment.ksh>


More information about the Binutils mailing list