[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/17369] New: The PF_X bit is set on PT_PHDR segment
From: |
hjl.tools at gmail dot com |
Subject: |
[Bug ld/17369] New: The PF_X bit is set on PT_PHDR segment |
Date: |
Wed, 10 Sep 2014 16:05:29 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=17369
Bug ID: 17369
Summary: The PF_X bit is set on PT_PHDR segment
Product: binutils
Version: 2.25 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: hjl.tools at gmail dot com
address@hidden tmp]$ cat x.c
int
main ()
{
}
address@hidden tmp]$ gcc -m32 x.c
address@hidden tmp]$ readelf -l a.out
Elf file type is EXEC (Executable file)
Entry point 0x80482d0
There are 8 program headers, starting at offset 52
Program Headers:
Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
PHDR 0x000034 0x08048034 0x08048034 0x00100 0x00100 R E 0x4
^ It is set.
INTERP 0x000134 0x08048134 0x08048134 0x00013 0x00013 R 0x1
[Requesting program interpreter: /lib/ld-linux.so.2]
LOAD 0x000000 0x08048000 0x08048000 0x00550 0x00550 R E 0x1000
LOAD 0x000550 0x08049550 0x08049550 0x00110 0x00114 RW 0x1000
DYNAMIC 0x00055c 0x0804955c 0x0804955c 0x000e8 0x000e8 RW 0x4
NOTE 0x000148 0x08048148 0x08048148 0x00044 0x00044 R 0x4
GNU_EH_FRAME 0x000474 0x08048474 0x08048474 0x0002c 0x0002c R 0x4
GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x00000 RW 0x10
Section to Segment mapping:
Segment Sections...
00
01 .interp
02 .interp .note.ABI-tag .note.gnu.build-id .gnu.hash .dynsym .dynstr
.gnu.version .gnu.version_r .rel.dyn .rel.plt .init .plt .text .fini .rodata
.eh_frame_hdr .eh_frame
03 .init_array .fini_array .jcr .dynamic .got .got.plt .data .bss
04 .dynamic
05 .note.ABI-tag .note.gnu.build-id
06 .eh_frame_hdr
07
address@hidden tmp]$
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/17369] New: The PF_X bit is set on PT_PHDR segment,
hjl.tools at gmail dot com <=