[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gold/19278] New: load segment created outside memory section specif
From: |
mdaniels at qnx dot com |
Subject: |
[Bug gold/19278] New: load segment created outside memory section specified in linker script |
Date: |
Fri, 20 Nov 2015 22:08:49 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=19278
Bug ID: 19278
Summary: load segment created outside memory section specified
in linker script
Product: binutils
Version: 2.27 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: gold
Assignee: ccoutant at gmail dot com
Reporter: mdaniels at qnx dot com
CC: ian at airs dot com
Target Milestone: ---
Created attachment 8802
--> https://sourceware.org/bugzilla/attachment.cgi?id=8802&action=edit
Minimal example to reproduce
When using a linker script that contains MEMORY regions with gold, the
following warning is issued:
warning: creating a segment to contain the file and program headers outside of
any MEMORY region
Looking at the ELF data it looks like there is a LOAD segment that is getting
prepended to the first segment found. Since this will be at the memory
boundary, it will always fall outside the region.
I have attached a minimal assembly file and linker script to reproduce the
problem.
gcc -nodefaultlibs -nostartfiles -fno-PIE -o main main.s -Wl,-Tmain.lnk
-fuse-ld=gold
I have tried this on x86, x86_64, armv7 and aarch64 targets, all issue the same
warning.
--
You are receiving this mail because:
You are on the CC list for the bug.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug gold/19278] New: load segment created outside memory section specified in linker script,
mdaniels at qnx dot com <=