[PATCH 0/1] ld: Utilize specific digit ranges for different numeral systems
Xiao Zeng
zengxiao@eswincomputing.com
Tue Jan 7 01:54:54 GMT 2025
test.ld:
======================================================
ENTRY(_start)
SECTIONS {
.text 0x10000000 : {
xz = . + 19b;
*(.text*)
}
}
======================================================
Before patch:
======================================================
When linking with test.ld, there is no error message, and:
0x0000000010000001 xz = (. + 0x1)
======================================================
After patch:
======================================================
When linking with test.ld, an error message is shown:
riscv64-unknown-elf-ld:weakref.ld:4: syntax error
======================================================
Xiao Zeng (1):
ld: Utilize specific digit ranges for different numeral systems
ld/ldlex.l | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--
2.17.1
More information about the Binutils
mailing list