https://sourceware.org/bugzilla/show_bug.cgi?id=35060
Bug ID: 35060
Summary: x86: gas internal error on jmp sym@GOT
Product: binutils
Version: 2.47
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: gas
Assignee: unassigned at sourceware dot org
Reporter: mumumu0722 at gmail dot com
Target Milestone: ---
Hello,
gas aborts with an internal error, instead of reporting a proper error, on jmp
sym@GOT when sym is a global symbol with default visibility.
$ cat x86-gas-jmp-global-got.s
.globl sym
sym:
jmp sym@GOT
$ as --version
GNU assembler (GNU Binutils) 2.47.50.20261122
$ as x86-gas-jmp-global-got.s -o t.o
x86-gas-jmp-global-got.s: Assembler messages:
x86-gas-jmp-global-got.s: Internal error in elf_symbol_resolved_in_segment_p at
/src/binutils/gas/config/tc-i386.c:16316.
Please report this bug.
Expected: an error, as gas gives for "call sym@GOT":
Error: non-pc-relative relocation for pc-relative field
Godbolt: https://godbolt.org/z/za6Gon1s6
This issue is found through fuzzing/automated testing.
Thanks.
--
You are receiving this mail because:
You are on the CC list for the bug.