[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/12718] New: Spurious empty .plt/.rela.plt sections generated
From: |
hjl.tools at gmail dot com |
Subject: |
[Bug ld/12718] New: Spurious empty .plt/.rela.plt sections generated |
Date: |
Sat, 30 Apr 2011 14:01:00 +0000 |
http://sourceware.org/bugzilla/show_bug.cgi?id=12718
Summary: Spurious empty .plt/.rela.plt sections generated
Product: binutils
Version: 2.22 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: ld
AssignedTo: address@hidden
ReportedBy: address@hidden
From:
http://lists.gnu.org/archive/html/bug-binutils/2011-04/msg00190.html
address@hidden tmp]$ cat x.s
.globl foo
foo: ret
.globl _start
_start: call foo
address@hidden tmp]$ gcc -c x.s
address@hidden tmp]$ ld x.o
address@hidden tmp]$ readelf -lS a.out
There are 8 section headers, starting at offset 0xf0:
Section Headers:
[Nr] Name Type Address Offset
Size EntSize Flags Link Info Align
[ 0] NULL 0000000000000000 00000000
0000000000000000 0000000000000000 0 0 0
[ 1] .rela.plt RELA 00000000004000b0 000000b0
0000000000000000 0000000000000018 A 0 2 8
[ 2] .plt PROGBITS 00000000004000b0 000000b0
0000000000000000 0000000000000000 AX 0 0 4
[ 3] .text PROGBITS 00000000004000b0 000000b0
0000000000000006 0000000000000000 AX 0 0 4
[ 4] .got.plt PROGBITS 00000000006000b8 000000b8
0000000000000000 0000000000000000 WA 0 0 8
[ 5] .shstrtab STRTAB 0000000000000000 000000b8
0000000000000034 0000000000000000 0 0 1
[ 6] .symtab SYMTAB 0000000000000000 000002f0
00000000000000f0 0000000000000018 7 5 8
[ 7] .strtab STRTAB 0000000000000000 000003e0
0000000000000024 0000000000000000 0 0 1
Key to Flags:
W (write), A (alloc), X (execute), M (merge), S (strings), l (large)
I (info), L (link order), G (group), T (TLS), E (exclude), x (unknown)
O (extra OS processing required) o (OS specific), p (processor specific)
Elf file type is EXEC (Executable file)
Entry point 0x4000b1
There are 2 program headers, starting at offset 64
Program Headers:
Type Offset VirtAddr PhysAddr
FileSiz MemSiz Flags Align
LOAD 0x0000000000000000 0x0000000000400000 0x0000000000400000
0x00000000000000b6 0x00000000000000b6 R E 200000
LOAD 0x00000000000000b8 0x00000000006000b8 0x00000000006000b8
0x0000000000000000 0x0000000000000000 RW 200000
Section to Segment mapping:
Segment Sections...
00 .rela.plt .plt .text
01 .got.plt
address@hidden tmp]$
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
- [Bug ld/12718] New: Spurious empty .plt/.rela.plt sections generated,
hjl.tools at gmail dot com <=