https://sourceware.org/bugzilla/show_bug.cgi?id=22269

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |amodra at gmail dot com

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> ---
FYI, x86-64 has

[hjl@gnu-efi-2 glibc]$ gcc -c x.s
[hjl@gnu-efi-2 glibc]$ ld -pie --no-dynamic-linker x.o[hjl@gnu-efi-2 glibc]$
readelf -rl a.out 

Elf file type is DYN (Shared object file)
Entry point 0x169
There are 4 program headers, starting at offset 64

Program Headers:
  Type           Offset             VirtAddr           PhysAddr
                 FileSiz            MemSiz              Flags  Align
  LOAD           0x0000000000000000 0x0000000000000000 0x0000000000000000
                 0x0000000000000170 0x0000000000000170  R E    0x200000
  LOAD           0x0000000000000f18 0x0000000000200f18 0x0000000000200f18
                 0x00000000000000e8 0x00000000000000e8  RW     0x200000
  DYNAMIC        0x0000000000000f20 0x0000000000200f20 0x0000000000200f20
                 0x00000000000000e0 0x00000000000000e0  RW     0x8
  GNU_RELRO      0x0000000000000f18 0x0000000000200f18 0x0000000000200f18
                 0x00000000000000e8 0x00000000000000e8  R      0x1

 Section to Segment mapping:
  Segment Sections...
   00     .hash .gnu.hash .dynsym .dynstr .text 
   01     .data.rel.ro .dynamic 
   02     .dynamic 
   03     .data.rel.ro .dynamic 

There are no relocations in this file.
[hjl@gnu-efi-2 glibc]$ readelf -x .data.rel.ro a.out 

Hex dump of section '.data.rel.ro':
  0x00200f18 00000000 00000000                   ........

[hjl@gnu-efi-2 glibc]$

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to