diff options
author | Alan Modra <amodra@gmail.com> | 2019-07-24 15:03:49 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2019-07-24 16:12:01 +0930 |
commit | 7137a1ed0ad9afdd57e6ef44abbfaeaeb44dd17e (patch) | |
tree | b7ff41603cbdcbb4ffe3055527f2dbd828fcd4f9 /include/elf/internal.h | |
parent | 024a5840006aba9ba698aa9d868a7394016dd4a0 (diff) | |
download | gdb-7137a1ed0ad9afdd57e6ef44abbfaeaeb44dd17e.zip gdb-7137a1ed0ad9afdd57e6ef44abbfaeaeb44dd17e.tar.gz gdb-7137a1ed0ad9afdd57e6ef44abbfaeaeb44dd17e.tar.bz2 |
PT_GNU_MBIND section mapping
* elf/internal.h (ELF_SECTION_IN_SEGMENT_1): Exclude non-alloc
sections in GNU_MBIND segments.
Diffstat (limited to 'include/elf/internal.h')
-rw-r--r-- | include/elf/internal.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/elf/internal.h b/include/elf/internal.h index e29fc40..59e3ede 100644 --- a/include/elf/internal.h +++ b/include/elf/internal.h @@ -330,8 +330,10 @@ struct elf_segment_map && ((segment)->p_type == PT_LOAD \ || (segment)->p_type == PT_DYNAMIC \ || (segment)->p_type == PT_GNU_EH_FRAME \ + || (segment)->p_type == PT_GNU_STACK \ || (segment)->p_type == PT_GNU_RELRO \ - || (segment)->p_type == PT_GNU_STACK)) \ + || ((segment)->p_type >= PT_GNU_MBIND_LO \ + && (segment)->p_type <= PT_GNU_MBIND_HI))) \ /* Any section besides one of type SHT_NOBITS must have file \ offsets within the segment. */ \ && ((sec_hdr)->sh_type == SHT_NOBITS \ |