[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/3052] ld lma assignment change breaks x86-64 Linux 2.6 kernel
From: |
hjl at lucon dot org |
Subject: |
[Bug ld/3052] ld lma assignment change breaks x86-64 Linux 2.6 kernel |
Date: |
16 Aug 2006 01:07:59 -0000 |
------- Additional Comments From hjl at lucon dot org 2006-08-16 01:07 -------
Created an attachment (id=1226)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=1226&action=view)
A testcase
Here is a testcase. old.sec has the dump from the correct output:
address@hidden lma]$ make LD=ld
as -o foo.o foo.s
ld -o foo -T foo.t foo.o
readelf -S -l --wide foo > foo.sec
diff -up foo.sec old.sec
--- foo.sec 2006-08-15 18:07:37.000000000 -0700
+++ old.sec 2006-08-15 18:04:38.000000000 -0700
@@ -1,15 +1,15 @@
-There are 8 section headers, starting at offset 0x400058:
+There are 8 section headers, starting at offset 0x302058:
Section Headers:
[Nr] Name Type Address Off Size ES Flg
Lk Inf Al
[ 0] NULL 0000000000000000 000000 000000 00
0 0 0
- [ 1] .text PROGBITS ffffffff80100000 300000 000001 00 AX
0 0 4
- [ 2] .data.cacheline_a PROGBITS ffffffff80100040 300040 000001 00 WA
0 0 1
- [ 3] .vsyscall_0 PROGBITS ffffffffff600000 400000 000001 00 AX
0 0 1
- [ 4] .data.init_task PROGBITS ffffffff80102000 102000 000001 00 WA
0 0 1
- [ 5] .shstrtab STRTAB 0000000000000000 400001 000055 00
0 0 1
- [ 6] .symtab SYMTAB 0000000000000000 400258 000078 18
7 5 8
- [ 7] .strtab STRTAB 0000000000000000 4002d0 000001 00
0 0 1
+ [ 1] .text PROGBITS ffffffff80100000 100000 000001 00 AX
0 0 4
+ [ 2] .data.cacheline_a PROGBITS ffffffff80100040 100040 000001 00 WA
0 0 1
+ [ 3] .vsyscall_0 PROGBITS ffffffffff600000 200000 000001 00 AX
0 0 1
+ [ 4] .data.init_task PROGBITS ffffffff80102000 302000 000001 00 WA
0 0 1
+ [ 5] .shstrtab STRTAB 0000000000000000 302001 000055 00
0 0 1
+ [ 6] .symtab SYMTAB 0000000000000000 302258 000078 18
7 5 8
+ [ 7] .strtab STRTAB 0000000000000000 3022d0 000001 00
0 0 1
Key to Flags:
W (write), A (alloc), X (execute), M (merge), S (strings)
I (info), L (link order), G (group), x (unknown)
@@ -21,12 +21,12 @@ There are 3 program headers, starting at
Program Headers:
Type Offset VirtAddr PhysAddr FileSiz
MemSiz Flg Align
- LOAD 0x000000 0xffffffff80000000 0xffffffff00b01000 0x102001
0x102001 RW 0x200000
- LOAD 0x300000 0xffffffff80100000 0xffffffff80100000 0x000041
0x000041 RWE 0x200000
- LOAD 0x400000 0xffffffffff600000 0xffffffff80101000 0x000001
0x000001 R E 0x200000
+ LOAD 0x000000 0xffffffff80000000 0xffffffff80000000 0x100041
0x100041 RWE 0x200000
+ LOAD 0x200000 0xffffffffff600000 0xffffffff80101000 0x000001
0x000001 R E 0x200000
+ LOAD 0x302000 0xffffffff80102000 0xffffffff80102000 0x000001
0x000001 RW 0x200000
Section to Segment mapping:
Segment Sections...
- 00 .text .data.cacheline_aligned .data.init_task
- 01 .text .data.cacheline_aligned
- 02 .vsyscall_0
+ 00 .text .data.cacheline_aligned
+ 01 .vsyscall_0
+ 02 .data.init_task
make: *** [all] Error 1
address@hidden lma]$
--
http://sourceware.org/bugzilla/show_bug.cgi?id=3052
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
- [Bug ld/3052] New: ld lma assignment change breaks x86-64 Linux 2.6 kernel, hjl at lucon dot org, 2006/08/14
- [Bug ld/3052] ld lma assignment change breaks x86-64 Linux 2.6 kernel, hjl at lucon dot org, 2006/08/15
- [Bug ld/3052] ld lma assignment change breaks x86-64 Linux 2.6 kernel, hjl at lucon dot org, 2006/08/15
- [Bug ld/3052] ld lma assignment change breaks x86-64 Linux 2.6 kernel, hjl at lucon dot org, 2006/08/15
- [Bug ld/3052] ld lma assignment change breaks x86-64 Linux 2.6 kernel,
hjl at lucon dot org <=
- [Bug ld/3052] ld lma assignment change breaks x86-64 Linux 2.6 kernel, amodra at bigpond dot net dot au, 2006/08/16
- [Bug ld/3052] ld lma assignment change breaks x86-64 Linux 2.6 kernel, amodra at bigpond dot net dot au, 2006/08/16