[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/32464] New: ld allows adding 2 relative symbols. lld rejec
From: |
stsp at users dot sourceforge.net |
Subject: |
[Bug binutils/32464] New: ld allows adding 2 relative symbols. lld rejects |
Date: |
Mon, 16 Dec 2024 09:27:42 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=32464
Bug ID: 32464
Summary: ld allows adding 2 relative symbols. lld rejects
Product: binutils
Version: 2.43.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: binutils
Assignee: unassigned at sourceware dot org
Reporter: stsp at users dot sourceforge.net
Target Milestone: ---
Created attachment 15843
--> https://sourceware.org/bugzilla/attachment.cgi?id=15843&action=edit
test-case
Attached is a test-case.
$ ./test.sh
bfd linked allowed this, BAD
ld.lld: error: kernel.ld:5: at least one side of the expression must be
absolute
lld linker rejected this, GOOD
The culprit is this expression
in linker script:
SHOULD_FAIL = . + .;
lld reject it with the above error
message, while bfd linker silently
allows. I believe it should be rejected.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug binutils/32464] New: ld allows adding 2 relative symbols. lld rejects,
stsp at users dot sourceforge.net <=