summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2019-07-27 13:14:11 -0700
committerH. Peter Anvin <hpa@zytor.com>2019-07-27 13:14:11 -0700
commit171fede3520f64b5f6a689a44200f3e09d682565 (patch)
treeb6454671f469da7e16a8d5984285a772033a2188
parentf273765a6737c98e7da7d4ceb6e054c9cb41202b (diff)
downloadbinutils-171fede3520f64b5f6a689a44200f3e09d682565.tar.gz
binutils-171fede3520f64b5f6a689a44200f3e09d682565.tar.xz
binutils-171fede3520f64b5f6a689a44200f3e09d682565.zip
bfd/elf32-i386.c: R_386_SEG16 is not a PC-relative relocation
p->pc_count should not be incremented, lest we don't end up with enough space in the .rel.dyn section for R_386_SEGRELATIVE. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--bfd/elf32-i386.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c
index cd12cc8bfd..7998286f3f 100644
--- a/bfd/elf32-i386.c
+++ b/bfd/elf32-i386.c
@@ -1925,7 +1925,7 @@ do_size:
p->count += 1;
/* Count size relocation as PC-relative relocation. */
- if (r_type == R_386_PC32 || r_type == R_386_SEG16 || size_reloc)
+ if (r_type == R_386_PC32 || size_reloc)
p->pc_count += 1;
}
break;