summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils-2.17
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2019-01-13 23:08:22 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2019-01-13 23:08:22 +0000
commit005db88a37268e95a478becee883f350508acb29 (patch)
treed1b87af48c546524626282601f625ea312a3149a /gnu/usr.bin/binutils-2.17
parent0f173df9d8506997f78c3516240cdfc82b39f1ae (diff)
Ignore LLVM 7's ADDRSIG section.
Problem reported by bluhm@ ok kettenis@
Diffstat (limited to 'gnu/usr.bin/binutils-2.17')
-rw-r--r--gnu/usr.bin/binutils-2.17/bfd/elf.c3
-rw-r--r--gnu/usr.bin/binutils-2.17/include/elf/common.h2
2 files changed, 5 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 f9e750b4f7d..91e47a6fd0e 100644
--- a/gnu/usr.bin/binutils-2.17/bfd/elf.c
+++ b/gnu/usr.bin/binutils-2.17/bfd/elf.c
@@ -2177,6 +2177,9 @@ bfd_section_from_shdr (bfd *abfd, unsigned int shindex)
}
break;
+ case SHT_LLVM_ADDRSIG:
+ return TRUE;
+
default:
/* Check for any processor-specific section types. */
return bed->elf_backend_section_from_shdr (abfd, hdr, name,
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 3a7fcd09a17..545c1748fb5 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,8 @@
#define SHT_GNU_verneed SHT_SUNW_verneed
#define SHT_GNU_versym SHT_SUNW_versym
+#define SHT_LLVM_ADDRSIG 0x6fff4c03 /* List of address-significant symbols */
+
#define SHT_LOPROC 0x70000000 /* Processor-specific semantics, lo */
#define SHT_HIPROC 0x7FFFFFFF /* Processor-specific semantics, hi */
#define SHT_LOUSER 0x80000000 /* Application-specific semantics */