aboutsummaryrefslogtreecommitdiff
path: root/libiberty/simple-object.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2017-10-18 11:20:31 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2017-10-18 11:20:31 +0200
commitf8049c44b999c27e4573be61aebb3aeedfa0a471 (patch)
tree32b58288db1646967f927fe5f8ad0201503115f1 /libiberty/simple-object.c
parentac2bb5222b47c6d79372ecbc16da3b282792ea07 (diff)
downloadgcc-f8049c44b999c27e4573be61aebb3aeedfa0a471.zip
gcc-f8049c44b999c27e4573be61aebb3aeedfa0a471.tar.gz
gcc-f8049c44b999c27e4573be61aebb3aeedfa0a471.tar.bz2
re PR lto/82598 (lto debugobj lacks .note.GNU-stack)
PR lto/82598 * simple-object.c (handle_lto_debug_sections): Copy over also .note.GNU-stack section with unchanged name. * simple-object-elf.c (SHF_EXECINSTR): Define. (simple_object_elf_copy_lto_debug_section): Drop SHF_EXECINSTR bit on .note.GNU-stack section. From-SVN: r253851
Diffstat (limited to 'libiberty/simple-object.c')
-rw-r--r--libiberty/simple-object.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libiberty/simple-object.c b/libiberty/simple-object.c
index 553e90f..19d222f 100644
--- a/libiberty/simple-object.c
+++ b/libiberty/simple-object.c
@@ -273,6 +273,9 @@ handle_lto_debug_sections (const char **name)
*name = *name + sizeof (".gnu.lto_") - 1;
return 1;
}
+ /* Copy over .note.GNU-stack section under the same name if present. */
+ else if (strcmp (*name, ".note.GNU-stack") == 0)
+ return 1;
return 0;
}