[Bug 217610] ELF loader should have a special case for program headers with p_filesz == 0

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Jul 27 01:49:54 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217610

--- Comment #7 from Ed Maste <emaste at freebsd.org> ---
For reference ld.lld creates an 8928-byte file for your sample, with the
following segments:

There are 5 program headers, starting at offset 64

Program Headers:
  Type           Offset             VirtAddr           PhysAddr
                 FileSiz            MemSiz              Flags  Align
  PHDR           0x0000000000000040 0x0000000000200040 0x0000000000200040
                 0x0000000000000118 0x0000000000000118  R      8
  LOAD           0x0000000000000000 0x0000000000200000 0x0000000000200000
                 0x0000000000000158 0x0000000000000158  R      1000
  LOAD           0x0000000000001000 0x0000000000201000 0x0000000000201000
                 0x0000000000000009 0x0000000000000009  R E    1000
  LOAD           0x0000000000002000 0x0000000000202000 0x0000000000202000
                 0x0000000000000000 0x0000000000000010  RW     1000
  GNU_STACK      0x0000000000000000 0x0000000000000000 0x0000000000000000
                 0x0000000000000000 0x0000000000000000  RW     0

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list