https://sourceware.org/bugzilla/show_bug.cgi?id=29435
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
--- Comment #5 from H.J. Lu <hjl.tools at gmail dot com> ---
[hjl@gnu-tgl-3 pr29435]$ cat foo.c
__attribute__ ((aligned(0x8000)))
void
foo (void)
{
}
[hjl@gnu-tgl-3 pr29435]$ gcc -c foo.c
[hjl@gnu-tgl-3 pr29435]$ ld -shared -o libfoo.so foo.o
[hjl@gnu-tgl-3 pr29435]$ readelf -Wl libfoo.so
Elf file type is DYN (Shared object file)
Entry point 0x0
There are 9 program headers, starting at offset 64
Program Headers:
Type Offset VirtAddr PhysAddr FileSiz MemSiz
Flg Align
LOAD 0x000000 0x0000000000000000 0x0000000000000000 0x0002ad
0x0002ad R 0x1000
LOAD 0x008000 0x0000000000008000 0x0000000000008000 0x000007
0x000007 R E 0x8000
LOAD 0x009000 0x0000000000009000 0x0000000000009000 0x000068
0x000068 R 0x8000
LOAD 0x009f40 0x000000000000af40 0x000000000000af40 0x0000c0
0x0000c0 RW 0x8000
DYNAMIC 0x009f40 0x000000000000af40 0x000000000000af40 0x0000c0
0x0000c0 RW 0x8
NOTE 0x009000 0x0000000000009000 0x0000000000009000 0x000030
0x000030 R 0x8
GNU_PROPERTY 0x009000 0x0000000000009000 0x0000000000009000 0x000030
0x000030 R 0x8
GNU_STACK 0x000000 0x0000000000000000 0x0000000000000000 0x000000
0x000000 RW 0x10
GNU_RELRO 0x009f40 0x000000000000af40 0x000000000000af40 0x0000c0
0x0000c0 R 0x1
Section to Segment mapping:
Segment Sections...
00 .hash .gnu.hash .dynsym .dynstr
01 .text
02 .note.gnu.property .eh_frame
03 .dynamic
04 .dynamic
05 .note.gnu.property
06 .note.gnu.property
07
08 .dynamic
[hjl@gnu-tgl-3 pr29435]$
Only the second PLT_LOAD segment should have 0x8000 alignment.
--
You are receiving this mail because:
You are on the CC list for the bug.