summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils-2.17
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2019-01-31 21:56:13 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2019-01-31 21:56:13 +0000
commit8a2ee2338024963919418ac67a86834bed091566 (patch)
tree5849b2db7b1ff34b4e2275263b731f01a16d04b4 /gnu/usr.bin/binutils-2.17
parent1676e6495620027a2512a4343589fe8d4f01815a (diff)
Ignore LLVM 7's LINKER_OPTIONS section.
ok patrick@, naddy@
Diffstat (limited to 'gnu/usr.bin/binutils-2.17')
-rw-r--r--gnu/usr.bin/binutils-2.17/bfd/elf.c1
-rw-r--r--gnu/usr.bin/binutils-2.17/include/elf/common.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/gnu/usr.bin/binutils-2.17/bfd/elf.c b/gnu/usr.bin/binutils-2.17/bfd/elf.c
index 91e47a6fd0e..b36d116048f 100644
--- a/gnu/usr.bin/binutils-2.17/bfd/elf.c
+++ b/gnu/usr.bin/binutils-2.17/bfd/elf.c
@@ -2177,6 +2177,7 @@ bfd_section_from_shdr (bfd *abfd, unsigned int shindex)
}
break;
+ case SHT_LLVM_LINKER_OPTIONS:
case SHT_LLVM_ADDRSIG:
return TRUE;
diff --git a/gnu/usr.bin/binutils-2.17/include/elf/common.h b/gnu/usr.bin/binutils-2.17/include/elf/common.h
index 545c1748fb5..8a4220d9a34 100644
--- a/gnu/usr.bin/binutils-2.17/include/elf/common.h
+++ b/gnu/usr.bin/binutils-2.17/include/elf/common.h
@@ -360,6 +360,7 @@
#define SHT_GNU_verneed SHT_SUNW_verneed
#define SHT_GNU_versym SHT_SUNW_versym
+#define SHT_LLVM_LINKER_OPTIONS 0x6fff4c01 /* Linker options */
#define SHT_LLVM_ADDRSIG 0x6fff4c03 /* List of address-significant symbols */
#define SHT_LOPROC 0x70000000 /* Processor-specific semantics, lo */