OSDN Git Service

include/elf/
authorAlan Modra <amodra@bigpond.net.au>
Wed, 2 May 2007 13:44:37 +0000 (13:44 +0000)
committerAlan Modra <amodra@bigpond.net.au>
Wed, 2 May 2007 13:44:37 +0000 (13:44 +0000)
commitb70f636b4b3714e31ba51629dd5af2c8964f094e
tree7b7acfcab3f9c5c123fea8b8d83cdacffaa41e40
parent6dac2a2a909c274137a7a1a7df9f8187b444cc4f
include/elf/
* internal.h (ELF_IS_SECTION_IN_SEGMENT): Check both file offset
and vma for appropriate sections.
bfd/
* elf.c (assign_file_positions_for_load_sections): Set sh_offset
here.  Set sh_type to SHT_NOBITS if we won't be allocating
file space.  Don't bump p_memsz for non-alloc sections.  Adjust
section-in-segment check.
(assign_file_positions_for_non_load_sections): Don't set sh_offset
here for sections that have already been handled above.
bfd/ChangeLog
bfd/elf.c
include/elf/ChangeLog
include/elf/internal.h