include/elf/
authorAlan Modra <amodra@gmail.com>
Wed, 2 May 2007 13:44:37 +0000 (13:44 +0000)
committerAlan Modra <amodra@gmail.com>
Wed, 2 May 2007 13:44:37 +0000 (13:44 +0000)
commit627b32bcf9eadc335b8c07f7cf8ea7155ef15fbd
treed5699c6c907692bc6530872e60fc2e3564792f80
parent2afd3f0adc4f70d8d5bd4bc57a6eb53542edf66f
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