[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/3103] New: ld lma assignment change changes OVERLAY
From: |
hjl at lucon dot org |
Subject: |
[Bug ld/3103] New: ld lma assignment change changes OVERLAY |
Date: |
22 Aug 2006 17:12:35 -0000 |
This change
http://sourceware.org/ml/binutils/2006-07/msg00314.html
changes the section symbol for OVERLAY:
address@hidden overlay-2]$ cat foo.s
.section .text1,"ax","progbits"
.space 0x10
.section .text2,"ax","progbits"
.space 0x20
.section .text
.space 0x30
address@hidden overlay-2]$ cat foo.t
SECTIONS
{
OVERLAY 0x1000 : AT (0x4000)
{
.text1 {*(.text1)}
.text2 {*(.text2)}
}
/DISCARD/ : { *(.*) }
}
address@hidden overlay-2]$ as -o foo.o foo.s
address@hidden overlay-2]$ ./ld-next -o foo -T foo.t foo.o
address@hidden overlay-2]$ readelf -s foo
Symbol table '.symtab' contains 7 entries:
Num: Value Size Type Bind Vis Ndx Name
0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND
1: 0000000000001000 0 SECTION LOCAL DEFAULT 1
2: 0000000000001000 0 SECTION LOCAL DEFAULT 2
3: 0000000000004000 0 NOTYPE GLOBAL DEFAULT ABS __load_start_text1
4: 0000000000004010 0 NOTYPE GLOBAL DEFAULT 2 __load_start_text2
5: 0000000000004030 0 NOTYPE GLOBAL DEFAULT ABS __load_stop_text2
6: 0000000000004010 0 NOTYPE GLOBAL DEFAULT ABS __load_stop_text1
address@hidden overlay-2]$
Section index for __load_start_text2 should be ABS not 2.
--
Summary: ld lma assignment change changes OVERLAY
Product: binutils
Version: 2.18 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: ld
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: hjl at lucon dot org
CC: amodra at bigpond dot net dot au,bug-binutils at gnu dot
org
http://sourceware.org/bugzilla/show_bug.cgi?id=3103
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
- [Bug ld/3103] New: ld lma assignment change changes OVERLAY,
hjl at lucon dot org <=