https://sourceware.org/bugzilla/show_bug.cgi?id=25237
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hjl.tools at gmail dot com
--- Comment #12 from H.J. Lu <hjl.tools at gmail dot com> ---
A testcase:
[hjl@gnu-tgl-3 pr32761]$ cat x.c
#include <stdio.h>
char bss[0xb5dce8] __attribute__((aligned(65536)));
int
main (void)
{
printf ("hello\n");
}
[hjl@gnu-tgl-3 pr32761]$ gcc -B./ x.c
[hjl@gnu-tgl-3 pr32761]$ readelf -Wl a.out
Elf file type is EXEC (Executable file)
Entry point 0x4003b0
There are 14 program headers, starting at offset 64
Program Headers:
Type Offset VirtAddr PhysAddr FileSiz MemSiz
Flg Align
PHDR 0x000040 0x0000000000400040 0x0000000000400040 0x000310
0x000310 R 0x8
INTERP 0x001000 0x0000000000401000 0x0000000000401000 0x00001c
0x00001c R 0x1
[Requesting program interpreter: /lib64/ld-linux-x86-64.so.2]
LOAD 0x000000 0x0000000000400000 0x0000000000400000 0x0004b9
0x0004b9 R E 0x1000
LOAD 0x001000 0x0000000000401000 0x0000000000401000 0x0002c0
0x0002c0 R 0x1000
LOAD 0x001dc8 0x0000000000402dc8 0x0000000000402dc8 0x000244
0x000244 RW 0x1000
LOAD 0x010000 0x0000000000410000 0x0000000000410000 0x000000
0xb6dce8 RW 0x10000
The offset is beyond the file size.
DYNAMIC 0x001dd8 0x0000000000402dd8 0x0000000000402dd8 0x000200
0x000200 RW 0x8
NOTE 0x000350 0x0000000000400350 0x0000000000400350 0x000024
0x000024 R 0x4
NOTE 0x001260 0x0000000000401260 0x0000000000401260 0x000040
0x000040 R 0x8
NOTE 0x0012a0 0x00000000004012a0 0x00000000004012a0 0x000020
0x000020 R 0x4
GNU_PROPERTY 0x001260 0x0000000000401260 0x0000000000401260 0x000040
0x000040 R 0x8
GNU_EH_FRAME 0x0011a0 0x00000000004011a0 0x00000000004011a0 0x00002c
0x00002c R 0x4
GNU_STACK 0x000000 0x0000000000000000 0x0000000000000000 0x000000
0x000000 RW 0x10
GNU_RELRO 0x001dc8 0x0000000000402dc8 0x0000000000402dc8 0x000238
0x000238 R 0x1
Section to Segment mapping:
Segment Sections...
00
01 .interp
02 .note.gnu.build-id .init .plt .text .fini
03 .interp .gnu.hash .dynsym .dynstr .gnu.version .gnu.version_r
.rela.dyn .rela.plt .rodata .eh_frame_hdr .eh_frame .note.gnu.property
.note.ABI-tag
04 .init_array .fini_array .dynamic .got .got.plt .data
05 .bss
06 .dynamic
07 .note.gnu.build-id
08 .note.gnu.property
09 .note.ABI-tag
10 .note.gnu.property
11 .eh_frame_hdr
12
13 .init_array .fini_array .dynamic .got
[hjl@gnu-tgl-3 pr32761]$ ls -l a.out
-rwxr-xr-x 1 hjl hjl 12592 Mar 5 11:37 a.out
[hjl@gnu-tgl-3 pr32761]$
[hjl@gnu-tgl-3 pr32761]$
--
You are receiving this mail because:
You are on the CC list for the bug.