diff options
author | Alan Modra <amodra@gmail.com> | 2010-04-24 01:05:25 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2010-04-24 01:05:25 +0000 |
commit | 9a83a5533e5c082e2555505e7290456e4eb6afcb (patch) | |
tree | b5553fbdfd6eff8e95ab9d699f574b8799071cdb /bfd/elf32-spu.c | |
parent | 2cd2156f48361fa342ce1ad18cead5cae6ce4af5 (diff) | |
download | gdb-9a83a5533e5c082e2555505e7290456e4eb6afcb.zip gdb-9a83a5533e5c082e2555505e7290456e4eb6afcb.tar.gz gdb-9a83a5533e5c082e2555505e7290456e4eb6afcb.tar.bz2 |
include/elf/
* internal.h (ELF_SECTION_SIZE): Protect macro args with parentheses.
Invert logic to clarify test for .tbss.
(ELF_IS_SECTION_IN_SEGMENT): Rename to..
(ELF_SECTION_IN_SEGMENT_1): ..this. Add check_vma param. Protect
macro args with parentheses.
(ELF_SECTION_IN_SEGMENT): Define.
(ELF_IS_SECTION_IN_SEGMENT_FILE): Delete.
(ELF_IS_SECTION_IN_SEGMENT_MEMORY): Delete.
bfd/
* elf.c: Replace use of ELF_IS_SECTION_IN_SEGMENT and
ELF_IS_SECTION_IN_SEGMENT_FILE with ELF_SECTION_IN_SEGMENT
throughout file.
(assign_file_positions_for_load_sections): Modify section in
segment warning to ignore overlay vmas.
* elf32-spu.c (spu_elf_object_p): Replace use of
ELF_IS_SECTION_IN_SEGMENT_MEMORY with ELF_SECTION_IN_SEGMENT.
binutils/
* readelf.c (process_program_headers): Replace use of
ELF_IS_SECTION_IN_SEGMENT_MEMORY with ELF_SECTION_IN_SEGMENT.
Diffstat (limited to 'bfd/elf32-spu.c')
-rw-r--r-- | bfd/elf32-spu.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/elf32-spu.c b/bfd/elf32-spu.c index b29b35c..bf1adba 100644 --- a/bfd/elf32-spu.c +++ b/bfd/elf32-spu.c @@ -272,7 +272,8 @@ spu_elf_object_p (bfd *abfd) { Elf_Internal_Shdr *shdr = elf_elfsections (abfd)[j]; - if (ELF_IS_SECTION_IN_SEGMENT_MEMORY (shdr, phdr)) + if (ELF_SECTION_SIZE (shdr, phdr) != 0 + && ELF_SECTION_IN_SEGMENT (shdr, phdr)) { asection *sec = shdr->bfd_section; spu_elf_section_data (sec)->u.o.ovl_index = num_ovl; |