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]

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


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


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