git: crunchide(1): fix offset for x86_64, restores WORLD_LDVER

John Marino marino at crater.dragonflybsd.org
Mon Feb 16 12:11:39 PST 2015


commit 3f9b3c38e67290e3d34e6df1e03147de95626fdd
Author: John Marino <draco at marino.st>
Date:   Mon Feb 16 20:08:17 2015 +0100

    crunchide(1): fix offset for x86_64, restores WORLD_LDVER
    
    The e_shoff offset for x86_64 is 40, not 44.  FreeBSD figured this out
    in January.  The gold linker figured out there was a problem with the
    crunch binaries when I tried WORLD_LDVER=ld.gold and it broke on initrd.
    The ld.bfd linker didn't squawk.  With the FreeBSD patch, buildworld
    completes using the gold linker once again.
    
    While here, tidy up a bit.

Summary of changes:
 usr.bin/crunch/crunchide/Makefile     |  4 +---
 usr.bin/crunch/crunchide/exec_elf32.c | 11 ++++++-----
 usr.bin/crunch/crunchide/exec_elf64.c |  5 -----
 3 files changed, 7 insertions(+), 13 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/3f9b3c38e67290e3d34e6df1e03147de95626fdd


-- 
DragonFly BSD source repository



More information about the Commits mailing list