head 1.4; access; symbols pkgsrc-2016Q1:1.3.0.80 pkgsrc-2016Q1-base:1.3 pkgsrc-2015Q4:1.3.0.78 pkgsrc-2015Q4-base:1.3 pkgsrc-2015Q3:1.3.0.76 pkgsrc-2015Q3-base:1.3 pkgsrc-2015Q2:1.3.0.74 pkgsrc-2015Q2-base:1.3 pkgsrc-2015Q1:1.3.0.72 pkgsrc-2015Q1-base:1.3 pkgsrc-2014Q4:1.3.0.70 pkgsrc-2014Q4-base:1.3 pkgsrc-2014Q3:1.3.0.68 pkgsrc-2014Q3-base:1.3 pkgsrc-2014Q2:1.3.0.66 pkgsrc-2014Q2-base:1.3 pkgsrc-2014Q1:1.3.0.64 pkgsrc-2014Q1-base:1.3 pkgsrc-2013Q4:1.3.0.62 pkgsrc-2013Q4-base:1.3 pkgsrc-2013Q3:1.3.0.60 pkgsrc-2013Q3-base:1.3 pkgsrc-2013Q2:1.3.0.58 pkgsrc-2013Q2-base:1.3 pkgsrc-2013Q1:1.3.0.56 pkgsrc-2013Q1-base:1.3 pkgsrc-2012Q4:1.3.0.54 pkgsrc-2012Q4-base:1.3 pkgsrc-2012Q3:1.3.0.52 pkgsrc-2012Q3-base:1.3 pkgsrc-2012Q2:1.3.0.50 pkgsrc-2012Q2-base:1.3 pkgsrc-2012Q1:1.3.0.48 pkgsrc-2012Q1-base:1.3 pkgsrc-2011Q4:1.3.0.46 pkgsrc-2011Q4-base:1.3 pkgsrc-2011Q3:1.3.0.44 pkgsrc-2011Q3-base:1.3 pkgsrc-2011Q2:1.3.0.42 pkgsrc-2011Q2-base:1.3 pkgsrc-2011Q1:1.3.0.40 pkgsrc-2011Q1-base:1.3 pkgsrc-2010Q4:1.3.0.38 pkgsrc-2010Q4-base:1.3 pkgsrc-2010Q3:1.3.0.36 pkgsrc-2010Q3-base:1.3 pkgsrc-2010Q2:1.3.0.34 pkgsrc-2010Q2-base:1.3 pkgsrc-2010Q1:1.3.0.32 pkgsrc-2010Q1-base:1.3 pkgsrc-2009Q4:1.3.0.30 pkgsrc-2009Q4-base:1.3 pkgsrc-2009Q3:1.3.0.28 pkgsrc-2009Q3-base:1.3 pkgsrc-2009Q2:1.3.0.26 pkgsrc-2009Q2-base:1.3 pkgsrc-2009Q1:1.3.0.24 pkgsrc-2009Q1-base:1.3 pkgsrc-2008Q4:1.3.0.22 pkgsrc-2008Q4-base:1.3 pkgsrc-2008Q3:1.3.0.20 pkgsrc-2008Q3-base:1.3 cube-native-xorg:1.3.0.18 cube-native-xorg-base:1.3 pkgsrc-2008Q2:1.3.0.16 pkgsrc-2008Q2-base:1.3 cwrapper:1.3.0.14 pkgsrc-2008Q1:1.3.0.12 pkgsrc-2008Q1-base:1.3 pkgsrc-2007Q4:1.3.0.10 pkgsrc-2007Q4-base:1.3 pkgsrc-2007Q3:1.3.0.8 pkgsrc-2007Q3-base:1.3 pkgsrc-2007Q2:1.3.0.6 pkgsrc-2007Q2-base:1.3 pkgsrc-2007Q1:1.3.0.4 pkgsrc-2007Q1-base:1.3 pkgsrc-2006Q4:1.3.0.2 pkgsrc-2006Q4-base:1.3 pkgsrc-2006Q3:1.2.0.18 pkgsrc-2006Q3-base:1.2 pkgsrc-2006Q2:1.2.0.16 pkgsrc-2006Q2-base:1.2 pkgsrc-2006Q1:1.2.0.14 pkgsrc-2006Q1-base:1.2 pkgsrc-2005Q4:1.2.0.12 pkgsrc-2005Q4-base:1.2 pkgsrc-2005Q3:1.2.0.10 pkgsrc-2005Q3-base:1.2 pkgsrc-2005Q2:1.2.0.8 pkgsrc-2005Q2-base:1.2 pkgsrc-2005Q1:1.2.0.6 pkgsrc-2005Q1-base:1.2 pkgsrc-2004Q4:1.2.0.4 pkgsrc-2004Q4-base:1.2 pkgsrc-2004Q3:1.2.0.2 pkgsrc-2004Q3-base:1.2 pkgsrc-2004Q2:1.1.0.14 pkgsrc-2004Q2-base:1.1 pkgsrc-2004Q1:1.1.0.12 pkgsrc-2004Q1-base:1.1 pkgsrc-2003Q4:1.1.0.10 pkgsrc-2003Q4-base:1.1 netbsd-1-6-1:1.1.0.6 netbsd-1-6-1-base:1.1 netbsd-1-6:1.1.0.8 netbsd-1-6-RELEASE-base:1.1 pkgviews:1.1.0.4 pkgviews-base:1.1 buildlink2:1.1.0.2 buildlink2-base:1.1 netbsd-1-5-PATCH003:1.1 netbsd-1-5-PATCH001:1.1 netbsd-1-5-RELEASE:1.1 netbsd-1-4-PATCH003:1.1 netbsd-1-4-PATCH002:1.1 comdex-fall-1999:1.1 netbsd-1-4-PATCH001:1.1 netbsd-1-4-RELEASE:1.1; locks; strict; comment @# @; 1.4 date 2016.06.19.16.18.28; author wiz; state dead; branches; next 1.3; commitid AIckwE2YTGFVT5bz; 1.3 date 2006.12.29.22.47.13; author wulf; state Exp; branches; next 1.2; 1.2 date 2004.07.09.20.43.48; author kristerw; state dead; branches; next 1.1; 1.1 date 99.01.04.22.37.31; author tv; state Exp; branches; next ; desc @@ 1.4 log @Move binutils to cross-binutils to make PKGNAME match directory name. Convert away from USE_CROSSBASE to plain ${PREFIX}/cross. @ text @$NetBSD: patch-aa,v 1.3 2006/12/29 22:47:13 wulf Exp $ --- opcodes/h8300-dis.c.orig 2006-12-28 13:58:41.000000000 +1030 +++ opcodes/h8300-dis.c 2006-12-28 13:59:59.000000000 +1030 @@@@ -362,7 +362,7 @@@@ for (qi = h8_instructions; qi->opcode->name; qi++) { const struct h8_opcode *q = qi->opcode; - op_type *nib = q->data.nib; + op_type *nib = (op_type *) q->data.nib; unsigned int len = 0; while (1) @@@@ -640,7 +640,7 @@@@ } if (strncmp (q->name, "mova", 4) == 0) { - op_type *args = q->args.nib; + op_type *args = (op_type *) q->args.nib; if (args[1] == (op_type) E) { @@@@ -666,7 +666,7 @@@@ } /* Fill in the args. */ { - op_type *args = q->args.nib; + op_type *args = (op_type *) q->args.nib; int hadone = 0; int nargs; @ 1.3 log @Added missing data type casts @ text @d1 1 a1 1 $NetBSD$ @ 1.2 log @Update to binutils-2.15. Changes since binutils-2.9 are not easy to summarize, since it represent more than 6 years of active development... Solves PR pkg/13442. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.1 1999/01/04 22:37:31 tv Exp $ d3 9 a11 4 --- ./bfd/elf64-alpha.c.orig Fri May 1 11:48:09 1998 +++ ./bfd/elf64-alpha.c Tue Dec 29 15:31:36 1998 @@@@ -1012,9 +1012,16 @@@@ #define PLT_HEADER_WORD4 0x6b7b0000 /* jmp $27,($27) */ d13 7 a19 11 #define PLT_ENTRY_SIZE 12 +#ifdef __NetBSD__ +/* XXX. XXX. For NetBSD 1.3 compatibility - should be fixed better */ +#define PLT_ENTRY_WORD1 0x279f0000 /* ldah $28, 0($31) */ +#define PLT_ENTRY_WORD2 0x239c0000 /* lda $28, 0($28) */ +#define PLT_ENTRY_WORD3 0xc3e00000 /* br $31, plt0 */ +#else #define PLT_ENTRY_WORD1 0xc3800000 /* br $28, plt0 */ #define PLT_ENTRY_WORD2 0 #define PLT_ENTRY_WORD3 0 +#endif d21 10 a30 1 #define MAX_GOT_ENTRIES (64*1024 / 8) a31 24 @@@@ -3118,9 +3125,23 @@@@ { unsigned insn1, insn2, insn3; +#ifdef __NetBSD__ +/* XXX. XXX. For NetBSD 1.3 compatibility - should be fixed better */ + long hi, lo; + + /* decompose the reloc offset for the plt for ldah+lda */ + hi = plt_index * sizeof(Elf64_External_Rela); + lo = ((hi & 0xffff) ^ 0x8000) - 0x8000; + hi = (hi - lo) >> 16; + + insn1 = PLT_ENTRY_WORD1 | (hi & 0xffff); + insn2 = PLT_ENTRY_WORD2 | (lo & 0xffff); + insn3 = PLT_ENTRY_WORD3 | ((-(h->plt_offset + 12) >> 2) & 0x1fffff); +#else insn1 = PLT_ENTRY_WORD1 | ((-(h->plt_offset + 4) >> 2) & 0x1fffff); insn2 = PLT_ENTRY_WORD2; insn3 = PLT_ENTRY_WORD3; +#endif bfd_put_32 (output_bfd, insn1, splt->contents + h->plt_offset); bfd_put_32 (output_bfd, insn2, splt->contents + h->plt_offset + 4); @ 1.1 log @Major `cross' category overhaul. Clean up the shared Makefiles; move all binutils stuff (except gas) to a shared, multiple-target binutils build; reduce extract and compile times by being more specific with files and targets; update to egcs 1.1.1 with a diffball from NetBSD's src/gnu/dist tree; add 4.4BSD a.out archive support to binutils. @ text @d1 1 a1 1 $NetBSD$ @