Update BFD version and date, and add new upstream files. Also remove

the elf32-arm-fbsd.c kludge; it is now integrated cleanly into
contrib/binutils/bfd/elf32-arm.c.
This commit is contained in:
Dimitry Andric 2010-10-21 20:17:13 +00:00
parent 3213eafad2
commit 6efa94bc57
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/binutils-2.17/; revision=214170
3 changed files with 6 additions and 27 deletions

View File

@ -21,6 +21,7 @@ SRCS+= archive.c \
dwarf2.c \
elf-eh-frame.c \
elf-strtab.c \
elf-vxworks.c \
elf.c \
format.c \
hash.c \
@ -81,8 +82,8 @@ CFLAGS+= -DDEFAULT_VECTOR=${DEFAULT_VECTOR}
# XXX:DEO should grab BFD_VERSION_DATE from ${VERSION}...
bfdver.h: Makefile
echo '#define BFD_VERSION 215000000' > ${.TARGET}
echo '#define BFD_VERSION_DATE 20050317' >> ${.TARGET}
echo '#define BFD_VERSION 217000000' > ${.TARGET}
echo '#define BFD_VERSION_DATE 20070807' >> ${.TARGET}
echo '#define BFD_VERSION_STRING ${VERSION}' >> ${.TARGET}
targmatch.h: targmatch.sed config.bfd

View File

@ -8,7 +8,7 @@ DEFAULT_VECTOR= bfd_elf32_littlearm_vec
SRCS+= cpu-arm.c \
elf32.c \
elf32-arm-fbsd.c \
elf32-arm.c \
elf32-gen.c \
elf32-target.h \
elflink.c
@ -19,27 +19,3 @@ VECS+= bfd_elf32_littlearm_vec
.else
VECS+= bfd_elf32_bigarm_vec
.endif
CLEANFILES+= elf32-arm-fbsd.c
# XXX: We should really add the FreeBSD case in elf32_arm_nabi_grok_prstatus
# instead of defining our own elf32_fbsd_arm_grok_prstatus.
#
elf32-arm-fbsd.c: elfarm-nabi.c
cat ${.ALLSRC} | sed \
-e s/ELFOSABI_ARM/ELFOSABI_FREEBSD/g \
-e "s/\(.*#define.*\)elf32_arm_nabi_grok_prstatus/\1elf32_fbsd_arm_grok_prstatus/" \
-e s/"#include.*elf32-arm.h.*//" >${.TARGET}
echo ' \
static bfd_boolean \
elf32_fbsd_arm_grok_prstatus(bfd *abfd, Elf_Internal_Note *note) \
{ size_t raw_size =68 ; int offset = 28; \
if (note->descsz != 96) return (FALSE); \
if (elf_tdata(abfd)->core_signal == 0) \
elf_tdata (abfd)->core_signal = ((int *)(note->descdata))[5]; \
elf_tdata (abfd)->core_pid = ((int *)(note->descdata))[6]; \
/* Make a ".reg/999" section. */ \
return _bfd_elfcore_make_pseudosection (abfd, ".reg",raw_size, \
note->descpos + offset); \
}' >> ${.TARGET}
echo '#include "elf32-arm.h"' >> ${.TARGET}

View File

@ -11,6 +11,8 @@ SRCS+= aout32.c \
elf64-sparc.c \
elf64-target.h \
elflink.c \
elfxx-sparc.c \
elfxx-sparc.h \
sparcnetbsd.c \
sunos.c