[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/28452] New: ld: unknown phdr type `PT_GNU_RELRO' (try integer li
From: |
i at maskray dot me |
Subject: |
[Bug ld/28452] New: ld: unknown phdr type `PT_GNU_RELRO' (try integer literal) |
Date: |
Thu, 14 Oct 2021 16:51:27 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=28452
Bug ID: 28452
Summary: ld: unknown phdr type `PT_GNU_RELRO' (try integer
literal)
Product: binutils
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: i at maskray dot me
Target Milestone: ---
PT_GNU_RELRO / 1685382482 does not work in the PHDRS command.
% cat a.lds
PHDRS {
exec PT_LOAD;
rw PT_LOAD;
dynamic PT_DYNAMIC;
relro 1685382482;
}
SECTIONS {
.text : { *(.text) } : exec
.dynamic : { *(.data) } : rw : dynamic : relro
.data : { *(.data) } : rw
}
% as /dev/null -o a.o
% ./ld-new -T a.lds a.o -o a
./ld-new: BFD (GNU Binutils) 2.37.50.20211014 assertion fail
../../../bfd/elf.c:6262
If I replace 1685382482 with PT_GNU_RELRO,
% ./ld-new -T a.lds a.o -o a
./ld-new:a.lds:5: unknown phdr type `PT_GNU_RELRO' (try integer literal)
--
You are receiving this mail because:
You are on the CC list for the bug.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug ld/28452] New: ld: unknown phdr type `PT_GNU_RELRO' (try integer literal),
i at maskray dot me <=