freebsd-skq/contrib/elftoolchain
Ed Maste 676e25ab0f elfcopy: overhaul of LMA handling
Merge ELF Tool Chain r3434:

    Previously, elfcopy defines:

    VMA:  section virtual address
    LMA:  PHDR(p_vaddr)

    While binutils(libbfd) defines:

    VMA:  section virtual address and PHDR(p_vaddr).
    LMA:  PHDR(p_paddr)

    For elfcopy, p_paddr is considered not meaningful and is always set
    to the same value as p_vaddr.

    elfcopy was implemented that way because I thought p_paddr is not
    used/meaningful according to the ELF ABI. However it turned out
    p_paddr is at least used in some ELF files, e.g. the FreeBSD kernel.

    This change made elfcopy treat p_paddr as LMA, same as libbfd.

    (However, some VMA/LMA related command line option still need tweaking
    to make them compatible with binutils objcopy. This will be improved
    later)

    Ticket: #524

And typo fixes in r3435 and r3436.

This fixes the Xen kernel build.

Submitted by:	kaiw
Tested by:	royger
2016-03-24 20:13:17 +00:00
..
addr2line Update ELF Tool Chain to upstream rev 3400 2016-02-12 20:54:02 +00:00
ar Update ELF Tool Chain to upstream rev 3400 2016-02-12 20:54:02 +00:00
brandelf Update ELF Tool Chain to upstream rev 3400 2016-02-12 20:54:02 +00:00
common Update ELF Tool Chain to upstream rev 3400 2016-02-12 20:54:02 +00:00
cxxfilt Update ELF Tool Chain to upstream rev 3400 2016-02-12 20:54:02 +00:00
elfcopy elfcopy: overhaul of LMA handling 2016-03-24 20:13:17 +00:00
elfdump Update ELF Tool Chain to upstream rev 3400 2016-02-12 20:54:02 +00:00
libdwarf libdwarf: fix SHT_REL relocation processing 2016-03-11 16:24:39 +00:00
libelf libelf: correct byte count in cross-endian note translation 2016-03-11 22:37:12 +00:00
libelftc Update ELF Tool Chain to upstream rev 3400 2016-02-12 20:54:02 +00:00
libpe Update ELF Tool Chain to upstream rev 3400 2016-02-12 20:54:02 +00:00
nm Update ELF Tool Chain to upstream rev 3400 2016-02-12 20:54:02 +00:00
readelf Update ELF Tool Chain to upstream rev 3400 2016-02-12 20:54:02 +00:00
size Update ELF Tool Chain to upstream rev 3400 2016-02-12 20:54:02 +00:00
strings Update ELF Tool Chain to upstream rev 3400 2016-02-12 20:54:02 +00:00