[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/25784] New: [ld] Reject addresses outside [0,2**32) for ELFCLASS
From: |
i at maskray dot me |
Subject: |
[Bug ld/25784] New: [ld] Reject addresses outside [0,2**32) for ELFCLASS32 |
Date: |
Sat, 04 Apr 2020 22:54:13 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=25784
Bug ID: 25784
Summary: [ld] Reject addresses outside [0,2**32) for ELFCLASS32
Product: binutils
Version: 2.35 (HEAD)
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: i at maskray dot me
Target Milestone: ---
cat > a.lds <<e
SECTIONS {
. = 0xffffffff80000000;
. += 0x100000;
_text = .;
}
e
as --32 /dev/null -o a.o
ld.bfd -m elf_i386 -T a.lds a.o -M
Memory Configuration
Name Origin Length Attributes
*default* 0x0000000000000000 0xffffffffffffffff
Linker script and memory map
0xffffffff80000000 . = 0xffffffff80000000
0xffffffff80100000 . = (. + 0x100000)
0xffffffff80100000 _text = .
LOAD a.o
OUTPUT(a.out elf32-i386)
.text 0xffffffff80100000 0x0
.text 0xffffffff80100000 0x0 a.o
...
0xffffffff80000000 will be truncated to 0x80000000.
Similarly,
0x0fffffff80000000 will be truncated to 0x80000000.
I think rejecting such addresses may be more reasonable.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/25784] New: [ld] Reject addresses outside [0,2**32) for ELFCLASS32,
i at maskray dot me <=