aboutsummaryrefslogtreecommitdiff
path: root/include/elf
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2018-06-21 23:19:41 +0930
committerAlan Modra <amodra@gmail.com>2018-06-26 21:28:05 +0930
commit2393a7e3e6b3ec51bc404c6adebffea5db9f04b1 (patch)
tree5ed9bd349bafaa18582932801abe55f35b66d54e /include/elf
parenteca4b721468e239a6a1ca7c9bd9c967085067dfe (diff)
downloadgdb-2393a7e3e6b3ec51bc404c6adebffea5db9f04b1.zip
gdb-2393a7e3e6b3ec51bc404c6adebffea5db9f04b1.tar.gz
gdb-2393a7e3e6b3ec51bc404c6adebffea5db9f04b1.tar.bz2
Revert "Use offsets instead of addresses in ELF_SECTION_IN_SEGMENT for non SHT_NOBITS"
This reverts commit 57c0d77c2ce5e583dab322e05f8291bcbad0ccd3.
Diffstat (limited to 'include/elf')
-rw-r--r--include/elf/internal.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/elf/internal.h b/include/elf/internal.h
index b012820..05f9fab 100644
--- a/include/elf/internal.h
+++ b/include/elf/internal.h
@@ -342,10 +342,8 @@ struct elf_segment_map
&& (((sec_hdr)->sh_offset - (segment)->p_offset \
+ ELF_SECTION_SIZE(sec_hdr, segment)) \
<= (segment)->p_filesz))) \
- /* SHT_NOBITS sections with SHF_ALLOC must have VMAs within the \
- segment. */ \
+ /* SHF_ALLOC sections must have VMAs within the segment. */ \
&& (!(check_vma) \
- || (sec_hdr)->sh_type != SHT_NOBITS \
|| ((sec_hdr)->sh_flags & SHF_ALLOC) == 0 \
|| ((sec_hdr)->sh_addr >= (segment)->p_vaddr \
&& (!(strict) \