diff options
author | Nick Clifton <nickc@redhat.com> | 2003-12-11 18:10:19 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2003-12-11 18:10:19 +0000 |
commit | 03394ac99982865c474724a75bcbfdf682715da0 (patch) | |
tree | 19921e41671bceb49ee3834b2ba86d74415633b5 /bfd/elf.c | |
parent | 9db7c108d956729feeb8bac1e7b2303ad4ebbb70 (diff) | |
download | gdb-03394ac99982865c474724a75bcbfdf682715da0.zip gdb-03394ac99982865c474724a75bcbfdf682715da0.tar.gz gdb-03394ac99982865c474724a75bcbfdf682715da0.tar.bz2 |
(INCLUDE_SECTION_IN_SEGMENT): Skip PT_GNU_STACK segments.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r-- | bfd/elf.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -4625,8 +4625,9 @@ copy_private_bfd_data (bfd *ibfd, bfd *obfd) 2. It is an allocated segment, 3. There is an output section associated with it, 4. The section has not already been allocated to a previous segment. - 5. PT_TLS segment includes only SHF_TLS sections. - 6. SHF_TLS sections are only in PT_TLS or PT_LOAD segments. */ + 5. PT_GNU_STACK segments do not include any sections. + 6. PT_TLS segment includes only SHF_TLS sections. + 7. SHF_TLS sections are only in PT_TLS or PT_LOAD segments. */ #define INCLUDE_SECTION_IN_SEGMENT(section, segment, bed) \ ((((segment->p_paddr \ ? IS_CONTAINED_BY_LMA (section, segment, segment->p_paddr) \ @@ -4634,6 +4635,7 @@ copy_private_bfd_data (bfd *ibfd, bfd *obfd) && (section->flags & SEC_ALLOC) != 0) \ || IS_COREFILE_NOTE (segment, section)) \ && section->output_section != NULL \ + && segment->p_type != PT_GNU_STACK \ && (segment->p_type != PT_TLS \ || (section->flags & SEC_THREAD_LOCAL)) \ && (segment->p_type == PT_LOAD \ |