Edit

IABSD.fr/src/libexec/ld.so/arm/Makefile.inc

Branch :

  • Show log

    Commit

  • Author : guenther
    Date : 2019-10-20 03:44:49
    Hash : 17fa8871
    Message : For more archs, ld.so itself only needs/uses the arch's "just add load offset" 'relative' relocation. Take advantage of that to simplify ld.so's self-reloc code: * give the exceptional archs (hppa and mips64) copies of the current boot.c as boot_md.c * teach the Makefile to use boot_md.c when present * reduce boot.c down to the minimum necessary to handle just relative reloc * teach the Makefile to fail if the built ld.so has other types of relocs ok visa@ kettenis@

  • libexec/ld.so/arm/Makefile.inc
  • #	$OpenBSD: Makefile.inc,v 1.8 2019/10/20 03:44:49 guenther Exp $
    
    CFLAGS += -fpic -msoft-float
    AFLAGS += -D_STANDALONE
    LD_SCRIPT = ${.CURDIR}/${MACHINE_CPU}/ld.script
    CPPFLAGS += -I${.CURDIR}/../../lib/libc/arch/arm
    SRCS+= divsi3.S
    LIBCSRCDIR=${.CURDIR}/../../lib/libc
    .PATH: ${LIBCSRCDIR}/arch/arm/gen
    
    # Suppress DWARF2 warnings
    DEBUG?= -gdwarf-4
    
    RELATIVE_RELOC=R_ARM_RELATIVE