PATCH: Map GNU attributes section to PT_GNU_ATTR (aka PT_GNU_STACK) segment

Daniel Jacobowitz drow@false.org
Thu Aug 16 11:26:00 GMT 2007


On Wed, Aug 15, 2007 at 10:07:12AM -0700, H.J. Lu wrote:
> 2007-08-15  H.J. Lu  <hongjiu.lu@intel.com>
> 
> 	* elf.c (get_segment_type): Change PT_GNU_STACK to PT_GNU_ATTR.
> 	(bfd_section_from_phdr): Likewise.
> 	(get_program_header_size): Likewise. Add a PT_GNU_ATTR segment
> 	if there is an attribute section.
> 	(_bfd_elf_map_sections_to_segments): Likewise.
> 	(IS_SECTION_IN_INPUT_SEGMENT): Likewise.

How is this going to work?  .gnu.attributes is not SEC_ALLOC.  Also,
I'm not sure we can make .ARM.attributes SEC_ALLOC without breaking
the ARM EABI.

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Binutils mailing list