diff options
author | wiz <wiz@pkgsrc.org> | 2004-09-09 01:33:10 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2004-09-09 01:33:10 +0000 |
commit | 4a459c2d665b68e3b7bde0e362b52e1d81281274 (patch) | |
tree | 5e3090658a7c2977cee401db1d7ba96859f12907 /cross/bfd-mdsetimage | |
parent | 1938d70c50037b5bdc6b34b0dafa2777eabfc95d (diff) | |
download | pkgsrc-4a459c2d665b68e3b7bde0e362b52e1d81281274.tar.gz |
Make this build with the version of binutils currently in cross-binutils.
No idea if this works, since I don't know how to use this, but the diff
looks sane enough to me.
Diffstat (limited to 'cross/bfd-mdsetimage')
-rw-r--r-- | cross/bfd-mdsetimage/Makefile | 4 | ||||
-rw-r--r-- | cross/bfd-mdsetimage/files/mdsetimage.c | 12 |
2 files changed, 8 insertions, 8 deletions
diff --git a/cross/bfd-mdsetimage/Makefile b/cross/bfd-mdsetimage/Makefile index 8ca87e38cc3..b7ee8b7d160 100644 --- a/cross/bfd-mdsetimage/Makefile +++ b/cross/bfd-mdsetimage/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.14 2004/08/27 06:29:07 jlam Exp $ +# $NetBSD: Makefile,v 1.15 2004/09/09 01:33:10 wiz Exp $ DISTNAME= bfd-mdsetimage-1.15.1 CATEGORIES= cross @@ -22,7 +22,7 @@ MAKE_ENV+= BFD_VERSION=${BFD_VERSION} \ LIBS="${BFD_LIBS}" FIX_RPATH+= BFD_LIBS -BFD_LIBS= -L${PREFIX}/lib ${COMPILER_RPATH_FLAG}${PREFIX}/lib -lbfd-${BFD_VERSION} -liberty +BFD_LIBS= -L${PREFIX}/lib ${COMPILER_RPATH_FLAG}${PREFIX}/lib -lbfd -liberty -lintl do-extract: @${MKDIR} ${WRKSRC} diff --git a/cross/bfd-mdsetimage/files/mdsetimage.c b/cross/bfd-mdsetimage/files/mdsetimage.c index a45bc3426de..6e4ac72fc3f 100644 --- a/cross/bfd-mdsetimage/files/mdsetimage.c +++ b/cross/bfd-mdsetimage/files/mdsetimage.c @@ -1,4 +1,4 @@ -/* $NetBSD: mdsetimage.c,v 1.3 2001/10/01 23:39:25 cgd Exp $ */ +/* $NetBSD: mdsetimage.c,v 1.4 2004/09/09 01:33:10 wiz Exp $ */ /* from: NetBSD: mdsetimage.c,v 1.15 2001/03/21 23:46:48 cgd Exp $ */ /* @@ -38,7 +38,7 @@ __COPYRIGHT( #endif /* not lint */ #ifndef lint -__RCSID("$NetBSD: mdsetimage.c,v 1.3 2001/10/01 23:39:25 cgd Exp $"); +__RCSID("$NetBSD: mdsetimage.c,v 1.4 2004/09/09 01:33:10 wiz Exp $"); #endif /* not lint */ #include <sys/types.h> @@ -59,9 +59,9 @@ struct symbols { size_t offset; } md_root_symbols[] = { #define X_MD_ROOT_IMAGE 0 - { "_md_root_image", NULL, 0 }, + { "_md_root_image", 0, 0 }, #define X_MD_ROOT_SIZE 1 - { "_md_root_size", NULL, 0 }, + { "_md_root_size", 0, 0 }, { NULL } }; @@ -206,7 +206,7 @@ find_md_root(abfd, symbols) long number_of_symbols; asymbol **symbol_table = NULL; struct symbols *s; - struct sec *p; + struct bfd_section *p; storage_needed = bfd_get_symtab_upper_bound(abfd); if (storage_needed <= 0) @@ -239,7 +239,7 @@ find_md_root(abfd, symbols) free(symbol_table); for (s = symbols; s->name != NULL; s++) { - if (s->vma == NULL) + if (s->vma == 0) return (1); for (p = abfd->sections; p != NULL; p = p->next) { |