freebsd-skq/contrib/elftoolchain/elfcopy
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
..
archive.c Update ELF Tool Chain to upstream rev 3400 2016-02-12 20:54:02 +00:00
ascii.c Update elftoolchain to upstream revision 3179 2015-04-01 01:08:01 +00:00
binary.c Update to ELF Tool Chain r3272 2015-12-11 20:28:27 +00:00
elfcopy.1 Update ELF Tool Chain to upstream rev 3400 2016-02-12 20:54:02 +00:00
elfcopy.h elfcopy: overhaul of LMA handling 2016-03-24 20:13:17 +00:00
main.c Allow elfcopy to convert between two non-ELF formats 2016-02-16 14:03:25 +00:00
Makefile Update ELF Tool Chain to upstream rev 3400 2016-02-12 20:54:02 +00:00
mcs.1
pe.c Update ELF Tool Chain to upstream rev 3400 2016-02-12 20:54:02 +00:00
sections.c elfcopy: fail if debug link target is empty 2016-03-04 18:28:19 +00:00
segments.c elfcopy: overhaul of LMA handling 2016-03-24 20:13:17 +00:00
strip.1
symbols.c Update ELF Tool Chain to upstream rev 3400 2016-02-12 20:54:02 +00:00