summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2019-07-30 00:29:39 -0700
committerH. Peter Anvin <hpa@zytor.com>2019-07-30 00:29:39 -0700
commitcd5ea1c0f3d25621fc9a725f82c18d007397cddd (patch)
tree8c0b1ad681263fa84b91a00ea4d07504d2dd650a
parentf89bb7693885f552537481b00b2a3aa9a0d1ecd5 (diff)
downloadbinutils-cd5ea1c0f3d25621fc9a725f82c18d007397cddd.tar.gz
binutils-cd5ea1c0f3d25621fc9a725f82c18d007397cddd.tar.xz
binutils-cd5ea1c0f3d25621fc9a725f82c18d007397cddd.zip
gas/config/tc-i386.c: don't convert SEG16 relocations
tc_gen_reloc() would convert BFD_RELOC_386_SEG16 to BFD_RELOC_16, which is obviously wrong. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--gas/config/tc-i386.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index fb9b29ebfe..1274fbbaa8 100644
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -12109,6 +12109,7 @@ tc_gen_reloc (asection *section ATTRIBUTE_UNUSED, fixS *fixp)
case BFD_RELOC_386_TLS_LE:
case BFD_RELOC_386_TLS_GOTDESC:
case BFD_RELOC_386_TLS_DESC_CALL:
+ case BFD_RELOC_386_SEG16:
case BFD_RELOC_X86_64_TLSGD:
case BFD_RELOC_X86_64_TLSLD:
case BFD_RELOC_X86_64_DTPOFF32: