Cleaner support of a DEFAULT_VECTOR.
This commit is contained in:
parent
b3183ee084
commit
b782c9f5b6
@ -1,13 +1,14 @@
|
|||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
|
|
||||||
|
DEFAULT_VECTOR= bfd_elf64_alpha_freebsd_vec
|
||||||
|
|
||||||
SRCS+= coff-alpha.c cpu-alpha.c ecoff.c ecofflink.c elf64-alpha-fbsd.c \
|
SRCS+= coff-alpha.c cpu-alpha.c ecoff.c ecofflink.c elf64-alpha-fbsd.c \
|
||||||
elf64-target.h elf64.c elflink.c
|
elf64-target.h elf64.c elflink.c
|
||||||
VECS+= bfd_elf64_alpha_freebsd_vec ecoffalpha_little_vec
|
VECS= ${DEFAULT_VECTOR} ecoffalpha_little_vec
|
||||||
.if ${TARGET_ARCH} == "alpha"
|
.if ${TARGET_ARCH} == "alpha"
|
||||||
CFLAGS+= -DDEFAULT_VECTOR=bfd_elf64_alpha_freebsd_vec
|
CFLAGS+= -DDEFAULT_VECTOR=${DEFAULT_VECTOR}
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
CLEANFILES+= elf64-target.h
|
CLEANFILES+= elf64-target.h
|
||||||
|
|
||||||
elf64-target.h: elfxx-target.h
|
elf64-target.h: elfxx-target.h
|
||||||
sed -e s/NN/64/g ${.ALLSRC} > ${.TARGET}
|
sed -e s/NN/64/g ${.ALLSRC} > ${.TARGET}
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
|
|
||||||
|
DEFAULT_VECTOR= bfd_elf32_i386_freebsd_vec
|
||||||
|
|
||||||
SRCS+= cpu-i386.c elf32-i386-fbsd.c elf32-target.h elf32.c elflink.c
|
SRCS+= cpu-i386.c elf32-i386-fbsd.c elf32-target.h elf32.c elflink.c
|
||||||
VECS+= bfd_elf32_i386_freebsd_vec
|
VECS= ${DEFAULT_VECTOR}
|
||||||
.if ${TARGET_ARCH} == "i386"
|
.if ${TARGET_ARCH} == "i386"
|
||||||
CFLAGS+= -DDEFAULT_VECTOR=bfd_elf32_i386_freebsd_vec
|
CFLAGS+= -DDEFAULT_VECTOR=${DEFAULT_VECTOR}
|
||||||
.endif
|
|
||||||
|
|
||||||
.if defined(BINUTILSDISTDIR) && exists(${BINUTILSDISTDIR})
|
.if defined(BINUTILSDISTDIR) && exists(${BINUTILSDISTDIR})
|
||||||
SRCS+= pe-i386.c pei-i386.c
|
SRCS+= pe-i386.c pei-i386.c
|
||||||
@ -12,6 +13,5 @@ VECS+= i386pe_vec i386pei_vec
|
|||||||
.endif
|
.endif
|
||||||
|
|
||||||
CLEANFILES+= elf32-target.h
|
CLEANFILES+= elf32-target.h
|
||||||
|
|
||||||
elf32-target.h: elfxx-target.h
|
elf32-target.h: elfxx-target.h
|
||||||
sed -e s/NN/32/g ${.ALLSRC} > ${.TARGET}
|
sed -e s/NN/32/g ${.ALLSRC} > ${.TARGET}
|
||||||
|
@ -1,16 +1,18 @@
|
|||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
|
|
||||||
|
DEFAULT_VECTOR= bfd_elf64_ia64_little_vec
|
||||||
|
|
||||||
SRCS+= cofflink.c cpu-ia64.c efi-app-ia64.c elf32.c elf32-gen.c elf64.c \
|
SRCS+= cofflink.c cpu-ia64.c efi-app-ia64.c elf32.c elf32-gen.c elf64.c \
|
||||||
elf64-gen.c elf64-ia64.c elflink.c
|
elf64-gen.c elf64-ia64.c elflink.c
|
||||||
#SRCS+= coff-ia64.c elf32-ia64.c
|
#SRCS+= coff-ia64.c elf32-ia64.c
|
||||||
|
|
||||||
VECS+= bfd_efi_app_ia64_vec \
|
VECS+= ${DEFAULT_VECTOR} \
|
||||||
bfd_elf64_ia64_little_vec bfd_elf64_ia64_big_vec \
|
bfd_elf64_ia64_big_vec \
|
||||||
bfd_elf64_little_generic_vec bfd_elf64_big_generic_vec \
|
bfd_elf64_little_generic_vec bfd_elf64_big_generic_vec \
|
||||||
bfd_elf32_little_generic_vec bfd_elf32_big_generic_vec
|
bfd_elf32_little_generic_vec bfd_elf32_big_generic_vec
|
||||||
|
|
||||||
.if ${TARGET_ARCH} == "ia64"
|
.if ${TARGET_ARCH} == "ia64"
|
||||||
CFLAGS+= -DDEFAULT_VECTOR=bfd_elf64_ia64_little_vec
|
CFLAGS+= -DDEFAULT_VECTOR=${DEFAULT_VECTOR}
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
GENSRCS= elf32-target.h elf64-target.h elf64-ia64.c pepigen.c # peigen.c
|
GENSRCS= elf32-target.h elf64-target.h elf64-ia64.c pepigen.c # peigen.c
|
||||||
@ -23,7 +25,6 @@ elf32-target.h: elfxx-target.h
|
|||||||
elf64-target.h: elfxx-target.h
|
elf64-target.h: elfxx-target.h
|
||||||
sed -e s/NN/64/g ${.ALLSRC} > ${.TARGET}
|
sed -e s/NN/64/g ${.ALLSRC} > ${.TARGET}
|
||||||
|
|
||||||
|
|
||||||
elf64-ia64.c: elfxx-ia64.c
|
elf64-ia64.c: elfxx-ia64.c
|
||||||
sed -e s/NN/64/g -e 's/^.*#.*define.*ELF_DYNAMIC_INTERPRETER.*$$//g' \
|
sed -e s/NN/64/g -e 's/^.*#.*define.*ELF_DYNAMIC_INTERPRETER.*$$//g' \
|
||||||
${.ALLSRC} > ${.TARGET}
|
${.ALLSRC} > ${.TARGET}
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
|
|
||||||
|
DEFAULT_VECTOR= bfd_elf32_powerpc_vec
|
||||||
|
|
||||||
SRCS+= \
|
SRCS+= \
|
||||||
cpu-powerpc.c \
|
cpu-powerpc.c \
|
||||||
cpu-rs6000.c \
|
cpu-rs6000.c \
|
||||||
@ -10,15 +12,14 @@ SRCS+= \
|
|||||||
elflink.c \
|
elflink.c \
|
||||||
ppcboot.c \
|
ppcboot.c \
|
||||||
#xcofflink.c
|
#xcofflink.c
|
||||||
VECS+= bfd_elf32_powerpc_vec \
|
VECS+= ${DEFAULT_VECTOR} \
|
||||||
bfd_elf32_powerpcle_vec \
|
bfd_elf32_powerpcle_vec \
|
||||||
ppcboot_vec
|
ppcboot_vec
|
||||||
|
|
||||||
.if ${TARGET_ARCH} == "powerpc"
|
.if ${TARGET_ARCH} == "powerpc"
|
||||||
CFLAGS+= -DDEFAULT_VECTOR=bfd_elf32_powerpc_vec
|
CFLAGS+= -DDEFAULT_VECTOR=${DEFAULT_VECTOR}
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
CLEANFILES+= elf32-target.h
|
CLEANFILES+= elf32-target.h
|
||||||
|
|
||||||
elf32-target.h: elfxx-target.h
|
elf32-target.h: elfxx-target.h
|
||||||
sed -e s/NN/32/g ${.ALLSRC} > ${.TARGET}
|
sed -e s/NN/32/g ${.ALLSRC} > ${.TARGET}
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
|
|
||||||
|
DEFAULT_VECTOR= bfd_elf64_sparc_vec
|
||||||
|
|
||||||
SRCS+= aout32.c \
|
SRCS+= aout32.c \
|
||||||
cpu-sparc.c \
|
cpu-sparc.c \
|
||||||
elf32-sparc.c \
|
elf32-sparc.c \
|
||||||
@ -11,14 +13,13 @@ SRCS+= aout32.c \
|
|||||||
elflink.c \
|
elflink.c \
|
||||||
sparcnetbsd.c \
|
sparcnetbsd.c \
|
||||||
sunos.c
|
sunos.c
|
||||||
VECS+= bfd_elf32_sparc_vec bfd_elf64_sparc_vec sparcnetbsd_vec sunos_big_vec
|
VECS= ${DEFAULT_VECTOR} bfd_elf32_sparc_vec sparcnetbsd_vec sunos_big_vec
|
||||||
|
|
||||||
.if ${TARGET_ARCH} == "sparc64"
|
.if ${TARGET_ARCH} == "sparc64"
|
||||||
CFLAGS+= -DDEFAULT_VECTOR=bfd_elf64_sparc_vec
|
CFLAGS+= -DDEFAULT_VECTOR=${DEFAULT_VECTOR}
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
CLEANFILES+= elf32-target.h elf64-target.h
|
CLEANFILES+= elf32-target.h elf64-target.h
|
||||||
|
|
||||||
elf32-target.h: elfxx-target.h
|
elf32-target.h: elfxx-target.h
|
||||||
sed -e s/NN/32/g ${.ALLSRC} > ${.TARGET}
|
sed -e s/NN/32/g ${.ALLSRC} > ${.TARGET}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user