From 52cb49752a44a991245160e86208799635123b9e Mon Sep 17 00:00:00 2001 From: John Polstra Date: Sun, 1 Mar 1998 22:58:51 +0000 Subject: [PATCH] Initial import of GNU binutils version 2.8.1. Believe it or not, this is heavily stripped down. --- contrib/binutils/Makefile.in | 1564 ++++ contrib/binutils/README | 50 + contrib/binutils/bfd/ChangeLog | 6958 ++++++++++++++++ contrib/binutils/bfd/Makefile.in | 1213 +++ contrib/binutils/bfd/PORTING | 83 + contrib/binutils/bfd/README | 48 + contrib/binutils/bfd/TODO | 25 + contrib/binutils/bfd/VERSION | 1 + contrib/binutils/bfd/acconfig.h | 28 + contrib/binutils/bfd/aclocal.m4 | 49 + contrib/binutils/bfd/aout-encap.c | 236 + contrib/binutils/bfd/aout-target.h | 647 ++ contrib/binutils/bfd/aout0.c | 32 + contrib/binutils/bfd/aout32.c | 23 + contrib/binutils/bfd/aout64.c | 31 + contrib/binutils/bfd/aoutf1.h | 850 ++ contrib/binutils/bfd/aoutx.h | 5648 +++++++++++++ contrib/binutils/bfd/archive.c | 2104 +++++ contrib/binutils/bfd/archures.c | 738 ++ contrib/binutils/bfd/bfd-in.h | 693 ++ contrib/binutils/bfd/bfd-in2.h | 2678 ++++++ contrib/binutils/bfd/bfd.c | 1137 +++ contrib/binutils/bfd/binary.c | 361 + contrib/binutils/bfd/cache.c | 350 + contrib/binutils/bfd/coff-alpha.c | 2401 ++++++ contrib/binutils/bfd/coff-aux.c | 135 + contrib/binutils/bfd/coff-i386.c | 498 ++ contrib/binutils/bfd/coff-sh.c | 2718 +++++++ contrib/binutils/bfd/coff-z8k.c | 280 + contrib/binutils/bfd/coffcode.h | 3997 +++++++++ contrib/binutils/bfd/coffgen.c | 2301 ++++++ contrib/binutils/bfd/cofflink.c | 2556 ++++++ contrib/binutils/bfd/coffswap.h | 840 ++ contrib/binutils/bfd/config.bfd | 567 ++ contrib/binutils/bfd/config.in | 82 + contrib/binutils/bfd/configure | 2919 +++++++ contrib/binutils/bfd/configure.host | 171 + contrib/binutils/bfd/configure.in | 631 ++ contrib/binutils/bfd/corefile.c | 106 + contrib/binutils/bfd/cpu-alpha.c | 38 + contrib/binutils/bfd/cpu-i386.c | 54 + contrib/binutils/bfd/cpu-sh.c | 68 + contrib/binutils/bfd/cpu-z8k.c | 198 + contrib/binutils/bfd/demo64.c | 24 + contrib/binutils/bfd/dep-in.sed | 25 + contrib/binutils/bfd/doc/ChangeLog | 290 + contrib/binutils/bfd/doc/Makefile.in | 381 + contrib/binutils/bfd/doc/aoutx.texi | 211 + contrib/binutils/bfd/doc/archive.texi | 95 + contrib/binutils/bfd/doc/archures.texi | 307 + contrib/binutils/bfd/doc/bfd.texi | 585 ++ contrib/binutils/bfd/doc/bfd.texinfo | 348 + contrib/binutils/bfd/doc/bfdsumm.texi | 148 + contrib/binutils/bfd/doc/cache.texi | 95 + contrib/binutils/bfd/doc/chew.c | 1553 ++++ contrib/binutils/bfd/doc/coffcode.texi | 627 ++ contrib/binutils/bfd/doc/core.texi | 38 + contrib/binutils/bfd/doc/doc.str | 158 + contrib/binutils/bfd/doc/elf.texi | 22 + contrib/binutils/bfd/doc/elfcode.texi | 0 contrib/binutils/bfd/doc/format.texi | 108 + contrib/binutils/bfd/doc/hash.texi | 244 + contrib/binutils/bfd/doc/init.texi | 13 + contrib/binutils/bfd/doc/libbfd.texi | 142 + contrib/binutils/bfd/doc/linker.texi | 365 + contrib/binutils/bfd/doc/opncls.texi | 128 + contrib/binutils/bfd/doc/proto.str | 135 + contrib/binutils/bfd/doc/reloc.texi | 914 +++ contrib/binutils/bfd/doc/section.texi | 649 ++ contrib/binutils/bfd/doc/syms.texi | 407 + contrib/binutils/bfd/doc/targets.texi | 478 ++ contrib/binutils/bfd/ecoff.c | 4824 +++++++++++ contrib/binutils/bfd/ecofflink.c | 2498 ++++++ contrib/binutils/bfd/ecoffswap.h | 853 ++ contrib/binutils/bfd/elf-bfd.h | 1001 +++ contrib/binutils/bfd/elf.c | 4176 ++++++++++ contrib/binutils/bfd/elf32-gen.c | 37 + contrib/binutils/bfd/elf32-i386.c | 1842 +++++ contrib/binutils/bfd/elf32-sh.c | 1905 +++++ contrib/binutils/bfd/elf32.c | 23 + contrib/binutils/bfd/elf64-alpha.c | 3792 +++++++++ contrib/binutils/bfd/elf64-gen.c | 37 + contrib/binutils/bfd/elf64.c | 22 + contrib/binutils/bfd/elfcode.h | 1436 ++++ contrib/binutils/bfd/elfcore.h | 550 ++ contrib/binutils/bfd/elflink.c | 412 + contrib/binutils/bfd/elflink.h | 5073 ++++++++++++ contrib/binutils/bfd/elfxx-target.h | 491 ++ contrib/binutils/bfd/filemode.c | 194 + contrib/binutils/bfd/format.c | 319 + contrib/binutils/bfd/freebsd.h | 110 + contrib/binutils/bfd/gen-aout.c | 101 + contrib/binutils/bfd/genlink.h | 111 + contrib/binutils/bfd/hash.c | 734 ++ contrib/binutils/bfd/host-aout.c | 83 + contrib/binutils/bfd/hosts/alphalinux.h | 6 + contrib/binutils/bfd/hosts/i386bsd.h | 32 + contrib/binutils/bfd/hosts/i386linux.h | 8 + contrib/binutils/bfd/hosts/i386sco.h | 19 + contrib/binutils/bfd/i386aout.c | 91 + contrib/binutils/bfd/i386bsd.c | 46 + contrib/binutils/bfd/i386freebsd.c | 33 + contrib/binutils/bfd/i386linux.c | 767 ++ contrib/binutils/bfd/i386netbsd.c | 33 + contrib/binutils/bfd/ieee.c | 3831 +++++++++ contrib/binutils/bfd/ihex.c | 1017 +++ contrib/binutils/bfd/init.c | 50 + contrib/binutils/bfd/libaout.h | 618 ++ contrib/binutils/bfd/libbfd-in.h | 520 ++ contrib/binutils/bfd/libbfd.c | 1190 +++ contrib/binutils/bfd/libbfd.h | 801 ++ contrib/binutils/bfd/libcoff-in.h | 518 ++ contrib/binutils/bfd/libcoff.h | 865 ++ contrib/binutils/bfd/libecoff.h | 357 + contrib/binutils/bfd/libieee.h | 133 + contrib/binutils/bfd/linker.c | 2797 +++++++ contrib/binutils/bfd/netbsd-core.c | 310 + contrib/binutils/bfd/netbsd.h | 128 + contrib/binutils/bfd/opncls.c | 579 ++ contrib/binutils/bfd/osf-core.c | 256 + contrib/binutils/bfd/pe-i386.c | 31 + contrib/binutils/bfd/ptrace-core.c | 234 + contrib/binutils/bfd/reloc.c | 2558 ++++++ contrib/binutils/bfd/reloc16.c | 332 + contrib/binutils/bfd/section.c | 1022 +++ contrib/binutils/bfd/srec.c | 1387 ++++ contrib/binutils/bfd/stab-syms.c | 57 + contrib/binutils/bfd/stabs.c | 645 ++ contrib/binutils/bfd/syms.c | 1108 +++ contrib/binutils/bfd/sysdep.h | 125 + contrib/binutils/bfd/targets.c | 1011 +++ contrib/binutils/bfd/targmatch.sed | 32 + contrib/binutils/bfd/tekhex.c | 1059 +++ contrib/binutils/bfd/trad-core.c | 317 + contrib/binutils/binutils/ChangeLog | 4855 +++++++++++ contrib/binutils/binutils/Makefile.in | 748 ++ contrib/binutils/binutils/NEWS | 135 + contrib/binutils/binutils/README | 107 + contrib/binutils/binutils/acconfig.h | 25 + contrib/binutils/binutils/aclocal.m4 | 1 + contrib/binutils/binutils/addr2line.1 | 127 + contrib/binutils/binutils/addr2line.c | 324 + contrib/binutils/binutils/ar.1 | 487 ++ contrib/binutils/binutils/ar.c | 1299 +++ contrib/binutils/binutils/arlex.l | 83 + contrib/binutils/binutils/arparse.y | 201 + contrib/binutils/binutils/arsup.c | 456 ++ contrib/binutils/binutils/arsup.h | 75 + contrib/binutils/binutils/binutils.texi | 2319 ++++++ contrib/binutils/binutils/bucomm.c | 237 + contrib/binutils/binutils/bucomm.h | 148 + contrib/binutils/binutils/budbg.h | 58 + contrib/binutils/binutils/coffdump.c | 544 ++ contrib/binutils/binutils/coffgrok.c | 735 ++ contrib/binutils/binutils/coffgrok.h | 206 + contrib/binutils/binutils/config.in | 86 + contrib/binutils/binutils/config.texi | 1 + contrib/binutils/binutils/configure | 2635 ++++++ contrib/binutils/binutils/configure.in | 257 + contrib/binutils/binutils/cxxfilt.man | 114 + contrib/binutils/binutils/debug.c | 3506 ++++++++ contrib/binutils/binutils/debug.h | 798 ++ contrib/binutils/binutils/deflex.l | 85 + contrib/binutils/binutils/defparse.y | 132 + contrib/binutils/binutils/dep-in.sed | 16 + contrib/binutils/binutils/dlltool.c | 2358 ++++++ contrib/binutils/binutils/filemode.c | 266 + contrib/binutils/binutils/ieee.c | 7602 ++++++++++++++++++ contrib/binutils/binutils/is-ranlib.c | 3 + contrib/binutils/binutils/is-strip.c | 4 + contrib/binutils/binutils/maybe-ranlib.c | 4 + contrib/binutils/binutils/maybe-strip.c | 4 + contrib/binutils/binutils/nm.1 | 230 + contrib/binutils/binutils/nm.c | 1539 ++++ contrib/binutils/binutils/not-ranlib.c | 3 + contrib/binutils/binutils/not-strip.c | 4 + contrib/binutils/binutils/objcopy.1 | 292 + contrib/binutils/binutils/objcopy.c | 2113 +++++ contrib/binutils/binutils/objdump.1 | 402 + contrib/binutils/binutils/objdump.c | 2740 +++++++ contrib/binutils/binutils/prdbg.c | 1862 +++++ contrib/binutils/binutils/ranlib.1 | 83 + contrib/binutils/binutils/ranlib.sh | 3 + contrib/binutils/binutils/rdcoff.c | 889 ++ contrib/binutils/binutils/rddbg.c | 448 ++ contrib/binutils/binutils/sanity.sh | 50 + contrib/binutils/binutils/size.1 | 161 + contrib/binutils/binutils/size.c | 438 + contrib/binutils/binutils/srconv.c | 2028 +++++ contrib/binutils/binutils/stabs.c | 5082 ++++++++++++ contrib/binutils/binutils/strings.1 | 151 + contrib/binutils/binutils/strings.c | 508 ++ contrib/binutils/binutils/strip.1 | 185 + contrib/binutils/binutils/sysdump.c | 765 ++ contrib/binutils/binutils/sysinfo.y | 413 + contrib/binutils/binutils/syslex.l | 51 + contrib/binutils/binutils/version.c | 43 + contrib/binutils/binutils/wrstabs.c | 2416 ++++++ contrib/binutils/config-ml.in | 632 ++ contrib/binutils/config.guess | 737 ++ contrib/binutils/config.sub | 1181 +++ contrib/binutils/config/ChangeLog | 303 + contrib/binutils/config/mh-cxux | 14 + contrib/binutils/config/mh-necv4 | 11 + contrib/binutils/config/mh-papic | 1 + contrib/binutils/config/mh-sco | 10 + contrib/binutils/config/mh-solaris | 6 + contrib/binutils/config/mh-sysv | 3 + contrib/binutils/config/mh-sysv4 | 11 + contrib/binutils/config/mh-x86pic | 1 + contrib/binutils/config/mt-papic | 1 + contrib/binutils/config/mt-v810 | 4 + contrib/binutils/config/mt-x86pic | 1 + contrib/binutils/configure | 1307 +++ contrib/binutils/configure.in | 843 ++ contrib/binutils/etc/Makefile.in | 102 + contrib/binutils/etc/cfg-paper.texi | 717 ++ contrib/binutils/etc/configure | 794 ++ contrib/binutils/etc/configure.in | 7 + contrib/binutils/etc/configure.man | 166 + contrib/binutils/etc/configure.texi | 1830 +++++ contrib/binutils/etc/make-stds.texi | 893 ++ contrib/binutils/etc/standards.texi | 3061 +++++++ contrib/binutils/gas/CONTRIBUTORS | 100 + contrib/binutils/gas/ChangeLog | 4849 +++++++++++ contrib/binutils/gas/Makefile.in | 1644 ++++ contrib/binutils/gas/NEWS | 251 + contrib/binutils/gas/README | 271 + contrib/binutils/gas/acconfig.h | 61 + contrib/binutils/gas/aclocal.m4 | 58 + contrib/binutils/gas/app.c | 1104 +++ contrib/binutils/gas/as.c | 906 +++ contrib/binutils/gas/as.h | 662 ++ contrib/binutils/gas/atof-generic.c | 636 ++ contrib/binutils/gas/bignum-copy.c | 80 + contrib/binutils/gas/bignum.h | 52 + contrib/binutils/gas/bit_fix.h | 51 + contrib/binutils/gas/cgen.c | 527 ++ contrib/binutils/gas/cond.c | 451 ++ contrib/binutils/gas/conf.in | 127 + contrib/binutils/gas/config/aout_gnu.h | 455 ++ contrib/binutils/gas/config/atof-ieee.c | 679 ++ contrib/binutils/gas/config/e-i386coff.c | 17 + contrib/binutils/gas/config/e-i386elf.c | 17 + contrib/binutils/gas/config/i386coff.mt | 1 + contrib/binutils/gas/config/obj-aout.c | 629 ++ contrib/binutils/gas/config/obj-aout.h | 235 + contrib/binutils/gas/config/obj-coff.c | 4378 ++++++++++ contrib/binutils/gas/config/obj-coff.h | 798 ++ contrib/binutils/gas/config/obj-ecoff.c | 305 + contrib/binutils/gas/config/obj-ecoff.h | 70 + contrib/binutils/gas/config/obj-elf.c | 1600 ++++ contrib/binutils/gas/config/obj-elf.h | 173 + contrib/binutils/gas/config/obj-generic.c | 41 + contrib/binutils/gas/config/obj-generic.h | 80 + contrib/binutils/gas/config/obj-ieee.c | 627 ++ contrib/binutils/gas/config/obj-ieee.h | 50 + contrib/binutils/gas/config/obj-multi.c | 4 + contrib/binutils/gas/config/obj-multi.h | 50 + contrib/binutils/gas/config/sco5.mt | 1 + contrib/binutils/gas/config/tc-alpha.c | 4428 ++++++++++ contrib/binutils/gas/config/tc-alpha.h | 84 + contrib/binutils/gas/config/tc-generic.c | 0 contrib/binutils/gas/config/tc-generic.h | 39 + contrib/binutils/gas/config/tc-i386.c | 3174 ++++++++ contrib/binutils/gas/config/tc-i386.h | 434 + contrib/binutils/gas/config/tc-m68851.h | 304 + contrib/binutils/gas/config/tc-sh.c | 2110 +++++ contrib/binutils/gas/config/tc-sh.h | 134 + contrib/binutils/gas/config/tc-z8k.c | 1613 ++++ contrib/binutils/gas/config/tc-z8k.h | 46 + contrib/binutils/gas/config/te-386bsd.h | 31 + contrib/binutils/gas/config/te-aux.h | 17 + contrib/binutils/gas/config/te-generic.h | 22 + contrib/binutils/gas/config/te-linux.h | 4 + contrib/binutils/gas/config/te-multi.h | 22 + contrib/binutils/gas/config/te-nbsd.h | 21 + contrib/binutils/gas/config/te-pe.h | 7 + contrib/binutils/gas/config/te-svr4.h | 4 + contrib/binutils/gas/config/te-sysv32.h | 6 + contrib/binutils/gas/configure | 2881 +++++++ contrib/binutils/gas/configure.in | 815 ++ contrib/binutils/gas/debug.c | 104 + contrib/binutils/gas/dep-in.sed | 44 + contrib/binutils/gas/doc/Makefile.in | 193 + contrib/binutils/gas/doc/all.texi | 66 + contrib/binutils/gas/doc/as.1 | 293 + contrib/binutils/gas/doc/as.texinfo | 4970 ++++++++++++ contrib/binutils/gas/doc/c-i386.texi | 467 ++ contrib/binutils/gas/doc/c-sh.texi | 265 + contrib/binutils/gas/doc/c-z8k.texi | 380 + contrib/binutils/gas/doc/gasp.texi | 1086 +++ contrib/binutils/gas/doc/h8.texi | 26 + contrib/binutils/gas/doc/internals.texi | 1519 ++++ contrib/binutils/gas/ecoff.c | 5426 +++++++++++++ contrib/binutils/gas/ecoff.h | 111 + contrib/binutils/gas/emul-target.h | 43 + contrib/binutils/gas/emul.h | 23 + contrib/binutils/gas/expr.c | 1627 ++++ contrib/binutils/gas/expr.h | 155 + contrib/binutils/gas/flonum-copy.c | 73 + contrib/binutils/gas/flonum-konst.c | 209 + contrib/binutils/gas/flonum-mult.c | 200 + contrib/binutils/gas/flonum.h | 110 + contrib/binutils/gas/frags.c | 354 + contrib/binutils/gas/frags.h | 73 + contrib/binutils/gas/gasp.c | 3739 +++++++++ contrib/binutils/gas/gdbinit.in | 39 + contrib/binutils/gas/hash.c | 1028 +++ contrib/binutils/gas/hash.h | 45 + contrib/binutils/gas/input-file.c | 248 + contrib/binutils/gas/input-file.h | 68 + contrib/binutils/gas/input-scrub.c | 507 ++ contrib/binutils/gas/itbl-lex.l | 112 + contrib/binutils/gas/itbl-ops.c | 921 +++ contrib/binutils/gas/itbl-ops.h | 109 + contrib/binutils/gas/itbl-parse.y | 459 ++ contrib/binutils/gas/link.cmd | 10 + contrib/binutils/gas/listing.c | 1241 +++ contrib/binutils/gas/listing.h | 60 + contrib/binutils/gas/literal.c | 95 + contrib/binutils/gas/macro.c | 1231 +++ contrib/binutils/gas/macro.h | 52 + contrib/binutils/gas/messages.c | 537 ++ contrib/binutils/gas/obj.h | 79 + contrib/binutils/gas/output-file.c | 154 + contrib/binutils/gas/output-file.h | 25 + contrib/binutils/gas/read.c | 4350 ++++++++++ contrib/binutils/gas/read.h | 148 + contrib/binutils/gas/sb.c | 289 + contrib/binutils/gas/sb.h | 99 + contrib/binutils/gas/stabs.c | 461 ++ contrib/binutils/gas/struc-symbol.h | 162 + contrib/binutils/gas/subsegs.c | 593 ++ contrib/binutils/gas/subsegs.h | 158 + contrib/binutils/gas/symbols.c | 1684 ++++ contrib/binutils/gas/symbols.h | 90 + contrib/binutils/gas/tc.h | 112 + contrib/binutils/gas/write.c | 2779 +++++++ contrib/binutils/gas/write.h | 194 + contrib/binutils/include/ChangeLog | 1172 +++ contrib/binutils/include/ansidecl.h | 154 + contrib/binutils/include/aout/ChangeLog | 174 + contrib/binutils/include/aout/aout64.h | 475 ++ contrib/binutils/include/aout/ar.h | 36 + contrib/binutils/include/aout/encap.h | 135 + contrib/binutils/include/aout/host.h | 22 + contrib/binutils/include/aout/ranlib.h | 62 + contrib/binutils/include/aout/reloc.h | 66 + contrib/binutils/include/aout/stab.def | 264 + contrib/binutils/include/aout/stab_gnu.h | 37 + contrib/binutils/include/bfdlink.h | 504 ++ contrib/binutils/include/callback.h | 99 + contrib/binutils/include/coff/ChangeLog | 709 ++ contrib/binutils/include/coff/alpha.h | 362 + contrib/binutils/include/coff/aux-coff.h | 31 + contrib/binutils/include/coff/ecoff.h | 421 + contrib/binutils/include/coff/i386.h | 228 + contrib/binutils/include/coff/internal.h | 708 ++ contrib/binutils/include/coff/pe.h | 169 + contrib/binutils/include/coff/sh.h | 266 + contrib/binutils/include/coff/sym.h | 484 ++ contrib/binutils/include/coff/symconst.h | 177 + contrib/binutils/include/coff/z8k.h | 201 + contrib/binutils/include/demangle.h | 89 + contrib/binutils/include/dis-asm.h | 211 + contrib/binutils/include/elf/ChangeLog | 308 + contrib/binutils/include/elf/alpha.h | 92 + contrib/binutils/include/elf/common.h | 333 + contrib/binutils/include/elf/dwarf.h | 319 + contrib/binutils/include/elf/dwarf2.h | 551 ++ contrib/binutils/include/elf/external.h | 245 + contrib/binutils/include/elf/internal.h | 300 + contrib/binutils/include/floatformat.h | 88 + contrib/binutils/include/fnmatch.h | 69 + contrib/binutils/include/fopen-bin.h | 27 + contrib/binutils/include/fopen-same.h | 27 + contrib/binutils/include/gdbm.h | 91 + contrib/binutils/include/getopt.h | 129 + contrib/binutils/include/ieee.h | 139 + contrib/binutils/include/libiberty.h | 144 + contrib/binutils/include/objalloc.h | 115 + contrib/binutils/include/obstack.h | 569 ++ contrib/binutils/include/opcode/ChangeLog | 1109 +++ contrib/binutils/include/opcode/alpha.h | 237 + contrib/binutils/include/opcode/cgen.h | 686 ++ contrib/binutils/include/opcode/convex.h | 1711 ++++ contrib/binutils/include/opcode/i386.h | 981 +++ contrib/binutils/include/opcode/np1.h | 422 + contrib/binutils/include/opcode/pn.h | 282 + contrib/binutils/include/progress.h | 37 + contrib/binutils/include/remote-sim.h | 144 + contrib/binutils/include/wait.h | 63 + contrib/binutils/install.sh | 247 + contrib/binutils/ld/ChangeLog | 7027 ++++++++++++++++ contrib/binutils/ld/Makefile.in | 1074 +++ contrib/binutils/ld/NEWS | 160 + contrib/binutils/ld/README | 54 + contrib/binutils/ld/TODO | 9 + contrib/binutils/ld/acconfig.h | 16 + contrib/binutils/ld/aclocal.m4 | 1 + contrib/binutils/ld/config.in | 43 + contrib/binutils/ld/configdoc.texi | 13 + contrib/binutils/ld/configure | 1884 +++++ contrib/binutils/ld/configure.host | 198 + contrib/binutils/ld/configure.in | 154 + contrib/binutils/ld/configure.tgt | 192 + contrib/binutils/ld/dep-in.sed | 16 + contrib/binutils/ld/emulparams/README | 2 + contrib/binutils/ld/emulparams/alpha.sh | 3 + contrib/binutils/ld/emulparams/elf32b4300.sh | 29 + contrib/binutils/ld/emulparams/elf32l4300.sh | 29 + contrib/binutils/ld/emulparams/elf64alpha.sh | 15 + contrib/binutils/ld/emulparams/elf_i386.sh | 10 + contrib/binutils/ld/emulparams/i386aout.sh | 6 + contrib/binutils/ld/emulparams/i386bsd.sh | 6 + contrib/binutils/ld/emulparams/i386coff.sh | 5 + contrib/binutils/ld/emulparams/i386linux.sh | 7 + contrib/binutils/ld/emulparams/i386moss.sh | 10 + contrib/binutils/ld/emulparams/i386nbsd.sh | 6 + contrib/binutils/ld/emulparams/i386nw.sh | 9 + contrib/binutils/ld/emulparams/i386pe.sh | 5 + contrib/binutils/ld/emulparams/sh.sh | 5 + contrib/binutils/ld/emulparams/shelf.sh | 17 + contrib/binutils/ld/emulparams/shl.sh | 5 + contrib/binutils/ld/emulparams/shlelf.sh | 17 + contrib/binutils/ld/emulparams/vanilla.sh | 5 + contrib/binutils/ld/emulparams/vsta.sh | 8 + contrib/binutils/ld/emulparams/z8001.sh | 7 + contrib/binutils/ld/emulparams/z8002.sh | 6 + contrib/binutils/ld/emultempl/README | 3 + contrib/binutils/ld/emultempl/elf32.em | 1011 +++ contrib/binutils/ld/emultempl/generic.em | 118 + contrib/binutils/ld/emultempl/linux.em | 207 + contrib/binutils/ld/emultempl/pe.em | 743 ++ contrib/binutils/ld/emultempl/stringify.sed | 4 + contrib/binutils/ld/emultempl/vanilla.em | 69 + contrib/binutils/ld/gen-doc.texi | 13 + contrib/binutils/ld/genscripts.sh | 133 + contrib/binutils/ld/h8-doc.texi | 14 + contrib/binutils/ld/ld.1 | 1072 +++ contrib/binutils/ld/ld.h | 170 + contrib/binutils/ld/ld.texinfo | 3620 +++++++++ contrib/binutils/ld/ldcref.c | 547 ++ contrib/binutils/ld/ldctor.c | 247 + contrib/binutils/ld/ldctor.h | 54 + contrib/binutils/ld/ldemul.c | 262 + contrib/binutils/ld/ldemul.h | 138 + contrib/binutils/ld/ldexp.c | 938 +++ contrib/binutils/ld/ldexp.h | 109 + contrib/binutils/ld/ldfile.c | 397 + contrib/binutils/ld/ldfile.h | 53 + contrib/binutils/ld/ldgram.y | 1017 +++ contrib/binutils/ld/ldint.texinfo | 412 + contrib/binutils/ld/ldlang.c | 3978 +++++++++ contrib/binutils/ld/ldlang.h | 482 ++ contrib/binutils/ld/ldlex.h | 62 + contrib/binutils/ld/ldlex.l | 633 ++ contrib/binutils/ld/ldmain.c | 1271 +++ contrib/binutils/ld/ldmain.h | 38 + contrib/binutils/ld/ldmisc.c | 534 ++ contrib/binutils/ld/ldmisc.h | 56 + contrib/binutils/ld/ldver.c | 49 + contrib/binutils/ld/ldver.h | 22 + contrib/binutils/ld/ldwrite.c | 490 ++ contrib/binutils/ld/ldwrite.h | 20 + contrib/binutils/ld/lexsup.c | 948 +++ contrib/binutils/ld/mri.c | 377 + contrib/binutils/ld/mri.h | 39 + contrib/binutils/ld/scripttempl/README | 4 + contrib/binutils/ld/scripttempl/alpha.sc | 74 + contrib/binutils/ld/scripttempl/aout.sc | 55 + contrib/binutils/ld/scripttempl/elf.sc | 200 + contrib/binutils/ld/scripttempl/i386coff.sc | 43 + contrib/binutils/ld/scripttempl/nw.sc | 131 + contrib/binutils/ld/scripttempl/pe.sc | 112 + contrib/binutils/ld/scripttempl/sh.sc | 59 + contrib/binutils/ld/scripttempl/vanilla.sc | 1 + contrib/binutils/ld/scripttempl/z8000.sc | 54 + contrib/binutils/ld/sysdep.h | 69 + contrib/binutils/libiberty/ChangeLog | 2152 +++++ contrib/binutils/libiberty/Makefile.in | 324 + contrib/binutils/libiberty/README | 129 + contrib/binutils/libiberty/alloca-botch.h | 5 + contrib/binutils/libiberty/alloca-norm.h | 23 + contrib/binutils/libiberty/alloca.c | 479 ++ contrib/binutils/libiberty/argv.c | 333 + contrib/binutils/libiberty/atexit.c | 14 + contrib/binutils/libiberty/basename.c | 43 + contrib/binutils/libiberty/bcmp.c | 49 + contrib/binutils/libiberty/bcopy.c | 35 + contrib/binutils/libiberty/bzero.c | 31 + contrib/binutils/libiberty/choose-temp.c | 144 + contrib/binutils/libiberty/clock.c | 73 + contrib/binutils/libiberty/concat.c | 167 + contrib/binutils/libiberty/config.table | 69 + contrib/binutils/libiberty/config/mh-cxux7 | 3 + contrib/binutils/libiberty/config/mh-sysv | 1 + contrib/binutils/libiberty/config/mh-sysv4 | 3 + contrib/binutils/libiberty/configure.in | 78 + contrib/binutils/libiberty/copysign.c | 140 + contrib/binutils/libiberty/cplus-dem.c | 3062 +++++++ contrib/binutils/libiberty/dummy.c | 49 + contrib/binutils/libiberty/fdmatch.c | 73 + contrib/binutils/libiberty/floatformat.c | 393 + contrib/binutils/libiberty/fnmatch.c | 223 + contrib/binutils/libiberty/functions.def | 69 + contrib/binutils/libiberty/getcwd.c | 52 + contrib/binutils/libiberty/getopt.c | 760 ++ contrib/binutils/libiberty/getopt1.c | 190 + contrib/binutils/libiberty/getpagesize.c | 89 + contrib/binutils/libiberty/getruntime.c | 82 + contrib/binutils/libiberty/hex.c | 33 + contrib/binutils/libiberty/index.c | 11 + contrib/binutils/libiberty/insque.c | 50 + contrib/binutils/libiberty/memchr.c | 60 + contrib/binutils/libiberty/memcmp.c | 38 + contrib/binutils/libiberty/memcpy.c | 28 + contrib/binutils/libiberty/memmove.c | 18 + contrib/binutils/libiberty/memset.c | 19 + contrib/binutils/libiberty/objalloc.c | 289 + contrib/binutils/libiberty/obstack.c | 515 ++ contrib/binutils/libiberty/pexecute.c | 573 ++ contrib/binutils/libiberty/random.c | 373 + contrib/binutils/libiberty/rename.c | 22 + contrib/binutils/libiberty/rindex.c | 11 + contrib/binutils/libiberty/sigsetmask.c | 30 + contrib/binutils/libiberty/spaces.c | 78 + contrib/binutils/libiberty/strcasecmp.c | 82 + contrib/binutils/libiberty/strchr.c | 34 + contrib/binutils/libiberty/strdup.c | 10 + contrib/binutils/libiberty/strerror.c | 831 ++ contrib/binutils/libiberty/strncasecmp.c | 82 + contrib/binutils/libiberty/strrchr.c | 34 + contrib/binutils/libiberty/strsignal.c | 638 ++ contrib/binutils/libiberty/strstr.c | 51 + contrib/binutils/libiberty/strtod.c | 122 + contrib/binutils/libiberty/strtol.c | 143 + contrib/binutils/libiberty/strtoul.c | 110 + contrib/binutils/libiberty/tmpnam.c | 39 + contrib/binutils/libiberty/vasprintf.c | 165 + contrib/binutils/libiberty/vfork.c | 8 + contrib/binutils/libiberty/vfprintf.c | 13 + contrib/binutils/libiberty/vprintf.c | 15 + contrib/binutils/libiberty/vsprintf.c | 55 + contrib/binutils/libiberty/waitpid.c | 11 + contrib/binutils/libiberty/xatexit.c | 82 + contrib/binutils/libiberty/xexit.c | 36 + contrib/binutils/libiberty/xmalloc.c | 113 + contrib/binutils/libiberty/xstrdup.c | 17 + contrib/binutils/libiberty/xstrerror.c | 56 + contrib/binutils/move-if-change | 32 + contrib/binutils/opcodes/ChangeLog | 2804 +++++++ contrib/binutils/opcodes/Makefile.in | 456 ++ contrib/binutils/opcodes/aclocal.m4 | 1 + contrib/binutils/opcodes/alpha-dis.c | 199 + contrib/binutils/opcodes/alpha-opc.c | 1424 ++++ contrib/binutils/opcodes/cgen-asm.c | 291 + contrib/binutils/opcodes/cgen-dis.c | 162 + contrib/binutils/opcodes/cgen-opc.c | 306 + contrib/binutils/opcodes/config.in | 10 + contrib/binutils/opcodes/configure | 1691 ++++ contrib/binutils/opcodes/configure.in | 230 + contrib/binutils/opcodes/dep-in.sed | 19 + contrib/binutils/opcodes/dis-buf.c | 70 + contrib/binutils/opcodes/disassemble.c | 192 + contrib/binutils/opcodes/i386-dis.c | 2253 ++++++ contrib/binutils/opcodes/sh-dis.c | 305 + contrib/binutils/opcodes/sh-opc.h | 493 ++ contrib/binutils/opcodes/sysdep.h | 42 + contrib/binutils/opcodes/z8k-dis.c | 571 ++ contrib/binutils/opcodes/z8k-opc.h | 4438 ++++++++++ contrib/binutils/opcodes/z8kgen.c | 1313 +++ contrib/binutils/symlink-tree | 46 + 574 files changed, 335157 insertions(+) create mode 100644 contrib/binutils/Makefile.in create mode 100644 contrib/binutils/README create mode 100644 contrib/binutils/bfd/ChangeLog create mode 100644 contrib/binutils/bfd/Makefile.in create mode 100644 contrib/binutils/bfd/PORTING create mode 100644 contrib/binutils/bfd/README create mode 100644 contrib/binutils/bfd/TODO create mode 100644 contrib/binutils/bfd/VERSION create mode 100644 contrib/binutils/bfd/acconfig.h create mode 100644 contrib/binutils/bfd/aclocal.m4 create mode 100644 contrib/binutils/bfd/aout-encap.c create mode 100644 contrib/binutils/bfd/aout-target.h create mode 100644 contrib/binutils/bfd/aout0.c create mode 100644 contrib/binutils/bfd/aout32.c create mode 100644 contrib/binutils/bfd/aout64.c create mode 100644 contrib/binutils/bfd/aoutf1.h create mode 100644 contrib/binutils/bfd/aoutx.h create mode 100644 contrib/binutils/bfd/archive.c create mode 100644 contrib/binutils/bfd/archures.c create mode 100644 contrib/binutils/bfd/bfd-in.h create mode 100644 contrib/binutils/bfd/bfd-in2.h create mode 100644 contrib/binutils/bfd/bfd.c create mode 100644 contrib/binutils/bfd/binary.c create mode 100644 contrib/binutils/bfd/cache.c create mode 100644 contrib/binutils/bfd/coff-alpha.c create mode 100644 contrib/binutils/bfd/coff-aux.c create mode 100644 contrib/binutils/bfd/coff-i386.c create mode 100644 contrib/binutils/bfd/coff-sh.c create mode 100644 contrib/binutils/bfd/coff-z8k.c create mode 100644 contrib/binutils/bfd/coffcode.h create mode 100644 contrib/binutils/bfd/coffgen.c create mode 100644 contrib/binutils/bfd/cofflink.c create mode 100644 contrib/binutils/bfd/coffswap.h create mode 100755 contrib/binutils/bfd/config.bfd create mode 100644 contrib/binutils/bfd/config.in create mode 100755 contrib/binutils/bfd/configure create mode 100644 contrib/binutils/bfd/configure.host create mode 100644 contrib/binutils/bfd/configure.in create mode 100644 contrib/binutils/bfd/corefile.c create mode 100644 contrib/binutils/bfd/cpu-alpha.c create mode 100644 contrib/binutils/bfd/cpu-i386.c create mode 100644 contrib/binutils/bfd/cpu-sh.c create mode 100644 contrib/binutils/bfd/cpu-z8k.c create mode 100644 contrib/binutils/bfd/demo64.c create mode 100644 contrib/binutils/bfd/dep-in.sed create mode 100644 contrib/binutils/bfd/doc/ChangeLog create mode 100644 contrib/binutils/bfd/doc/Makefile.in create mode 100644 contrib/binutils/bfd/doc/aoutx.texi create mode 100644 contrib/binutils/bfd/doc/archive.texi create mode 100644 contrib/binutils/bfd/doc/archures.texi create mode 100644 contrib/binutils/bfd/doc/bfd.texi create mode 100644 contrib/binutils/bfd/doc/bfd.texinfo create mode 100644 contrib/binutils/bfd/doc/bfdsumm.texi create mode 100644 contrib/binutils/bfd/doc/cache.texi create mode 100644 contrib/binutils/bfd/doc/chew.c create mode 100644 contrib/binutils/bfd/doc/coffcode.texi create mode 100644 contrib/binutils/bfd/doc/core.texi create mode 100644 contrib/binutils/bfd/doc/doc.str create mode 100644 contrib/binutils/bfd/doc/elf.texi create mode 100644 contrib/binutils/bfd/doc/elfcode.texi create mode 100644 contrib/binutils/bfd/doc/format.texi create mode 100644 contrib/binutils/bfd/doc/hash.texi create mode 100644 contrib/binutils/bfd/doc/init.texi create mode 100644 contrib/binutils/bfd/doc/libbfd.texi create mode 100644 contrib/binutils/bfd/doc/linker.texi create mode 100644 contrib/binutils/bfd/doc/opncls.texi create mode 100644 contrib/binutils/bfd/doc/proto.str create mode 100644 contrib/binutils/bfd/doc/reloc.texi create mode 100644 contrib/binutils/bfd/doc/section.texi create mode 100644 contrib/binutils/bfd/doc/syms.texi create mode 100644 contrib/binutils/bfd/doc/targets.texi create mode 100644 contrib/binutils/bfd/ecoff.c create mode 100644 contrib/binutils/bfd/ecofflink.c create mode 100644 contrib/binutils/bfd/ecoffswap.h create mode 100644 contrib/binutils/bfd/elf-bfd.h create mode 100644 contrib/binutils/bfd/elf.c create mode 100644 contrib/binutils/bfd/elf32-gen.c create mode 100644 contrib/binutils/bfd/elf32-i386.c create mode 100644 contrib/binutils/bfd/elf32-sh.c create mode 100644 contrib/binutils/bfd/elf32.c create mode 100644 contrib/binutils/bfd/elf64-alpha.c create mode 100644 contrib/binutils/bfd/elf64-gen.c create mode 100644 contrib/binutils/bfd/elf64.c create mode 100644 contrib/binutils/bfd/elfcode.h create mode 100644 contrib/binutils/bfd/elfcore.h create mode 100644 contrib/binutils/bfd/elflink.c create mode 100644 contrib/binutils/bfd/elflink.h create mode 100644 contrib/binutils/bfd/elfxx-target.h create mode 100644 contrib/binutils/bfd/filemode.c create mode 100644 contrib/binutils/bfd/format.c create mode 100644 contrib/binutils/bfd/freebsd.h create mode 100644 contrib/binutils/bfd/gen-aout.c create mode 100644 contrib/binutils/bfd/genlink.h create mode 100644 contrib/binutils/bfd/hash.c create mode 100644 contrib/binutils/bfd/host-aout.c create mode 100644 contrib/binutils/bfd/hosts/alphalinux.h create mode 100644 contrib/binutils/bfd/hosts/i386bsd.h create mode 100644 contrib/binutils/bfd/hosts/i386linux.h create mode 100644 contrib/binutils/bfd/hosts/i386sco.h create mode 100644 contrib/binutils/bfd/i386aout.c create mode 100644 contrib/binutils/bfd/i386bsd.c create mode 100644 contrib/binutils/bfd/i386freebsd.c create mode 100644 contrib/binutils/bfd/i386linux.c create mode 100644 contrib/binutils/bfd/i386netbsd.c create mode 100644 contrib/binutils/bfd/ieee.c create mode 100644 contrib/binutils/bfd/ihex.c create mode 100644 contrib/binutils/bfd/init.c create mode 100644 contrib/binutils/bfd/libaout.h create mode 100644 contrib/binutils/bfd/libbfd-in.h create mode 100644 contrib/binutils/bfd/libbfd.c create mode 100644 contrib/binutils/bfd/libbfd.h create mode 100644 contrib/binutils/bfd/libcoff-in.h create mode 100644 contrib/binutils/bfd/libcoff.h create mode 100644 contrib/binutils/bfd/libecoff.h create mode 100644 contrib/binutils/bfd/libieee.h create mode 100644 contrib/binutils/bfd/linker.c create mode 100644 contrib/binutils/bfd/netbsd-core.c create mode 100644 contrib/binutils/bfd/netbsd.h create mode 100644 contrib/binutils/bfd/opncls.c create mode 100644 contrib/binutils/bfd/osf-core.c create mode 100644 contrib/binutils/bfd/pe-i386.c create mode 100644 contrib/binutils/bfd/ptrace-core.c create mode 100644 contrib/binutils/bfd/reloc.c create mode 100644 contrib/binutils/bfd/reloc16.c create mode 100644 contrib/binutils/bfd/section.c create mode 100644 contrib/binutils/bfd/srec.c create mode 100644 contrib/binutils/bfd/stab-syms.c create mode 100644 contrib/binutils/bfd/stabs.c create mode 100644 contrib/binutils/bfd/syms.c create mode 100644 contrib/binutils/bfd/sysdep.h create mode 100644 contrib/binutils/bfd/targets.c create mode 100644 contrib/binutils/bfd/targmatch.sed create mode 100644 contrib/binutils/bfd/tekhex.c create mode 100644 contrib/binutils/bfd/trad-core.c create mode 100644 contrib/binutils/binutils/ChangeLog create mode 100644 contrib/binutils/binutils/Makefile.in create mode 100644 contrib/binutils/binutils/NEWS create mode 100644 contrib/binutils/binutils/README create mode 100644 contrib/binutils/binutils/acconfig.h create mode 100644 contrib/binutils/binutils/aclocal.m4 create mode 100644 contrib/binutils/binutils/addr2line.1 create mode 100644 contrib/binutils/binutils/addr2line.c create mode 100644 contrib/binutils/binutils/ar.1 create mode 100644 contrib/binutils/binutils/ar.c create mode 100644 contrib/binutils/binutils/arlex.l create mode 100644 contrib/binutils/binutils/arparse.y create mode 100644 contrib/binutils/binutils/arsup.c create mode 100644 contrib/binutils/binutils/arsup.h create mode 100644 contrib/binutils/binutils/binutils.texi create mode 100644 contrib/binutils/binutils/bucomm.c create mode 100644 contrib/binutils/binutils/bucomm.h create mode 100644 contrib/binutils/binutils/budbg.h create mode 100644 contrib/binutils/binutils/coffdump.c create mode 100644 contrib/binutils/binutils/coffgrok.c create mode 100644 contrib/binutils/binutils/coffgrok.h create mode 100644 contrib/binutils/binutils/config.in create mode 100644 contrib/binutils/binutils/config.texi create mode 100755 contrib/binutils/binutils/configure create mode 100644 contrib/binutils/binutils/configure.in create mode 100644 contrib/binutils/binutils/cxxfilt.man create mode 100644 contrib/binutils/binutils/debug.c create mode 100644 contrib/binutils/binutils/debug.h create mode 100644 contrib/binutils/binutils/deflex.l create mode 100644 contrib/binutils/binutils/defparse.y create mode 100644 contrib/binutils/binutils/dep-in.sed create mode 100644 contrib/binutils/binutils/dlltool.c create mode 100644 contrib/binutils/binutils/filemode.c create mode 100644 contrib/binutils/binutils/ieee.c create mode 100644 contrib/binutils/binutils/is-ranlib.c create mode 100644 contrib/binutils/binutils/is-strip.c create mode 100644 contrib/binutils/binutils/maybe-ranlib.c create mode 100644 contrib/binutils/binutils/maybe-strip.c create mode 100644 contrib/binutils/binutils/nm.1 create mode 100644 contrib/binutils/binutils/nm.c create mode 100644 contrib/binutils/binutils/not-ranlib.c create mode 100644 contrib/binutils/binutils/not-strip.c create mode 100644 contrib/binutils/binutils/objcopy.1 create mode 100644 contrib/binutils/binutils/objcopy.c create mode 100644 contrib/binutils/binutils/objdump.1 create mode 100644 contrib/binutils/binutils/objdump.c create mode 100644 contrib/binutils/binutils/prdbg.c create mode 100644 contrib/binutils/binutils/ranlib.1 create mode 100755 contrib/binutils/binutils/ranlib.sh create mode 100644 contrib/binutils/binutils/rdcoff.c create mode 100644 contrib/binutils/binutils/rddbg.c create mode 100755 contrib/binutils/binutils/sanity.sh create mode 100644 contrib/binutils/binutils/size.1 create mode 100644 contrib/binutils/binutils/size.c create mode 100644 contrib/binutils/binutils/srconv.c create mode 100644 contrib/binutils/binutils/stabs.c create mode 100644 contrib/binutils/binutils/strings.1 create mode 100644 contrib/binutils/binutils/strings.c create mode 100644 contrib/binutils/binutils/strip.1 create mode 100644 contrib/binutils/binutils/sysdump.c create mode 100644 contrib/binutils/binutils/sysinfo.y create mode 100644 contrib/binutils/binutils/syslex.l create mode 100644 contrib/binutils/binutils/version.c create mode 100644 contrib/binutils/binutils/wrstabs.c create mode 100644 contrib/binutils/config-ml.in create mode 100755 contrib/binutils/config.guess create mode 100755 contrib/binutils/config.sub create mode 100644 contrib/binutils/config/ChangeLog create mode 100644 contrib/binutils/config/mh-cxux create mode 100644 contrib/binutils/config/mh-necv4 create mode 100644 contrib/binutils/config/mh-papic create mode 100644 contrib/binutils/config/mh-sco create mode 100644 contrib/binutils/config/mh-solaris create mode 100644 contrib/binutils/config/mh-sysv create mode 100644 contrib/binutils/config/mh-sysv4 create mode 100644 contrib/binutils/config/mh-x86pic create mode 100644 contrib/binutils/config/mt-papic create mode 100644 contrib/binutils/config/mt-v810 create mode 100644 contrib/binutils/config/mt-x86pic create mode 100755 contrib/binutils/configure create mode 100644 contrib/binutils/configure.in create mode 100644 contrib/binutils/etc/Makefile.in create mode 100644 contrib/binutils/etc/cfg-paper.texi create mode 100755 contrib/binutils/etc/configure create mode 100644 contrib/binutils/etc/configure.in create mode 100644 contrib/binutils/etc/configure.man create mode 100644 contrib/binutils/etc/configure.texi create mode 100644 contrib/binutils/etc/make-stds.texi create mode 100644 contrib/binutils/etc/standards.texi create mode 100644 contrib/binutils/gas/CONTRIBUTORS create mode 100644 contrib/binutils/gas/ChangeLog create mode 100644 contrib/binutils/gas/Makefile.in create mode 100644 contrib/binutils/gas/NEWS create mode 100644 contrib/binutils/gas/README create mode 100644 contrib/binutils/gas/acconfig.h create mode 100644 contrib/binutils/gas/aclocal.m4 create mode 100644 contrib/binutils/gas/app.c create mode 100644 contrib/binutils/gas/as.c create mode 100644 contrib/binutils/gas/as.h create mode 100644 contrib/binutils/gas/atof-generic.c create mode 100644 contrib/binutils/gas/bignum-copy.c create mode 100644 contrib/binutils/gas/bignum.h create mode 100644 contrib/binutils/gas/bit_fix.h create mode 100644 contrib/binutils/gas/cgen.c create mode 100644 contrib/binutils/gas/cond.c create mode 100644 contrib/binutils/gas/conf.in create mode 100644 contrib/binutils/gas/config/aout_gnu.h create mode 100644 contrib/binutils/gas/config/atof-ieee.c create mode 100644 contrib/binutils/gas/config/e-i386coff.c create mode 100644 contrib/binutils/gas/config/e-i386elf.c create mode 100644 contrib/binutils/gas/config/i386coff.mt create mode 100644 contrib/binutils/gas/config/obj-aout.c create mode 100644 contrib/binutils/gas/config/obj-aout.h create mode 100644 contrib/binutils/gas/config/obj-coff.c create mode 100644 contrib/binutils/gas/config/obj-coff.h create mode 100644 contrib/binutils/gas/config/obj-ecoff.c create mode 100644 contrib/binutils/gas/config/obj-ecoff.h create mode 100644 contrib/binutils/gas/config/obj-elf.c create mode 100644 contrib/binutils/gas/config/obj-elf.h create mode 100644 contrib/binutils/gas/config/obj-generic.c create mode 100644 contrib/binutils/gas/config/obj-generic.h create mode 100644 contrib/binutils/gas/config/obj-ieee.c create mode 100644 contrib/binutils/gas/config/obj-ieee.h create mode 100644 contrib/binutils/gas/config/obj-multi.c create mode 100644 contrib/binutils/gas/config/obj-multi.h create mode 100644 contrib/binutils/gas/config/sco5.mt create mode 100644 contrib/binutils/gas/config/tc-alpha.c create mode 100644 contrib/binutils/gas/config/tc-alpha.h create mode 100644 contrib/binutils/gas/config/tc-generic.c create mode 100644 contrib/binutils/gas/config/tc-generic.h create mode 100644 contrib/binutils/gas/config/tc-i386.c create mode 100644 contrib/binutils/gas/config/tc-i386.h create mode 100644 contrib/binutils/gas/config/tc-m68851.h create mode 100644 contrib/binutils/gas/config/tc-sh.c create mode 100644 contrib/binutils/gas/config/tc-sh.h create mode 100644 contrib/binutils/gas/config/tc-z8k.c create mode 100644 contrib/binutils/gas/config/tc-z8k.h create mode 100644 contrib/binutils/gas/config/te-386bsd.h create mode 100644 contrib/binutils/gas/config/te-aux.h create mode 100644 contrib/binutils/gas/config/te-generic.h create mode 100644 contrib/binutils/gas/config/te-linux.h create mode 100644 contrib/binutils/gas/config/te-multi.h create mode 100644 contrib/binutils/gas/config/te-nbsd.h create mode 100644 contrib/binutils/gas/config/te-pe.h create mode 100644 contrib/binutils/gas/config/te-svr4.h create mode 100644 contrib/binutils/gas/config/te-sysv32.h create mode 100755 contrib/binutils/gas/configure create mode 100644 contrib/binutils/gas/configure.in create mode 100644 contrib/binutils/gas/debug.c create mode 100644 contrib/binutils/gas/dep-in.sed create mode 100644 contrib/binutils/gas/doc/Makefile.in create mode 100644 contrib/binutils/gas/doc/all.texi create mode 100644 contrib/binutils/gas/doc/as.1 create mode 100644 contrib/binutils/gas/doc/as.texinfo create mode 100644 contrib/binutils/gas/doc/c-i386.texi create mode 100644 contrib/binutils/gas/doc/c-sh.texi create mode 100644 contrib/binutils/gas/doc/c-z8k.texi create mode 100644 contrib/binutils/gas/doc/gasp.texi create mode 100644 contrib/binutils/gas/doc/h8.texi create mode 100644 contrib/binutils/gas/doc/internals.texi create mode 100644 contrib/binutils/gas/ecoff.c create mode 100644 contrib/binutils/gas/ecoff.h create mode 100644 contrib/binutils/gas/emul-target.h create mode 100644 contrib/binutils/gas/emul.h create mode 100644 contrib/binutils/gas/expr.c create mode 100644 contrib/binutils/gas/expr.h create mode 100644 contrib/binutils/gas/flonum-copy.c create mode 100644 contrib/binutils/gas/flonum-konst.c create mode 100644 contrib/binutils/gas/flonum-mult.c create mode 100644 contrib/binutils/gas/flonum.h create mode 100644 contrib/binutils/gas/frags.c create mode 100644 contrib/binutils/gas/frags.h create mode 100644 contrib/binutils/gas/gasp.c create mode 100644 contrib/binutils/gas/gdbinit.in create mode 100644 contrib/binutils/gas/hash.c create mode 100644 contrib/binutils/gas/hash.h create mode 100644 contrib/binutils/gas/input-file.c create mode 100644 contrib/binutils/gas/input-file.h create mode 100644 contrib/binutils/gas/input-scrub.c create mode 100644 contrib/binutils/gas/itbl-lex.l create mode 100644 contrib/binutils/gas/itbl-ops.c create mode 100644 contrib/binutils/gas/itbl-ops.h create mode 100644 contrib/binutils/gas/itbl-parse.y create mode 100644 contrib/binutils/gas/link.cmd create mode 100644 contrib/binutils/gas/listing.c create mode 100644 contrib/binutils/gas/listing.h create mode 100644 contrib/binutils/gas/literal.c create mode 100644 contrib/binutils/gas/macro.c create mode 100644 contrib/binutils/gas/macro.h create mode 100644 contrib/binutils/gas/messages.c create mode 100644 contrib/binutils/gas/obj.h create mode 100644 contrib/binutils/gas/output-file.c create mode 100644 contrib/binutils/gas/output-file.h create mode 100644 contrib/binutils/gas/read.c create mode 100644 contrib/binutils/gas/read.h create mode 100644 contrib/binutils/gas/sb.c create mode 100644 contrib/binutils/gas/sb.h create mode 100644 contrib/binutils/gas/stabs.c create mode 100644 contrib/binutils/gas/struc-symbol.h create mode 100644 contrib/binutils/gas/subsegs.c create mode 100644 contrib/binutils/gas/subsegs.h create mode 100644 contrib/binutils/gas/symbols.c create mode 100644 contrib/binutils/gas/symbols.h create mode 100644 contrib/binutils/gas/tc.h create mode 100644 contrib/binutils/gas/write.c create mode 100644 contrib/binutils/gas/write.h create mode 100644 contrib/binutils/include/ChangeLog create mode 100644 contrib/binutils/include/ansidecl.h create mode 100644 contrib/binutils/include/aout/ChangeLog create mode 100644 contrib/binutils/include/aout/aout64.h create mode 100644 contrib/binutils/include/aout/ar.h create mode 100644 contrib/binutils/include/aout/encap.h create mode 100644 contrib/binutils/include/aout/host.h create mode 100644 contrib/binutils/include/aout/ranlib.h create mode 100644 contrib/binutils/include/aout/reloc.h create mode 100644 contrib/binutils/include/aout/stab.def create mode 100644 contrib/binutils/include/aout/stab_gnu.h create mode 100644 contrib/binutils/include/bfdlink.h create mode 100644 contrib/binutils/include/callback.h create mode 100644 contrib/binutils/include/coff/ChangeLog create mode 100644 contrib/binutils/include/coff/alpha.h create mode 100644 contrib/binutils/include/coff/aux-coff.h create mode 100644 contrib/binutils/include/coff/ecoff.h create mode 100644 contrib/binutils/include/coff/i386.h create mode 100644 contrib/binutils/include/coff/internal.h create mode 100644 contrib/binutils/include/coff/pe.h create mode 100644 contrib/binutils/include/coff/sh.h create mode 100644 contrib/binutils/include/coff/sym.h create mode 100644 contrib/binutils/include/coff/symconst.h create mode 100644 contrib/binutils/include/coff/z8k.h create mode 100644 contrib/binutils/include/demangle.h create mode 100644 contrib/binutils/include/dis-asm.h create mode 100644 contrib/binutils/include/elf/ChangeLog create mode 100644 contrib/binutils/include/elf/alpha.h create mode 100644 contrib/binutils/include/elf/common.h create mode 100644 contrib/binutils/include/elf/dwarf.h create mode 100644 contrib/binutils/include/elf/dwarf2.h create mode 100644 contrib/binutils/include/elf/external.h create mode 100644 contrib/binutils/include/elf/internal.h create mode 100644 contrib/binutils/include/floatformat.h create mode 100644 contrib/binutils/include/fnmatch.h create mode 100644 contrib/binutils/include/fopen-bin.h create mode 100644 contrib/binutils/include/fopen-same.h create mode 100644 contrib/binutils/include/gdbm.h create mode 100644 contrib/binutils/include/getopt.h create mode 100644 contrib/binutils/include/ieee.h create mode 100644 contrib/binutils/include/libiberty.h create mode 100644 contrib/binutils/include/objalloc.h create mode 100644 contrib/binutils/include/obstack.h create mode 100644 contrib/binutils/include/opcode/ChangeLog create mode 100644 contrib/binutils/include/opcode/alpha.h create mode 100644 contrib/binutils/include/opcode/cgen.h create mode 100644 contrib/binutils/include/opcode/convex.h create mode 100644 contrib/binutils/include/opcode/i386.h create mode 100644 contrib/binutils/include/opcode/np1.h create mode 100644 contrib/binutils/include/opcode/pn.h create mode 100644 contrib/binutils/include/progress.h create mode 100644 contrib/binutils/include/remote-sim.h create mode 100644 contrib/binutils/include/wait.h create mode 100755 contrib/binutils/install.sh create mode 100644 contrib/binutils/ld/ChangeLog create mode 100644 contrib/binutils/ld/Makefile.in create mode 100644 contrib/binutils/ld/NEWS create mode 100644 contrib/binutils/ld/README create mode 100644 contrib/binutils/ld/TODO create mode 100644 contrib/binutils/ld/acconfig.h create mode 100644 contrib/binutils/ld/aclocal.m4 create mode 100644 contrib/binutils/ld/config.in create mode 100644 contrib/binutils/ld/configdoc.texi create mode 100755 contrib/binutils/ld/configure create mode 100644 contrib/binutils/ld/configure.host create mode 100644 contrib/binutils/ld/configure.in create mode 100644 contrib/binutils/ld/configure.tgt create mode 100644 contrib/binutils/ld/dep-in.sed create mode 100644 contrib/binutils/ld/emulparams/README create mode 100644 contrib/binutils/ld/emulparams/alpha.sh create mode 100644 contrib/binutils/ld/emulparams/elf32b4300.sh create mode 100644 contrib/binutils/ld/emulparams/elf32l4300.sh create mode 100644 contrib/binutils/ld/emulparams/elf64alpha.sh create mode 100644 contrib/binutils/ld/emulparams/elf_i386.sh create mode 100644 contrib/binutils/ld/emulparams/i386aout.sh create mode 100644 contrib/binutils/ld/emulparams/i386bsd.sh create mode 100644 contrib/binutils/ld/emulparams/i386coff.sh create mode 100644 contrib/binutils/ld/emulparams/i386linux.sh create mode 100644 contrib/binutils/ld/emulparams/i386moss.sh create mode 100644 contrib/binutils/ld/emulparams/i386nbsd.sh create mode 100644 contrib/binutils/ld/emulparams/i386nw.sh create mode 100644 contrib/binutils/ld/emulparams/i386pe.sh create mode 100644 contrib/binutils/ld/emulparams/sh.sh create mode 100755 contrib/binutils/ld/emulparams/shelf.sh create mode 100644 contrib/binutils/ld/emulparams/shl.sh create mode 100755 contrib/binutils/ld/emulparams/shlelf.sh create mode 100644 contrib/binutils/ld/emulparams/vanilla.sh create mode 100644 contrib/binutils/ld/emulparams/vsta.sh create mode 100644 contrib/binutils/ld/emulparams/z8001.sh create mode 100644 contrib/binutils/ld/emulparams/z8002.sh create mode 100644 contrib/binutils/ld/emultempl/README create mode 100644 contrib/binutils/ld/emultempl/elf32.em create mode 100644 contrib/binutils/ld/emultempl/generic.em create mode 100644 contrib/binutils/ld/emultempl/linux.em create mode 100644 contrib/binutils/ld/emultempl/pe.em create mode 100644 contrib/binutils/ld/emultempl/stringify.sed create mode 100644 contrib/binutils/ld/emultempl/vanilla.em create mode 100644 contrib/binutils/ld/gen-doc.texi create mode 100755 contrib/binutils/ld/genscripts.sh create mode 100644 contrib/binutils/ld/h8-doc.texi create mode 100644 contrib/binutils/ld/ld.1 create mode 100644 contrib/binutils/ld/ld.h create mode 100644 contrib/binutils/ld/ld.texinfo create mode 100644 contrib/binutils/ld/ldcref.c create mode 100644 contrib/binutils/ld/ldctor.c create mode 100644 contrib/binutils/ld/ldctor.h create mode 100644 contrib/binutils/ld/ldemul.c create mode 100644 contrib/binutils/ld/ldemul.h create mode 100644 contrib/binutils/ld/ldexp.c create mode 100644 contrib/binutils/ld/ldexp.h create mode 100644 contrib/binutils/ld/ldfile.c create mode 100644 contrib/binutils/ld/ldfile.h create mode 100644 contrib/binutils/ld/ldgram.y create mode 100644 contrib/binutils/ld/ldint.texinfo create mode 100644 contrib/binutils/ld/ldlang.c create mode 100644 contrib/binutils/ld/ldlang.h create mode 100644 contrib/binutils/ld/ldlex.h create mode 100644 contrib/binutils/ld/ldlex.l create mode 100644 contrib/binutils/ld/ldmain.c create mode 100644 contrib/binutils/ld/ldmain.h create mode 100644 contrib/binutils/ld/ldmisc.c create mode 100644 contrib/binutils/ld/ldmisc.h create mode 100644 contrib/binutils/ld/ldver.c create mode 100644 contrib/binutils/ld/ldver.h create mode 100644 contrib/binutils/ld/ldwrite.c create mode 100644 contrib/binutils/ld/ldwrite.h create mode 100644 contrib/binutils/ld/lexsup.c create mode 100644 contrib/binutils/ld/mri.c create mode 100644 contrib/binutils/ld/mri.h create mode 100644 contrib/binutils/ld/scripttempl/README create mode 100644 contrib/binutils/ld/scripttempl/alpha.sc create mode 100644 contrib/binutils/ld/scripttempl/aout.sc create mode 100644 contrib/binutils/ld/scripttempl/elf.sc create mode 100644 contrib/binutils/ld/scripttempl/i386coff.sc create mode 100644 contrib/binutils/ld/scripttempl/nw.sc create mode 100644 contrib/binutils/ld/scripttempl/pe.sc create mode 100644 contrib/binutils/ld/scripttempl/sh.sc create mode 100644 contrib/binutils/ld/scripttempl/vanilla.sc create mode 100644 contrib/binutils/ld/scripttempl/z8000.sc create mode 100644 contrib/binutils/ld/sysdep.h create mode 100644 contrib/binutils/libiberty/ChangeLog create mode 100644 contrib/binutils/libiberty/Makefile.in create mode 100644 contrib/binutils/libiberty/README create mode 100644 contrib/binutils/libiberty/alloca-botch.h create mode 100644 contrib/binutils/libiberty/alloca-norm.h create mode 100644 contrib/binutils/libiberty/alloca.c create mode 100644 contrib/binutils/libiberty/argv.c create mode 100644 contrib/binutils/libiberty/atexit.c create mode 100644 contrib/binutils/libiberty/basename.c create mode 100644 contrib/binutils/libiberty/bcmp.c create mode 100644 contrib/binutils/libiberty/bcopy.c create mode 100644 contrib/binutils/libiberty/bzero.c create mode 100644 contrib/binutils/libiberty/choose-temp.c create mode 100644 contrib/binutils/libiberty/clock.c create mode 100644 contrib/binutils/libiberty/concat.c create mode 100644 contrib/binutils/libiberty/config.table create mode 100644 contrib/binutils/libiberty/config/mh-cxux7 create mode 100644 contrib/binutils/libiberty/config/mh-sysv create mode 100644 contrib/binutils/libiberty/config/mh-sysv4 create mode 100644 contrib/binutils/libiberty/configure.in create mode 100644 contrib/binutils/libiberty/copysign.c create mode 100644 contrib/binutils/libiberty/cplus-dem.c create mode 100644 contrib/binutils/libiberty/dummy.c create mode 100644 contrib/binutils/libiberty/fdmatch.c create mode 100644 contrib/binutils/libiberty/floatformat.c create mode 100644 contrib/binutils/libiberty/fnmatch.c create mode 100644 contrib/binutils/libiberty/functions.def create mode 100644 contrib/binutils/libiberty/getcwd.c create mode 100644 contrib/binutils/libiberty/getopt.c create mode 100644 contrib/binutils/libiberty/getopt1.c create mode 100644 contrib/binutils/libiberty/getpagesize.c create mode 100644 contrib/binutils/libiberty/getruntime.c create mode 100644 contrib/binutils/libiberty/hex.c create mode 100644 contrib/binutils/libiberty/index.c create mode 100644 contrib/binutils/libiberty/insque.c create mode 100644 contrib/binutils/libiberty/memchr.c create mode 100644 contrib/binutils/libiberty/memcmp.c create mode 100644 contrib/binutils/libiberty/memcpy.c create mode 100644 contrib/binutils/libiberty/memmove.c create mode 100644 contrib/binutils/libiberty/memset.c create mode 100644 contrib/binutils/libiberty/objalloc.c create mode 100644 contrib/binutils/libiberty/obstack.c create mode 100644 contrib/binutils/libiberty/pexecute.c create mode 100644 contrib/binutils/libiberty/random.c create mode 100644 contrib/binutils/libiberty/rename.c create mode 100644 contrib/binutils/libiberty/rindex.c create mode 100644 contrib/binutils/libiberty/sigsetmask.c create mode 100644 contrib/binutils/libiberty/spaces.c create mode 100644 contrib/binutils/libiberty/strcasecmp.c create mode 100644 contrib/binutils/libiberty/strchr.c create mode 100644 contrib/binutils/libiberty/strdup.c create mode 100644 contrib/binutils/libiberty/strerror.c create mode 100644 contrib/binutils/libiberty/strncasecmp.c create mode 100644 contrib/binutils/libiberty/strrchr.c create mode 100644 contrib/binutils/libiberty/strsignal.c create mode 100644 contrib/binutils/libiberty/strstr.c create mode 100644 contrib/binutils/libiberty/strtod.c create mode 100644 contrib/binutils/libiberty/strtol.c create mode 100644 contrib/binutils/libiberty/strtoul.c create mode 100644 contrib/binutils/libiberty/tmpnam.c create mode 100644 contrib/binutils/libiberty/vasprintf.c create mode 100644 contrib/binutils/libiberty/vfork.c create mode 100644 contrib/binutils/libiberty/vfprintf.c create mode 100644 contrib/binutils/libiberty/vprintf.c create mode 100644 contrib/binutils/libiberty/vsprintf.c create mode 100644 contrib/binutils/libiberty/waitpid.c create mode 100644 contrib/binutils/libiberty/xatexit.c create mode 100644 contrib/binutils/libiberty/xexit.c create mode 100644 contrib/binutils/libiberty/xmalloc.c create mode 100644 contrib/binutils/libiberty/xstrdup.c create mode 100644 contrib/binutils/libiberty/xstrerror.c create mode 100755 contrib/binutils/move-if-change create mode 100644 contrib/binutils/opcodes/ChangeLog create mode 100644 contrib/binutils/opcodes/Makefile.in create mode 100644 contrib/binutils/opcodes/aclocal.m4 create mode 100644 contrib/binutils/opcodes/alpha-dis.c create mode 100644 contrib/binutils/opcodes/alpha-opc.c create mode 100644 contrib/binutils/opcodes/cgen-asm.c create mode 100644 contrib/binutils/opcodes/cgen-dis.c create mode 100644 contrib/binutils/opcodes/cgen-opc.c create mode 100644 contrib/binutils/opcodes/config.in create mode 100755 contrib/binutils/opcodes/configure create mode 100644 contrib/binutils/opcodes/configure.in create mode 100644 contrib/binutils/opcodes/dep-in.sed create mode 100644 contrib/binutils/opcodes/dis-buf.c create mode 100644 contrib/binutils/opcodes/disassemble.c create mode 100644 contrib/binutils/opcodes/i386-dis.c create mode 100644 contrib/binutils/opcodes/sh-dis.c create mode 100644 contrib/binutils/opcodes/sh-opc.h create mode 100644 contrib/binutils/opcodes/sysdep.h create mode 100644 contrib/binutils/opcodes/z8k-dis.c create mode 100644 contrib/binutils/opcodes/z8k-opc.h create mode 100644 contrib/binutils/opcodes/z8kgen.c create mode 100755 contrib/binutils/symlink-tree diff --git a/contrib/binutils/Makefile.in b/contrib/binutils/Makefile.in new file mode 100644 index 00000000000..6b361876ed9 --- /dev/null +++ b/contrib/binutils/Makefile.in @@ -0,0 +1,1564 @@ +# +# Makefile for directory with subdirs to build. +# Copyright (C) 1990, 91, 92, 93, 94, 95, 96, 1997 Free Software Foundation +# +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# + +srcdir = . + +prefix = /usr/local + +exec_prefix = $(prefix) +bindir = $(exec_prefix)/bin +libdir = $(exec_prefix)/lib +tooldir = $(exec_prefix)/$(target) + +program_transform_name = + +datadir = $(prefix)/share +mandir = $(prefix)/man +man1dir = $(mandir)/man1 +man2dir = $(mandir)/man2 +man3dir = $(mandir)/man3 +man4dir = $(mandir)/man4 +man5dir = $(mandir)/man5 +man6dir = $(mandir)/man6 +man7dir = $(mandir)/man7 +man8dir = $(mandir)/man8 +man9dir = $(mandir)/man9 +infodir = $(prefix)/info +includedir = $(prefix)/include +GDB_NLM_DEPS = + +SHELL = /bin/sh + +INSTALL = $$s/install.sh -c +INSTALL_PROGRAM = $(INSTALL) +INSTALL_DATA = $(INSTALL) -m 644 +INSTALL_XFORM = $(INSTALL) -t='$(program_transform_name)' + +INSTALL_DOSREL = install-dosrel-fake + +AS = as +AR = ar +AR_FLAGS = rc +CC = cc + +# Special variables passed down in EXTRA_GCC_FLAGS. They are defined +# here so that they can be overridden by Makefile fragments. +HOST_CC = $(CC_FOR_BUILD) +HOST_PREFIX = +HOST_PREFIX_1 = loser- + +# We don't specify -g -O because many compilers don't support -g -O, +# and/or -O is broken in and of itself. +CFLAGS = -g +LIBCFLAGS = $(CFLAGS) +CFLAGS_FOR_TARGET = $(CFLAGS) +LDFLAGS_FOR_TARGET = +LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET) +PICFLAG = +PICFLAG_FOR_TARGET = + +CXX = gcc + +# Use -O2 to stress test the compiler. +CXXFLAGS = -g -O2 +LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates +CXXFLAGS_FOR_TARGET = $(CXXFLAGS) +LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates + +RANLIB = ranlib + +DLLTOOL = dlltool + +NM = nm +# Not plain GZIP, since gzip looks there for extra command-line options. +GZIPPROG = gzip + +# These values are substituted by configure. +DEFAULT_YACC = yacc +DEFAULT_LEX = lex + +BISON = bison -y +LEX = `if [ -f $$r/flex/flex ] ; \ + then echo $$r/flex/flex ; \ + else echo ${DEFAULT_LEX} ; fi` + +M4 = `if [ -f $$r/m4/m4 ] ; \ + then echo $$r/m4/m4 ; \ + else echo m4 ; fi` + +MAKEINFO = `if [ -f $$r/texinfo/makeinfo/Makefile ] ; \ + then echo $$r/texinfo/makeinfo/makeinfo ; \ + else echo makeinfo ; fi` + +# This just becomes part of the MAKEINFO definition passed down to +# sub-makes. It lets flags be given on the command line while still +# using the makeinfo from the object tree. +MAKEINFOFLAGS = + +EXPECT = `if [ -f $$r/expect/expect ] ; \ + then echo $$r/expect/expect ; \ + else echo expect ; fi` + +RUNTEST = `if [ -f $$s/dejagnu/runtest ] ; \ + then echo $$s/dejagnu/runtest ; \ + else echo runtest ; fi` + + +# compilers to use to create programs which must be run in the build +# environment. +CC_FOR_BUILD = $(CC) +CXX_FOR_BUILD = $(CXX) + +SUBDIRS = "this is set via configure, don't edit this" +OTHERS = + +# This is set by the configure script to the list of directories which +# should be built using the target tools. +TARGET_CONFIGDIRS = libiberty libgloss newlib libio librx libstdc++ libg++ winsup + +# Target libraries are put under this directory: +# Changed by configure to $(target_alias) if cross. +TARGET_SUBDIR = . + +# This is set by the configure script to the arguments passed to configure. +CONFIG_ARGUMENTS = + +# This is set by configure to REALLY_SET_LIB_PATH if --enable-shared +# was used. +SET_LIB_PATH = + +# This is the name of the environment variable used for the path to +# the libraries. This may be changed by configure.in. +RPATH_ENVVAR = LD_LIBRARY_PATH + +# configure.in sets SET_LIB_PATH to this if --enable-shared was used. +REALLY_SET_LIB_PATH = \ + $(RPATH_ENVVAR)=$$r/bfd:$$r/opcodes:$$$(RPATH_ENVVAR); \ + export $(RPATH_ENVVAR); + +ALL = all.normal +INSTALL_TARGET = install-dirs \ + $(INSTALL_MODULES) \ + $(INSTALL_TARGET_MODULES) \ + $(INSTALL_X11_MODULES) \ + install-gcc \ + $(INSTALL_DOSREL) + + +CC_FOR_TARGET = ` \ + if [ -f $$r/gcc/xgcc ] ; then \ + if [ -f $$r/$(TARGET_SUBDIR)/newlib/Makefile ] ; then \ + if [ -f $$r/$(TARGET_SUBDIR)/winsup/Makefile ] ; then \ + echo $$r/gcc/xgcc -B$$r/gcc/ -B$$r/newlib/ -L$$r/winsup -idirafter $$r/$(TARGET_SUBDIR)/newlib/targ-include -idirafter $$s/newlib/libc/include -nostdinc; \ + else \ + echo $$r/gcc/xgcc -B$$r/gcc/ -idirafter $$r/$(TARGET_SUBDIR)/newlib/targ-include -idirafter $$s/newlib/libc/include -nostdinc; \ + fi; \ + else \ + echo $$r/gcc/xgcc -B$$r/gcc/; \ + fi; \ + else \ + if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ + echo $(CC); \ + else \ + t='$(program_transform_name)'; echo gcc | sed -e 's/x/x/' $$t; \ + fi; \ + fi` + +# If CC_FOR_TARGET is not overriden on the command line, then this +# variable is passed down to the gcc Makefile, where it is used to +# build libgcc2.a. We define it here so that it can itself be +# overridden on the command line. +GCC_FOR_TARGET = $$r/gcc/xgcc -B$$r/gcc/ + + +CXX_FOR_TARGET = ` \ + if [ -f $$r/gcc/xgcc ] ; then \ + if [ -f $$r/$(TARGET_SUBDIR)/newlib/Makefile ] ; then \ + if [ -f $$r/$(TARGET_SUBDIR)/winsup/Makefile ] ; then \ + echo $$r/gcc/xgcc -B$$r/gcc/ -B$$r/newlib/ -L$$r/winsup -idirafter $$r/$(TARGET_SUBDIR)/newlib/targ-include -idirafter $$s/newlib/libc/include -nostdinc; \ + else \ + echo $$r/gcc/xgcc -B$$r/gcc/ -idirafter $$r/$(TARGET_SUBDIR)/newlib/targ-include -idirafter $$s/newlib/libc/include -nostdinc; \ + fi; \ + else \ + echo $$r/gcc/xgcc -B$$r/gcc/; \ + fi; \ + else \ + if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ + echo $(CXX); \ + else \ + t='$(program_transform_name)'; echo gcc | sed -e 's/x/x/' $$t; \ + fi; \ + fi` + +AS_FOR_TARGET = ` \ + if [ -f $$r/gas/as.new ] ; then \ + echo $$r/gas/as.new ; \ + else \ + if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ + echo $(AS); \ + else \ + t='$(program_transform_name)'; echo as | sed -e 's/x/x/' $$t ; \ + fi; \ + fi` + +LD_FOR_TARGET = ` \ + if [ -f $$r/ld/ld.new ] ; then \ + echo $$r/ld/ld.new ; \ + else \ + if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ + echo $(LD); \ + else \ + t='$(program_transform_name)'; echo ld | sed -e 's/x/x/' $$t ; \ + fi; \ + fi` + +DLLTOOL_FOR_TARGET = ` \ + if [ -f $$r/binutils/dlltool ] ; then \ + echo $$r/binutils/dlltool ; \ + else \ + if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ + echo $(DLLTOOL); \ + else \ + t='$(program_transform_name)'; echo dlltool | sed -e 's/x/x/' $$t ; \ + fi; \ + fi` + +AR_FOR_TARGET = ` \ + if [ -f $$r/binutils/ar ] ; then \ + echo $$r/binutils/ar ; \ + else \ + if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ + echo $(AR); \ + else \ + t='$(program_transform_name)'; echo ar | sed -e 's/x/x/' $$t ; \ + fi; \ + fi` + +RANLIB_FOR_TARGET = ` \ + if [ -f $$r/binutils/ranlib ] ; then \ + echo $$r/binutils/ranlib ; \ + else \ + if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ + echo $(RANLIB); \ + else \ + t='$(program_transform_name)'; echo ranlib | sed -e 's/x/x/' $$t ; \ + fi; \ + fi` + +NM_FOR_TARGET = ` \ + if [ -f $$r/binutils/nm.new ] ; then \ + echo $$r/binutils/nm.new ; \ + else \ + if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ + echo $(NM); \ + else \ + t='$(program_transform_name)'; echo nm | sed -e 's/x/x/' $$t ; \ + fi; \ + fi` + +#### host and target specific makefile fragments come in here. +### + +# Flags to pass down to all sub-makes. +# Please keep these in alphabetical order. +BASE_FLAGS_TO_PASS = \ + "AR_FLAGS=$(AR_FLAGS)" \ + "AR_FOR_TARGET=$(AR_FOR_TARGET)" \ + "AS_FOR_TARGET=$(AS_FOR_TARGET)" \ + "BISON=$(BISON)" \ + "CC_FOR_BUILD=$(CC_FOR_BUILD)" \ + "CC_FOR_TARGET=$(CC_FOR_TARGET)" \ + "CFLAGS=$(CFLAGS)" \ + "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \ + "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \ + "CXXFLAGS=$(CXXFLAGS)" \ + "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \ + "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \ + "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \ + "INSTALL=$(INSTALL)" \ + "INSTALL_DATA=$(INSTALL_DATA)" \ + "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \ + "INSTALL_XFORM=$(INSTALL_XFORM)" \ + "LDFLAGS=$(LDFLAGS)" \ + "LEX=$(LEX)" \ + "LD_FOR_TARGET=$(LD_FOR_TARGET)" \ + "LIBCFLAGS=$(LIBCFLAGS)" \ + "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \ + "LIBCXXFLAGS=$(LIBCXXFLAGS)" \ + "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \ + "M4=$(M4)" \ + "MAKE=$(MAKE)" \ + "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \ + "NM_FOR_TARGET=$(NM_FOR_TARGET)" \ + "PICFLAG=$(PICFLAG)" \ + "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \ + "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \ + "SHELL=$(SHELL)" \ + "EXPECT=$(EXPECT)" \ + "RUNTEST=$(RUNTEST)" \ + "RUNTESTFLAGS=$(RUNTESTFLAGS)" \ + "YACC=$(BISON)" \ + "exec_prefix=$(exec_prefix)" \ + "prefix=$(prefix)" \ + "tooldir=$(tooldir)" + +# Flags to pass down to most sub-makes, in which we're building with +# the host environment. +# If any variables are added here, they must be added to do-*, below. +EXTRA_HOST_FLAGS = \ + 'AR=$(AR)' \ + 'AS=$(AS)' \ + 'CC=$(CC)' \ + 'CXX=$(CXX)' \ + 'DLLTOOL=$(DLLTOOL)' \ + 'NM=$(NM)' \ + 'RANLIB=$(RANLIB)' + + +FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) + +# Flags that are concerned with the location of the X11 include files +# and library files +# +# NOTE: until the top-level is getting the values via autoconf, it only +# causes problems to have this top-level Makefile overriding the autoconf-set +# values in child directories. Only variables that don't conflict with +# autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now. +# +X11_FLAGS_TO_PASS = \ + 'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \ + 'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)' + +# Flags to pass down to makes which are built with the target environment. +# The double $ decreases the length of the command line; the variables +# are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them. +# If any variables are added here, they must be added to do-*, below. +EXTRA_TARGET_FLAGS = \ + 'AR=$$(AR_FOR_TARGET)' \ + 'AS=$$(AS_FOR_TARGET)' \ + 'CC=$$(CC_FOR_TARGET)' \ + 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \ + 'CXX=$$(CXX_FOR_TARGET)' \ + 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \ + 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \ + 'LD=$$(LD_FOR_TARGET)' \ + 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \ + 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \ + 'NM=$$(NM_FOR_TARGET)' \ + 'PICFLAG=$$(PICFLAG_FOR_TARGET)' \ + 'RANLIB=$$(RANLIB_FOR_TARGET)' + +TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) + +# Flags to pass down to gcc. gcc builds a library, libgcc.a, so it +# unfortunately needs the native compiler and the target ar and +# ranlib. +# If any variables are added here, they must be added to do-*, below. +# The HOST_* variables are a special case, which are used for the gcc +# cross-building scheme. +EXTRA_GCC_FLAGS = \ + 'AR=$$(AR_FOR_TARGET)' \ + 'AS=$(AS)' \ + 'CC=$(CC)' \ + 'CXX=$(CXX)' \ + 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \ + 'HOST_CC=$(CC_FOR_BUILD)' \ + 'HOST_PREFIX=$(HOST_PREFIX)' \ + 'HOST_PREFIX_1=$(HOST_PREFIX_1)' \ + 'NM=$(NM)' \ + 'RANLIB=$$(RANLIB_FOR_TARGET)' \ + "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \ + `if test x"$(LANGUAGES)" != x; then echo "LANGUAGES=$(LANGUAGES)"; fi` \ + `if test x"$(STMP_FIXPROTO)" != x; then echo "STMP_FIXPROTO=$(STMP_FIXPROTO)"; fi` \ + `if test x"$(LIMITS_H_TEST)" != x; then echo "LIMITS_H_TEST=$(LIMITS_H_TEST)"; fi` \ + `if test x"$(LIBGCC1_TEST)" != x; then echo "LIBGCC1_TEST=$(LIBGCC1_TEST)"; fi` \ + `if test x"$(LIBGCC2_CFLAGS)" != x; then echo "LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)"; fi` \ + `if test x"$(LIBGCC2_DEBUG_CFLAGS)" != x; then echo "LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)"; fi` \ + `if test x"$(LIBGCC2_INCLUDES)" != x; then echo "LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)"; fi` \ + `if test x"$(ENQUIRE)" != x; then echo "ENQUIRE=$(ENQUIRE)"; fi` \ + `if test x"$(BOOT_CFLAGS)" != x; then echo "BOOT_CFLAGS=$(BOOT_CFLAGS)"; fi` + +GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) + +# This is a list of the targets for all of the modules which are compiled +# using $(FLAGS_TO_PASS). +ALL_MODULES = \ + all-apache \ + all-autoconf \ + all-bash \ + all-bfd \ + all-binutils \ + all-byacc \ + all-cvs \ + all-db \ + all-dejagnu \ + all-diff \ + all-dosutils \ + all-etc \ + all-fileutils \ + all-findutils \ + all-find \ + all-flex \ + all-gas \ + all-gawk \ + all-gprof \ + all-grep \ + all-grez \ + all-gzip \ + all-hello \ + all-indent \ + all-inet \ + all-ispell \ + all-itcl \ + all-ld \ + all-libiberty \ + all-m4 \ + all-make \ + all-mmalloc \ + all-opcodes \ + all-patch \ + all-perl \ + all-prms \ + all-rcs \ + all-readline \ + all-release \ + all-recode \ + all-sed \ + all-send-pr \ + all-shellutils \ + all-sim \ + all-sn \ + all-tar \ + all-tcl \ + all-texinfo \ + all-textutils \ + all-tgas \ + all-time \ + all-uudecode \ + all-wdiff + +# This is a list of the check targets for all of the modules which are +# compiled using $(FLAGS_TO_PASS). +# +# The list is in two parts. The first lists those tools which +# are tested as part of the host's native tool-chain, and not +# tested in a cross configuration. +NATIVE_CHECK_MODULES = \ + check-byacc \ + check-flex + +CROSS_CHECK_MODULES = \ + check-apache \ + check-autoconf \ + check-bash \ + check-bfd \ + check-binutils \ + check-cvs \ + check-db \ + check-dejagnu \ + check-diff \ + check-etc \ + check-fileutils \ + check-findutils \ + check-find \ + check-gas \ + check-gawk \ + check-gprof \ + check-grep \ + check-gzip \ + check-hello \ + check-indent \ + check-inet \ + check-ispell \ + check-itcl \ + check-ld \ + check-libiberty \ + check-m4 \ + check-make \ + check-mmcheckoc \ + check-opcodes \ + check-patch \ + check-perl \ + check-prms \ + check-rcs \ + check-readline \ + check-recode \ + check-sed \ + check-send-pr \ + check-shellutils \ + check-sn \ + check-sim \ + check-tar \ + check-tcl \ + check-texinfo \ + check-textutils \ + check-tgas \ + check-time \ + check-uudecode \ + check-wdiff + +CHECK_MODULES=$(NATIVE_CHECK_MODULES) $(CROSS_CHECK_MODULES) + +# This is a list of the install targets for all of the modules which are +# compiled using $(FLAGS_TO_PASS). +# We put install-opcodes before install-binutils because the installed +# binutils might be on PATH, and they might need the shared opcodes +# library. +INSTALL_MODULES = \ + install-apache \ + install-autoconf \ + install-bash \ + install-bfd \ + install-opcodes \ + install-binutils \ + install-byacc \ + install-cvs \ + install-db \ + install-dejagnu \ + install-diff \ + install-dosutils \ + install-etc \ + install-fileutils \ + install-findutils \ + install-find \ + install-flex \ + install-gas \ + install-gawk \ + install-gprof \ + install-grep \ + install-grez \ + install-gzip \ + install-hello \ + install-indent \ + install-inet \ + install-ispell \ + install-itcl \ + install-ld \ + install-libiberty \ + install-m4 \ + install-make \ + install-mmalloc \ + install-patch \ + install-perl \ + install-prms \ + install-rcs \ + install-readline \ + install-recode \ + install-sed \ + install-send-pr \ + install-shellutils \ + install-sim \ + install-sn \ + install-tar \ + install-tcl \ + install-textutils \ + install-tgas \ + install-time \ + install-uudecode \ + install-wdiff + +# This is a list of the targets for all of the modules which are compiled +# using $(X11_FLAGS_TO_PASS). +ALL_X11_MODULES = \ + all-emacs \ + all-emacs19 \ + all-gdb \ + all-expect \ + all-gash \ + all-guile \ + all-tclX \ + all-tk + +# This is a list of the check targets for all of the modules which are +# compiled using $(X11_FLAGS_TO_PASS). +CHECK_X11_MODULES = \ + check-emacs \ + check-gdb \ + check-guile \ + check-expect \ + check-gash \ + check-tclX + +# This is a list of the install targets for all the modules which are +# compiled using $(X11_FLAGS_TO_PASS). +INSTALL_X11_MODULES = \ + install-emacs \ + install-emacs19 \ + install-gdb \ + install-guile \ + install-expect \ + install-gash \ + install-tclX \ + install-tk + +# This is a list of the targets for all of the modules which are compiled +# using $(TARGET_FLAGS_TO_PASS). +ALL_TARGET_MODULES = \ + all-target-libio \ + all-target-libstdc++ \ + all-target-librx \ + all-target-libg++ \ + all-target-newlib \ + all-target-winsup \ + all-target-libgloss \ + all-target-libiberty \ + all-target-examples + +# This is a list of the configure targets for all of the modules which +# are compiled using the target tools. +CONFIGURE_TARGET_MODULES = \ + configure-target-libio \ + configure-target-libstdc++ \ + configure-target-librx \ + configure-target-libg++ \ + configure-target-newlib \ + configure-target-winsup \ + configure-target-libgloss \ + configure-target-libiberty \ + configure-target-examples + +# This is a list of the check targets for all of the modules which are +# compiled using $(TARGET_FLAGS_TO_PASS). +CHECK_TARGET_MODULES = \ + check-target-libio \ + check-target-libstdc++ \ + check-target-libg++ \ + check-target-newlib \ + check-target-winsup \ + check-target-libiberty + +# This is a list of the install targets for all of the modules which are +# compiled using $(TARGET_FLAGS_TO_PASS). +INSTALL_TARGET_MODULES = \ + install-target-libio \ + install-target-libstdc++ \ + install-target-libg++ \ + install-target-newlib \ + install-target-winsup \ + install-target-libgloss \ + install-target-libiberty + +# This is a list of the targets for which we can do a clean-{target}. +CLEAN_MODULES = \ + clean-apache \ + clean-autoconf \ + clean-bash \ + clean-bfd \ + clean-binutils \ + clean-byacc \ + clean-cvs \ + clean-db \ + clean-dejagnu \ + clean-diff \ + clean-dosutils \ + clean-etc \ + clean-fileutils \ + clean-findutils \ + clean-find \ + clean-flex \ + clean-gas \ + clean-gawk \ + clean-gprof \ + clean-grep \ + clean-grez \ + clean-gzip \ + clean-hello \ + clean-indent \ + clean-inet \ + clean-ispell \ + clean-itcl \ + clean-ld \ + clean-libiberty \ + clean-m4 \ + clean-make \ + clean-mmalloc \ + clean-opcodes \ + clean-patch \ + clean-perl \ + clean-prms \ + clean-rcs \ + clean-readline \ + clean-release \ + clean-recode \ + clean-sed \ + clean-send-pr \ + clean-shellutils \ + clean-sim \ + clean-sn \ + clean-tar \ + clean-tcl \ + clean-texinfo \ + clean-textutils \ + clean-tgas \ + clean-time \ + clean-uudecode \ + clean-wdiff + +# All of the target modules that can be cleaned +CLEAN_TARGET_MODULES = \ + clean-target-libio \ + clean-target-libstdc++ \ + clean-target-librx \ + clean-target-libg++ \ + clean-target-newlib \ + clean-target-winsup \ + clean-target-libgloss \ + clean-target-libiberty \ + clean-target-examples + +# All of the x11 modules that can be cleaned +CLEAN_X11_MODULES = \ + clean-emacs \ + clean-emacs19 \ + clean-gdb \ + clean-expect \ + clean-gash \ + clean-guile \ + clean-tclX \ + clean-tk + +# The first rule in the file had better be this one. Don't put any above it. +all: all.normal +.PHONY: all + +# The target built for a native build. +.PHONY: all.normal +all.normal: \ + $(ALL_MODULES) \ + $(ALL_TARGET_MODULES) \ + $(ALL_X11_MODULES) \ + all-gcc + +# Do a target for all the subdirectories. A ``make do-X'' will do a +# ``make X'' in all subdirectories (because, in general, there is a +# dependency (below) of X upon do-X, a ``make X'' will also do this, +# but it may do additional work as well). +# This target ensures that $(BASE_FLAGS_TO_PASS) appears only once, +# because it is so large that it can easily overflow the command line +# length limit on some systems. +DO_X = \ + do-clean \ + do-distclean \ + do-dvi \ + do-info \ + do-install-info \ + do-installcheck \ + do-mostlyclean \ + do-maintainer-clean \ + do-TAGS +.PHONY: $(DO_X) +$(DO_X): + @target=`echo $@ | sed -e 's/^do-//'`; \ + r=`pwd`; export r; \ + s=`cd $(srcdir); pwd`; export s; \ + $(SET_LIB_PATH) \ + for i in $(SUBDIRS) -dummy-; do \ + if [ -f ./$$i/Makefile ]; then \ + case $$i in \ + gcc) \ + for flag in $(EXTRA_GCC_FLAGS); do \ + eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'|"`; \ + done; \ + ;; \ + *) \ + for flag in $(EXTRA_HOST_FLAGS); do \ + eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'|"`; \ + done; \ + ;; \ + esac ; \ + export AR AS CC CXX NM RANLIB DLLTOOL; \ + if (cd ./$$i; \ + $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ + "CC=$${CC}" "CXX=$${CXX}" "NM=$${NM}" \ + "RANLIB=$${RANLIB}" \ + "DLLTOOL=$${DLLTOOL}" \ + $${target}); \ + then true; else exit 1; fi; \ + else true; fi; \ + done + @target=`echo $@ | sed -e 's/^do-//'`; \ + r=`pwd`; export r; \ + s=`cd $(srcdir); pwd`; export s; \ + $(SET_LIB_PATH) \ + for i in $(TARGET_CONFIGDIRS) -dummy-; do \ + if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \ + for flag in $(EXTRA_TARGET_FLAGS); do \ + eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'|"`; \ + done; \ + export AR AS CC CXX NM RANLIB DLLTOOL; \ + if (cd $(TARGET_SUBDIR)/$$i; \ + $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ + "CC=$${CC}" "CXX=$${CXX}" "NM=$${NM}" \ + "RANLIB=$${RANLIB}" \ + "DLLTOOL=$${DLLTOOL}" \ + $${target}); \ + then true; else exit 1; fi; \ + else true; fi; \ + done + +# Here are the targets which correspond to the do-X targets. + +.PHONY: info installcheck dvi install-info +.PHONY: clean distclean mostlyclean maintainer-clean realclean +.PHONY: local-clean local-distclean local-maintainer-clean +info: do-info +installcheck: do-installcheck +dvi: do-dvi + +# Make sure makeinfo is built before we do a `make info'. +do-info: all-texinfo + +install-info: do-install-info dir.info + s=`cd $(srcdir); pwd`; export s; \ + if [ -f dir.info ] ; then \ + $(INSTALL_DATA) dir.info $(infodir)/dir.info ; \ + else true ; fi + +local-clean: + -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E + +local-distclean: + -rm -f Makefile config.status config.cache + -if [ "$(TARGET_SUBDIR)" != "." ]; then \ + rm -rf $(TARGET_SUBDIR); \ + else true; fi + +local-maintainer-clean: + @echo "This command is intended for maintainers to use;" + @echo "it deletes files that may require special tools to rebuild." + +clean: do-clean local-clean +mostlyclean: do-mostlyclean local-clean +distclean: do-distclean local-clean local-distclean +maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean +maintainer-clean: local-distclean +realclean: maintainer-clean + +# This rule is used to clean specific modules. +.PHONY: $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc +$(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc: + @dir=`echo $@ | sed -e 's/clean-//'`; \ + if [ -f ./$${dir}/Makefile ] ; then \ + r=`pwd`; export r; \ + s=`cd $(srcdir); pwd`; export s; \ + $(SET_LIB_PATH) \ + (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) clean); \ + else \ + true; \ + fi + +.PHONY: $(CLEAN_TARGET_MODULES) +$(CLEAN_TARGET_MODULES): + @dir=`echo $@ | sed -e 's/clean-target-//'`; \ + rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \ + if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \ + r=`pwd`; export r; \ + s=`cd $(srcdir); pwd`; export s; \ + $(SET_LIB_PATH) \ + (cd $(TARGET_SUBDIR)/$${dir}; $(MAKE) $(TARGET_FLAGS_TO_PASS) clean); \ + else \ + true; \ + fi + +clean-target: $(CLEAN_TARGET_MODULES) + +# Check target. + +.PHONY: check +check: $(CHECK_MODULES) \ + $(CHECK_TARGET_MODULES) \ + $(CHECK_X11_MODULES) \ + check-gcc + +# Installation targets. + +.PHONY: install uninstall source-vault binary-vault vault-install +install: $(INSTALL_TARGET) install-info + +uninstall: + @echo "the uninstall target is not supported in this tree" + +source-vault: + $(MAKE) -f ./release/Build-A-Release \ + host=$(host_alias) source-vault + +binary-vault: + $(MAKE) -f ./release/Build-A-Release \ + host=$(host_alias) target=$(target_alias) + +vault-install: + @if [ -f ./release/vault-install ] ; then \ + ./release/vault-install $(host_alias) $(target_alias) ; \ + else \ + true ; \ + fi + +.PHONY: install.all +install.all: install-no-fixedincludes + @if [ -f ./gcc/Makefile ] ; then \ + r=`pwd` ; export r ; \ + $(SET_LIB_PATH) \ + (cd ./gcc; \ + $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \ + else \ + true ; \ + fi + +# inet-install is used because the I*Net wants DejaGNU installed but +# not built. Similarly, gzip is built but not installed. +inet-install: + $(MAKE) INSTALL_MODULES="`echo $(INSTALL_MODULES) | sed -e 's/install-dejagnu//' -e 's/install-gzip//'`" install + +# install-no-fixedincludes is used because Cygnus can not distribute +# the fixed header files. +.PHONY: install-no-fixedincludes +install-no-fixedincludes: \ + install-dirs \ + $(INSTALL_MODULES) \ + $(INSTALL_TARGET_MODULES) \ + $(INSTALL_X11_MODULES) \ + gcc-no-fixedincludes + +# Install the gcc headers files, but not the fixed include files, +# which Cygnus is not allowed to distribute. This rule is very +# dependent on the workings of the gcc Makefile.in. +.PHONY: gcc-no-fixedincludes +gcc-no-fixedincludes: + @if [ -f ./gcc/Makefile ]; then \ + rm -rf gcc/tmp-include; \ + mv gcc/include gcc/tmp-include 2>/dev/null; \ + mkdir gcc/include; \ + cp $(srcdir)/gcc/gsyslimits.h gcc/include/syslimits.h; \ + touch gcc/stmp-fixinc gcc/include/fixed; \ + rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \ + r=`pwd`; export r; \ + s=`cd $(srcdir); pwd` ; export s; \ + $(SET_LIB_PATH) \ + (cd ./gcc; \ + $(MAKE) $(GCC_FLAGS_TO_PASS) install); \ + rm -rf gcc/include; \ + mv gcc/tmp-include gcc/include 2>/dev/null; \ + else true; fi + +# This rule is used to build the modules which use FLAGS_TO_PASS. To +# build a target all-X means to cd to X and make all. +# +# all-gui, and all-libproc are handled specially because +# they are still experimental, and if they fail to build, that +# shouldn't stop "make all". +.PHONY: $(ALL_MODULES) all-gui all-libproc +$(ALL_MODULES) all-gui all-libproc: + @dir=`echo $@ | sed -e 's/all-//'`; \ + if [ -f ./$${dir}/Makefile ] ; then \ + r=`pwd`; export r; \ + s=`cd $(srcdir); pwd`; export s; \ + $(SET_LIB_PATH) \ + (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) all); \ + else \ + true; \ + fi + +# These rules are used to check the modules which use FLAGS_TO_PASS. +# To build a target check-X means to cd to X and make check. Some +# modules are only tested in a native toolchain. + +.PHONY: $(CHECK_MODULES) $(NATIVE_CHECK_MODULES) $(CROSS_CHECK_MODULES) +$(NATIVE_CHECK_MODULES): + @if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ + dir=`echo $@ | sed -e 's/check-//'`; \ + if [ -f ./$${dir}/Makefile ] ; then \ + r=`pwd`; export r; \ + s=`cd $(srcdir); pwd`; export s; \ + $(SET_LIB_PATH) \ + (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \ + else \ + true; \ + fi; \ + fi + +$(CROSS_CHECK_MODULES): + @dir=`echo $@ | sed -e 's/check-//'`; \ + if [ -f ./$${dir}/Makefile ] ; then \ + r=`pwd`; export r; \ + s=`cd $(srcdir); pwd`; export s; \ + $(SET_LIB_PATH) \ + (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \ + else \ + true; \ + fi + +# This rule is used to install the modules which use FLAGS_TO_PASS. +# To build a target install-X means to cd to X and make install. +.PHONY: $(INSTALL_MODULES) +$(INSTALL_MODULES): install-dirs + @dir=`echo $@ | sed -e 's/install-//'`; \ + if [ -f ./$${dir}/Makefile ] ; then \ + r=`pwd`; export r; \ + s=`cd $(srcdir); pwd`; export s; \ + $(SET_LIB_PATH) \ + (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install); \ + else \ + true; \ + fi + +# This rule is used to configure the modules which are built with the +# target tools. +.PHONY: $(CONFIGURE_TARGET_MODULES) +$(CONFIGURE_TARGET_MODULES): + @dir=`echo $@ | sed -e 's/configure-target-//'`; \ + if [ -d $(TARGET_SUBDIR)/$${dir} ]; then \ + r=`pwd`; export r; \ + $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/$${dir}/tmpmulti.out 2> /dev/null; \ + if [ -s $(TARGET_SUBDIR)/$${dir}/tmpmulti.out ]; then \ + if [ -f $(TARGET_SUBDIR)/$${dir}/multilib.out ]; then \ + if cmp $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out > /dev/null; then \ + rm -f $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \ + else \ + echo "Multilibs changed for $${dir}, reconfiguring"; \ + rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/Makefile; \ + mv $(TARGET_SUBDIR)/$${dir}/tmpmulti.out $(TARGET_SUBDIR)/$${dir}/multilib.out; \ + fi; \ + else \ + mv $(TARGET_SUBDIR)/$${dir}/tmpmulti.out $(TARGET_SUBDIR)/$${dir}/multilib.out; \ + fi; \ + fi; \ + fi; exit 0 # break command into two pieces + @dir=`echo $@ | sed -e 's/configure-target-//'`; \ + if [ ! -d $(TARGET_SUBDIR) ]; then \ + true; \ + elif [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \ + true; \ + elif echo " $(TARGET_CONFIGDIRS) " | grep " $${dir} " >/dev/null 2>&1; then \ + if [ -d $(srcdir)/$${dir} ]; then \ + [ -d $(TARGET_SUBDIR)/$${dir} ] || mkdir $(TARGET_SUBDIR)/$${dir};\ + r=`pwd`; export r; \ + s=`cd $(srcdir); pwd`; export s; \ + $(SET_LIB_PATH) \ + AR="$(AR_FOR_TARGET)"; export AR; \ + AS="$(AS_FOR_TARGET)"; export AS; \ + CC="$(CC_FOR_TARGET)"; export CC; \ + CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ + CXX="$(CXX_FOR_TARGET)"; export CXX; \ + CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ + DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \ + LD="$(LD_FOR_TARGET)"; export LD; \ + LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \ + NM="$(NM_FOR_TARGET)"; export NM; \ + RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \ + echo Configuring in $(TARGET_SUBDIR)/$${dir}; \ + cd $(TARGET_SUBDIR)/$${dir}; \ + case $(srcdir) in \ + /*) \ + topdir=$(srcdir) ;; \ + *) \ + case "$(TARGET_SUBDIR)" in \ + .) topdir="../$(srcdir)" ;; \ + *) topdir="../../$(srcdir)" ;; \ + esac ;; \ + esac; \ + if [ "$(srcdir)" = "." ] ; then \ + if [ "$(TARGET_SUBDIR)" != "." ] ; then \ + if $(SHELL) $$s/symlink-tree $${topdir}/$${dir} "no-such-file" ; then \ + if [ -f Makefile ]; then \ + if $(MAKE) distclean; then \ + true; \ + else \ + exit 1; \ + fi; \ + else \ + true; \ + fi; \ + else \ + exit 1; \ + fi; \ + else \ + true; \ + fi; \ + srcdiroption="--srcdir=."; \ + libsrcdir="."; \ + else \ + srcdiroption="--srcdir=$${topdir}/$${dir}"; \ + libsrcdir="$$s/$${dir}"; \ + fi; \ + if [ -f $${libsrcdir}/configure ] ; then \ + $(SHELL) $${libsrcdir}/configure \ + $(CONFIG_ARGUMENTS) $${srcdiroption} \ + --with-target-subdir="$(TARGET_SUBDIR)"; \ + else \ + $(SHELL) $$s/configure \ + $(CONFIG_ARGUMENTS) $${srcdiroption} \ + --with-target-subdir="$(TARGET_SUBDIR)"; \ + fi; \ + else \ + true; \ + fi; \ + else \ + true; \ + fi + +# This rule is used to build the modules which use TARGET_FLAGS_TO_PASS. +# To build a target all-X means to cd to X and make all. +.PHONY: $(ALL_TARGET_MODULES) +$(ALL_TARGET_MODULES): + @dir=`echo $@ | sed -e 's/all-target-//'`; \ + if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \ + r=`pwd`; export r; \ + s=`cd $(srcdir); pwd`; export s; \ + $(SET_LIB_PATH) \ + (cd $(TARGET_SUBDIR)/$${dir}; $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \ + else \ + true; \ + fi + +# This rule is used to check the modules which use TARGET_FLAGS_TO_PASS. +# To build a target install-X means to cd to X and make install. +.PHONY: $(CHECK_TARGET_MODULES) +$(CHECK_TARGET_MODULES): + @dir=`echo $@ | sed -e 's/check-target-//'`; \ + if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \ + r=`pwd`; export r; \ + s=`cd $(srcdir); pwd`; export s; \ + $(SET_LIB_PATH) \ + (cd $(TARGET_SUBDIR)/$${dir};$(MAKE) $(TARGET_FLAGS_TO_PASS) check);\ + else \ + true; \ + fi + +# This rule is used to install the modules which use +# TARGET_FLAGS_TO_PASS. To build a target install-X means to cd to X +# and make install. +.PHONY: $(INSTALL_TARGET_MODULES) +$(INSTALL_TARGET_MODULES): install-dirs + @dir=`echo $@ | sed -e 's/install-target-//'`; \ + if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \ + r=`pwd`; export r; \ + s=`cd $(srcdir); pwd`; export s; \ + $(SET_LIB_PATH) \ + (cd $(TARGET_SUBDIR)/$${dir}; \ + $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \ + else \ + true; \ + fi + +# This rule is used to build the modules which use X11_FLAGS_TO_PASS. +# To build a target all-X means to cd to X and make all. +.PHONY: $(ALL_X11_MODULES) +$(ALL_X11_MODULES): + @dir=`echo $@ | sed -e 's/all-//'`; \ + if [ -f ./$${dir}/Makefile ] ; then \ + r=`pwd`; export r; \ + s=`cd $(srcdir); pwd`; export s; \ + $(SET_LIB_PATH) \ + (cd $${dir}; \ + $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all); \ + else \ + true; \ + fi + +# This rule is used to check the modules which use X11_FLAGS_TO_PASS. +# To build a target check-X means to cd to X and make all. +.PHONY: $(CHECK_X11_MODULES) +$(CHECK_X11_MODULES): + @dir=`echo $@ | sed -e 's/check-//'`; \ + if [ -f ./$${dir}/Makefile ] ; then \ + r=`pwd`; export r; \ + s=`cd $(srcdir); pwd`; export s; \ + $(SET_LIB_PATH) \ + (cd $${dir}; \ + $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check); \ + else \ + true; \ + fi + +# This rule is used to install the modules which use X11_FLAGS_TO_PASS. +# To build a target install-X means to cd to X and make install. +.PHONY: $(INSTALL_X11_MODULES) +$(INSTALL_X11_MODULES): + @dir=`echo $@ | sed -e 's/install-//'`; \ + if [ -f ./$${dir}/Makefile ] ; then \ + r=`pwd`; export r; \ + s=`cd $(srcdir); pwd`; export s; \ + $(SET_LIB_PATH) \ + (cd $${dir}; \ + $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install); \ + else \ + true; \ + fi + +# gcc is the only module which uses GCC_FLAGS_TO_PASS. +.PHONY: all-gcc +all-gcc: + @if [ -f ./gcc/Makefile ] ; then \ + r=`pwd`; export r; \ + s=`cd $(srcdir); pwd`; export s; \ + $(SET_LIB_PATH) \ + (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) all); \ + else \ + true; \ + fi + +.PHONY: all-bootstrap +all-bootstrap: + @if [ -f ./gcc/Makefile ] ; then \ + r=`pwd`; export r; \ + s=`cd $(srcdir); pwd`; export s; \ + $(SET_LIB_PATH) \ + (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) bootstrap); \ + else \ + true; \ + fi + +.PHONY: check-gcc +check-gcc: + @if [ -f ./gcc/Makefile ] ; then \ + r=`pwd`; export r; \ + s=`cd $(srcdir); pwd`; export s; \ + $(SET_LIB_PATH) \ + (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) check); \ + else \ + true; \ + fi + +.PHONY: install-gcc +install-gcc: + @if [ -f ./gcc/Makefile ] ; then \ + r=`pwd`; export r; \ + s=`cd $(srcdir); pwd`; export s; \ + $(SET_LIB_PATH) \ + (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) install); \ + else \ + true; \ + fi + + +# EXPERIMENTAL STUFF +# This rule is used to install the modules which use FLAGS_TO_PASS. +# To build a target install-X means to cd to X and make install. +.PHONY: install-dosrel +install-dosrel: install-dirs info + @dir=`echo $@ | sed -e 's/install-//'`; \ + if [ -f ./$${dir}/Makefile ] ; then \ + r=`pwd`; export r; \ + s=`cd $(srcdir); pwd`; export s; \ + $(SET_LIB_PATH) \ + (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install); \ + else \ + true; \ + fi + +install-dosrel-fake: + + +# This is a list of inter-dependencies among modules. +all-apache: +all-autoconf: all-m4 +all-bash: +all-bfd: +all-binutils: all-libiberty all-opcodes all-bfd all-flex all-byacc +all-byacc: +all-cvs: +all-db: +all-dejagnu: all-tcl all-expect all-tk +all-diff: all-libiberty +all-emacs: +all-emacs19: all-byacc +all-etc: +configure-target-examples: $(ALL_GCC) +all-target-examples: configure-target-examples +all-expect: all-tcl all-tk +all-fileutils: all-libiberty +all-findutils: +all-find: +all-flex: all-libiberty all-byacc +all-gas: all-libiberty all-opcodes all-bfd +all-gash: all-tcl +all-gawk: +ALL_GCC = all-gcc +all-gcc: all-libiberty all-byacc all-binutils all-gas all-ld +all-bootstrap: all-libiberty all-byacc all-binutils all-gas all-ld +GDB_TK = all-tk all-tcl +all-gdb: all-libiberty all-opcodes all-bfd all-mmalloc all-readline all-byacc all-sim $(gdbnlmrequirements) $(GDB_TK) +all-gprof: all-libiberty all-bfd all-opcodes +all-grep: all-libiberty +all-grez: all-libiberty all-bfd all-opcodes +all-gui: all-gdb all-libproc all-target-librx +all-guile: +all-gzip: all-libiberty +all-hello: all-libiberty +all-indent: +all-inet: all-tcl all-send-pr all-perl +all-ispell: all-emacs19 +all-itcl: all-tcl all-tk +all-ld: all-libiberty all-bfd all-opcodes all-byacc all-flex +configure-target-libg++: $(ALL_GCC) configure-target-librx +all-target-libg++: configure-target-libg++ all-gas all-ld all-gcc all-target-libiberty all-target-newlib all-target-libio all-target-librx all-target-libstdc++ +configure-target-libgloss: $(ALL_GCC) +all-target-libgloss: configure-target-libgloss configure-target-newlib +configure-target-libio: $(ALL_GCC) +all-target-libio: configure-target-libio all-gas all-ld all-gcc all-target-libiberty all-target-newlib +all-libiberty: +configure-target-librx: $(ALL_GCC) configure-target-newlib +all-target-librx: configure-target-librx +configure-target-libstdc++: $(ALL_GCC) +all-target-libstdc++: configure-target-libstdc++ all-gas all-ld all-gcc all-target-libiberty all-target-newlib all-target-libio +all-m4: all-libiberty +all-make: all-libiberty +all-mmalloc: +configure-target-newlib: $(ALL_GCC) +all-target-newlib: configure-target-newlib all-binutils all-gas all-gcc +all-opcodes: all-bfd all-libiberty +all-patch: all-libiberty +all-perl: +all-prms: all-libiberty +all-rcs: +all-readline: +all-recode: all-libiberty +all-sed: all-libiberty +all-send-pr: all-prms +all-shellutils: +all-sim: all-libiberty all-bfd all-opcodes +all-sn: all-tcl all-tk all-itcl all-db +all-tar: all-libiberty +all-tcl: +all-tclX: all-tcl all-tk +all-tk: all-tcl +all-texinfo: all-libiberty +all-textutils: +all-tgas: all-libiberty all-bfd all-opcodes +all-time: +all-wdiff: +all-target-winsup: all-target-newlib all-target-libiberty all-target-librx all-target-libio configure-target-winsup +configure-target-winsup: configure-target-newlib +all-uudecode: all-libiberty +configure-target-libiberty: $(ALL_GCC) +all-target-libiberty: configure-target-libiberty all-gcc all-ld all-target-newlib +all-target: $(ALL_TARGET_MODULES) +install-target: $(INSTALL_TARGET_MODULES) + +### other supporting targets + +MAKEDIRS= \ + $(prefix) \ + $(exec_prefix) +.PHONY: install-dirs +install-dirs: + @for i in .. $(MAKEDIRS) ; do \ + if [ x$$i != x.. ]; then \ + echo Making $$i... ; \ + parent=`echo $$i | sed -e 's@/[^/]*$$@@' | sed -e 's@^$$@/@'`; \ + if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi ; \ + if [ ! -d $$i ] ; then \ + if mkdir $$i ; then \ + true ; \ + else \ + exit 1 ; \ + fi ; \ + else \ + true ; \ + fi ; \ + else true; fi; \ + done + +dir.info: do-install-info + if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \ + $(srcdir)/texinfo/gen-info-dir $(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \ + mv -f dir.info.new dir.info ; \ + else true ; \ + fi + +dist: + @echo "Building a full distribution of this tree isn't done" + @echo "via 'make dist'. Check out the etc/ subdirectory" + +etags tags: TAGS + +# Right now this just builds TAGS in each subdirectory. emacs19 has the +# ability to use several tags files at once, so there is probably no need +# to combine them into one big TAGS file (like CVS 1.3 does). We could +# (if we felt like it) have this Makefile write a piece of elisp which +# the user could load to tell emacs19 where all the TAGS files we just +# built are. +TAGS: do-TAGS + +# with the gnu make, this is done automatically. + +Makefile: Makefile.in configure.in $(host_makefile_frag) $(target_makefile_frag) + $(SHELL) ./config.status + +# +# Support for building net releases + +# Files in devo used in any net release. +# ChangeLog omitted because it may refer to files which are not in this +# distribution (perhaps it would be better to include it anyway). +DEVO_SUPPORT= README Makefile.in configure configure.in \ + config.guess config.sub config move-if-change \ + mpw-README mpw-build.in mpw-config.in mpw-configure mpw-install \ + COPYING COPYING.LIB install.sh config-ml.in symlink-tree + +# Files in devo/etc used in any net release. +# ChangeLog omitted because it may refer to files which are not in this +# distribution (perhaps it would be better to include it anyway). +ETC_SUPPORT= Makefile.in cfg-paper.texi configure configure.in configure.man \ + configure.texi standards.texi make-stds.texi \ + configure.info* standards.info* cfg-paper.info* + +# When you use `make setup-dirs' or `make taz' you should always redefine +# this macro. +SUPPORT_FILES = list-of-support-files-for-tool-in-question +# Files where "byacc" (Cygnus version) should be changed to "bison -y" (FSF). +DISTBISONFILES= binutils/Makefile.in gas/Makefile.in gdb/Makefile.in ld/Makefile.in + +.PHONY: taz + +taz: $(DEVO_SUPPORT) $(SUPPORT_FILES) \ + texinfo/texinfo.tex texinfo/gpl.texinfo texinfo/lgpl.texinfo + # Make sure "diststuff" files get built properly. + for f in $(DISTBISONFILES) ; do \ + if [ -r $$f ]; then \ + sed '/^BISON *=.*$$/s/.*/BISON = bison -y/' <$$f >tmp ; \ + mv -f tmp $$f ; \ + else true; fi ; \ + done + # Take out texinfo from a few places; make simple BISON=bison line. + sed -e '/^all\.normal: /s/\all-texinfo //' \ + -e '/^ install-texinfo /d' \ + -e '/^BISON = `if/,/^$$/d' \ + -e '/^# BISON:/s/.*/BISON = bison -y/' \ + tmp + mv -f tmp Makefile.in + # + ./configure sun4 + [ -z "$(CONFIGURE_TARGET_MODULES)" ] \ + || $(MAKE) $(CONFIGURE_TARGET_MODULES) ALL_GCC="" \ + CC_FOR_TARGET="$(CC)" CXX_FOR_TARGET="$(CXX)" + # Make links, and run "make diststuff" or "make info" when needed. + rm -rf proto-toplev ; mkdir proto-toplev + set -e ; dirs="$(TOOL) $(DEVO_SUPPORT) $(SUPPORT_FILES)" ; \ + for d in $$dirs ; do \ + if [ -d $$d ]; then \ + if [ ! -f $$d/Makefile ] ; then true ; \ + elif grep '^diststuff:' $$d/Makefile >/dev/null ; then \ + (cd $$d ; $(MAKE) diststuff ) || exit 1 ; \ + elif grep '^info:' $$d/Makefile >/dev/null ; then \ + (cd $$d ; $(MAKE) info ) || exit 1 ; \ + fi ; \ + if [ -d $$d/proto-$$d.dir ]; then \ + ln -s ../$$d/proto-$$d.dir proto-toplev/$$d ; \ + else \ + ln -s ../$$d proto-toplev/$$d ; \ + fi ; \ + else ln -s ../$$d proto-toplev/$$d ; fi ; \ + done + cd etc ; $(MAKE) info + $(MAKE) distclean + # + mkdir proto-toplev/etc + (cd proto-toplev/etc; \ + for i in $(ETC_SUPPORT); do \ + ln -s ../../etc/$$i . ; \ + done) + # + # Take out texinfo from configurable dirs + rm proto-toplev/configure.in + sed -e '/^host_tools=/s/texinfo //' \ + proto-toplev/configure.in + # + mkdir proto-toplev/texinfo + ln -s ../../texinfo/texinfo.tex proto-toplev/texinfo/ + ln -s ../../texinfo/gpl.texinfo proto-toplev/texinfo/ + ln -s ../../texinfo/lgpl.texinfo proto-toplev/texinfo/ + if test -r texinfo/util/tex3patch ; then \ + mkdir proto-toplev/texinfo/util && \ + ln -s ../../../texinfo/util/tex3patch proto-toplev/texinfo/util ; \ + else true; fi + chmod og=u `find . -print` + $(MAKE) -f Makefile.in do-tar-gz TOOL=$(TOOL) \ + VER=`sed <$(TOOL)/Makefile.in -n 's/^VERSION *= *//p'` + +do-tar-gz: + echo "==> Making $(TOOL)-$(VER).tar.gz" + -rm -f $(TOOL)-$(VER) + ln -s proto-toplev $(TOOL)-$(VER) + tar cfh $(TOOL)-$(VER).tar $(TOOL)-$(VER) + $(GZIPPROG) -v -9 $(TOOL)-$(VER).tar + +TEXINFO_SUPPORT= texinfo/texinfo.tex texinfo/gpl.texinfo texinfo/lgpl.texinfo +DIST_SUPPORT= $(DEVO_SUPPORT) $(TEXINFO_SUPPORT) + +.PHONY: gas.tar.gz +GAS_SUPPORT_DIRS= bfd include libiberty opcodes setup.com makefile.vms +gas.tar.gz: $(DIST_SUPPORT) $(GAS_SUPPORT_DIRS) gas + $(MAKE) -f Makefile.in taz TOOL=gas \ + SUPPORT_FILES="$(GAS_SUPPORT_DIRS)" + +# The FSF "binutils" release includes gprof and ld. +.PHONY: binutils.tar.gz +BINUTILS_SUPPORT_DIRS= bfd gas include libiberty opcodes ld gprof setup.com makefile.vms +binutils.tar.gz: $(DIST_SUPPORT) $(BINUTILS_SUPPORT_DIRS) binutils + $(MAKE) -f Makefile.in taz TOOL=binutils \ + SUPPORT_FILES="$(BINUTILS_SUPPORT_DIRS) makeall.bat configure.bat" + +.PHONY: gas+binutils.tar.gz +GASB_SUPPORT_DIRS= $(GAS_SUPPORT_DIRS) binutils ld gprof +gas+binutils.tar.gz: $(DIST_SUPPORT) $(GASB_SUPPORT_DIRS) gas + $(MAKE) -f Makefile.in taz TOOL=gas \ + SUPPORT_FILES="$(GASB_SUPPORT_DIRS) makeall.bat configure.bat" + +.PHONY: libg++.tar.gz +LIBGXX_SUPPORT_DIRS=include libstdc++ libio librx libiberty +libg++.tar.gz: $(DIST_SUPPORT) libg++ + $(MAKE) -f Makefile.in taz TOOL=libg++ \ + SUPPORT_FILES="$(LIBGXX_SUPPORT_DIRS)" + +GNATS_SUPPORT_DIRS=include libiberty send-pr +gnats.tar.gz: $(DIST_SUPPORT) $(GNATS_SUPPORT_DIRS) gnats + $(MAKE) -f Makefile.in taz TOOL=gnats \ + SUPPORT_FILES="$(GNATS_SUPPORT_DIRS)" + +.PHONY: gdb.tar.gz +GDB_SUPPORT_DIRS= bfd include libiberty mmalloc opcodes readline sim utils +GDBTK_SUPPORT_DIRS= `if [ -d tcl -a -d tk ] ; then echo tcl tk ; fi` +gdb.tar.gz: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb + $(MAKE) -f Makefile.in taz TOOL=gdb \ + SUPPORT_FILES="$(GDB_SUPPORT_DIRS) $(GDBTK_SUPPORT_DIRS)" + +.PHONY: newlib.tar.gz +NEWLIB_SUPPORT_DIRS=libgloss +# taz configures for the sun4 target which won't configure newlib. +# We need newlib configured so that the .info files are made. +# Unfortunately, it is not enough to just configure newlib separately: +# taz will build the .info files but since SUBDIRS won't contain newlib, +# distclean won't be run (leaving Makefile, config.status, and the tmp files +# used in building the .info files, eg: *.def, *.ref). +# The problem isn't solvable however without a lot of extra work because +# target libraries are built in subdir $(target_alias) which gets nuked during +# the make distclean. For now punt on the issue of shipping newlib info files +# with newlib net releases and wait for a day when some native target (sun4?) +# supports newlib (if only minimally). +newlib.tar.gz: $(DIST_SUPPORT) $(NEWLIB_SUPPORT_DIRS) newlib + $(MAKE) -f Makefile.in taz TOOL=newlib \ + SUPPORT_FILES="$(NEWLIB_SUPPORT_DIRS)" \ + DEVO_SUPPORT="$(DEVO_SUPPORT) COPYING.NEWLIB" newlib + +.NOEXPORT: +MAKEOVERRIDES= + + +# end of Makefile.in diff --git a/contrib/binutils/README b/contrib/binutils/README new file mode 100644 index 00000000000..05ee85b46de --- /dev/null +++ b/contrib/binutils/README @@ -0,0 +1,50 @@ + README for GNU development tools + +This directory contains various GNU compilers, assemblers, linkers, +debuggers, etc., plus their support routines, definitions, and documentation. + +If you are receiving this as part of a GDB release, see the file gdb/README. +If with a binutils release, see binutils/README; if with a libg++ release, +see libg++/README, etc. That'll give you info about this +package -- supported targets, how to use it, how to report bugs, etc. + +It is now possible to automatically configure and build a variety of +tools with one command. To build all of the tools contained herein, +run the ``configure'' script here, e.g.: + + ./configure + make + +To install them (by default in /usr/local/bin, /usr/local/lib, etc), +then do: + make install + +(If the configure script can't determine your type of computer, give it +the name as an argument, for instance ``./configure sun4''. You can +use the script ``config.sub'' to test whether a name is recognized; if +it is, config.sub translates it to a triplet specifying CPU, vendor, +and OS.) + +If you have more than one compiler on your system, it is often best to +explicitly set CC in the environment before running configure, and to +also set CC when running make. For example (assuming sh/bash/ksh): + + CC=gcc ./configure + make CC=gcc + +A similar example using csh: + + setenv CC gcc + ./configure + make CC=gcc + +See etc/cfg-paper.texi, etc/configure.texi, and/or the README files in +various subdirectories, for more details. + +Much of the code and documentation enclosed is copyright by +the Free Software Foundation, Inc. See the file COPYING or +COPYING.LIB in the various directories, for a description of the +GNU General Public License terms under which you can copy the files. + +REPORTING BUGS: Again, see gdb/README, binutils/README, etc., for info +on where and how to report problems. diff --git a/contrib/binutils/bfd/ChangeLog b/contrib/binutils/bfd/ChangeLog new file mode 100644 index 00000000000..f2f04ae8926 --- /dev/null +++ b/contrib/binutils/bfd/ChangeLog @@ -0,0 +1,6958 @@ +Fri May 16 12:10:52 1997 Ian Lance Taylor + + * elflink.h (elf_link_add_object_symbols): Don't decrease the + alignment of a common symbol. If two symbols that look like + common symbols are found in two shared libraries, and the size is + different, use the larger size, and warn if --warn-common. If a + common symbol overrides a definition in a shared library, set the + size to the larger size, and warn if --warn-common. + +Thu May 15 16:40:20 1997 Ian Lance Taylor + + * elflink.h (elf_link_add_object_symbols): Force ELF symbol size + to common symbol size. Consistently treat uninitialized symbols + in shared objects as common symbols. + +Tue May 13 10:42:41 1997 Ian Lance Taylor + + * VERSION: Set to 2.8.1. + +Fri May 9 17:40:02 1997 Ian Lance Taylor + + * config.bfd: Change #if 0 around uses of host_aout_vec to #if + HAVE_host_aout_vec. + +Mon May 5 18:18:45 1997 Philip Blundell + + * config.bfd: cope with '*-*-linux-gnuaout' targets. + +Thu May 1 11:31:12 1997 Ian Lance Taylor + + * targmatch.sed: Add explicit \n characters to work around bug in + HP/UX 10.20 sed program. + +Wed Apr 30 12:27:03 1997 Ian Lance Taylor + + * elf.c (copy_private_bfd_data): Cast csecs to avoid sign + extension problems. + +Tue Apr 22 12:06:08 1997 Ian Lance Taylor + + * Makefile.in (do_maintainer_clean): Don't remove bfd-in2.h. + +Mon Apr 21 11:21:31 1997 Andreas Schwab + + * elf32-m68k.c: Follow the last changes in elf32-i386.c: + (struct elf_m68k_pcrel_relocs_copied, struct + elf_m68k_link_hash_entry, struct elf_m68k_link_hash_table, + elf_m68k_link_hash_traverse, elf_m68k_hash_table, + elf_m68k_link_hash_newfunc, elf_m68k_link_hash_table_create, + elf_m68k_discard_copies, bfd_elf32_bfd_link_hash_table_create): + New definitions. + (elf_m68k_check_relocs): If linking with -Bsymbolic, don't copy + PC relative relocs for a global symbol defined in a regular + object, and count the number of PC relative relocs copied for any + global symbol. + (elf_m68k_size_dynamic_sections): If linking with -Bsymbolic, + traverse with elf_m68k_discard_copies. + +Sat Apr 19 22:50:14 1997 Ian Lance Taylor + + * elf32-i386.c (elf_i386_check_relocs): Only count PC relative + relocs. From Jamie Lokier . + +Thu Apr 17 13:46:56 1997 Per Fogelstrom + + * configure.host (mips*-*-openbsd*): New target. + +Thu Apr 17 11:10:54 1997 Ian Lance Taylor + + * elflink.h (elf_link_add_object_symbols): Only subtract the + section VMA from the symbol value if this is a fully linked file. + + * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Define. + (struct elf_i386_link_hash_entry): Define. + (struct elf_i386_link_hash_table): Define. + (elf_i386_link_hash_traverse): Define. + (elf_i386_hash_table): Define. + (elf_i386_link_hash_newfunc): New static function. + (elf_i386_link_hash_table_create): New static function. + (elf_i386_check_relocs): If linking with -Bsymbolic, don't copy + PC relative relocs for a global symbol defined in a regular + object, and count the number of PC relative relocs copied for any + global symbol. + (elf_i386_size_dynamic_sections): If linking with -Bsymbolic, + traverse with elf_i386_discard_copies. + (elf_i386_discard_copies): New static function. + (bfd_elf32_bfd_link_hash_table_create): Define. + + From Gordon W. Ross : + * aoutf1.h (MY_entry_is_text_address): Define if not defined. + (sunos4_aout_backend): Use MY_entry_is_text_address. + +Wed Apr 16 14:02:29 1997 Ian Lance Taylor + + From Gordon W. Ross : + * netbsd.h (N_SHARED_LIB): Define. + (SEGMENT_SIZE): Don't define. + * m68knetbsd.c (SEGMENT_SIZE): Don't define (revert change of + April 11). + * sparcnetbsd.c (TARGET_PAGE_SIZE): Define as 0x2000. + (SEGMENT_SIZE): Don't define. + + * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Set .rela.bss size + to sizeof Rela structure, not sizeof Rel structure. From Gary + Thomas . + +Tue Apr 15 11:50:37 1997 Ian Lance Taylor + + * aout-target.h (MY(callback)): If entry_is_text_address, adjust + whenever entry is larger than text address, but only by whole + pages. From Gordon W. Ross . + + * elflink.h (elf_link_add_object_symbols): Don't call check_relocs + if this is a debugging section which we are stripping. + +Mon Apr 14 12:39:30 1997 Richard Henderson + + * elf64-alpha.c (elf64_alpha_object_p): Allocate the + alpha-specific target data struct. + +Mon Apr 14 11:45:46 1997 Ian Lance Taylor + + From Thomas Graichen : + * Makefile.in: Always use $(SHELL) when running move-if-change. + * configure.in: Use ${CONFIG_SHELL} when running $ac_config_sub. + * configure: Rebuild. + +Fri Apr 11 15:43:24 1997 Ian Lance Taylor + + * elfcode.h (elf_slurp_symbol_table): Only subtract the section + VMA if this is an executable file or a shared object. + + * targets.c (netbsd_core_vec): Declare. From Gordon W. Ross + . + + * libaout.h (struct aout_backend_data): Add entry_is_text_address + field. + * aout-target.h (SEGMENT_SIZE): Define to TARGET_PAGE_SIZE at the + start of the file. Remove uses later on which switch using + ifdef. + (MY(callback)): Handle entry_is_text_address. + (MY_entry_is_text_address): Define if not defined. + (MY(backend_data)): Initialize new field. + * aoutf1.h (sunos4_aout_backend): Likewise. + * i386aout.c (MY(backend_data)): Likewise. + * i386mach3.c (MY(backend_data)): Likewise. + * mipsbsd.c (MY(backend_data)): Likewise. + * sparclynx.c (sparclynx_aout_backend): Likewise. + * netbsd.h (SEGMENT_SIZE): Define if not defined. + (MY_entry_is_text_address): Define. + * m68knetbsd.c (SEGMENT_SIZE): Define as 0x20000. + +Fri Apr 11 11:57:15 1997 Niklas Hallqvist + + * config.bfd: (i[3456]86-*-openbsd*, m68*-*-openbsd*, + mips*el*-*-openbsd*, mips*-*-openbsd*, ns32k-*-openbsd*, + powerpc-*-*bsd*, sparc-*-openbsd*): New targets. + * configure.in (i[3456]86-*-openbsd*, mips*-*-openbsd*, + m68*-*-openbsd*, ns32k-*-openbsd*, powerpc-*-*bsd*, + sparc-*-openbsd*): New targets. + * configure: Rebuild. + +Tue Apr 8 18:09:29 1997 Jamie Lokier + + * stabs.c (struct stab_section_info): New field + `cumulative_skips'. + (_bfd_link_section_stabs): Fill the above array. + (_bfd_stab_section_offset): Use `cumulative_skips' to + speed up offset calculation. + +Mon Apr 7 16:47:09 1997 Ian Lance Taylor + + * configure.host: Set SHLIB_LIBS. + * configure.in: Substitute SHLIB_LIBS. + * configure: Rebuild. + * Makefile.in (SHLIB_LIBS): New variable. + ($(SHLIB)): Use $(SHLIB_LIBS). + +Fri Apr 4 11:37:15 1997 Ian Lance Taylor + + * configure.in: Update file names for bfd_elf32_mn10[23]00_vec. + Correct CPU file names for mn10[23]00. + * configure: Rebuild. + + * bfd.c (bfd_record_phdr): Cast count to size_t before + subtraction. + + * ppcboot.c (ppcboot_set_arch_mach): Make static. + (ppcboot_bfd_print_private_bfd_data): Likewise. + +Thu Apr 3 11:51:54 1997 Ian Lance Taylor + + * VERSION: Set to 2.8. + + * elf32-ppc.c (ppc_elf_check_relocs): Don't check SEC_ALLOC when + deciding whether to copy a reloc into a shared object. + (ppc_elf_relocate_section): Likewise. Relocate R_PPC_RELATIVE + relocs in unallocated sections. + * elf32-sparc.c (elf32_sparc_relocate_section): Relocate + R_SPARC_RELATIVE relocs in unallocated sections. + +Wed Apr 2 16:19:41 1997 Mike Meissner + + * elf32-ppc.c (ppc_elf_check_relocs): Undo March 26 change and + always create got section so that the _GLOBAL_OFFSET_TABLE_ label + is always created. + +Wed Apr 2 10:49:07 1997 Ian Lance Taylor + + * elflink.h (elf_link_add_object_symbols): Let a common symbol + override an uninitialized symbol from a shared library with a + smaller size. + + * elf-m10200.c: Rename from elf32-mn10200.c. + * elf-m10300.c: Rename from elf32-mn10300.c. + * cpu-m10200.c: Rename from cpu-mn10200.c + * cpu-m10300.c: Rename from cpu-mn10300.c + * Makefile.in: Update accordingly. + + * elf32-mips.c (elf_mips_ctor64_howto): New static variable. + (elf_mips_isa): Move to earlier in file. + (mips_reloc_map): Remove BFD_RELOC_CTOR entry. + (bfd_elf32_bfd_reloc_type_lookup): Handle BFD_RELOC_CTOR + specially. + + * elf32-mips.c (mips16_jump_reloc): Print a warning rather than + calling abort. + +Tue Apr 1 16:18:05 1997 Klaus Kaempf + + * configure.com: New file. + * config.h-vms: Remove file. + * makefile.vms: Update for new configure scheme. + +Mon Mar 31 23:28:39 1997 H.J. Lu + + * libcoff-in.h (ppc_allocate_toc_section): Declare. + (ppc_process_before_allocation): Declare. + * libcoff.h: Rebuild. + + * coffcode.h (coff_mkobject_hook): Declare if not a macro. + +Mon Mar 31 16:29:50 1997 Joel Sherrill + + * config.bfd (hppa*-*-rtems*): New target, like hppa-*-*elf*. + +Mon Mar 31 16:11:35 1997 Ian Lance Taylor + + * coff-a29k.c (coff_a29k_relocate_section): Don't use symndx as a + symbol index for a R_IHCONST reloc. + +Mon Mar 31 15:40:59 1997 Philippe De Muyter + + * targmatch.sed: Do not use \(\) recursively. + +Fri Mar 28 14:44:08 1997 H.J. Lu + + * m68klinux.c (MACHTYPE_OK): Define. + * i386linux.c (MACHTYPE_OK): Define. + +Fri Mar 28 11:56:15 1997 Ian Lance Taylor + + From David S. Miller and H.J. Lu + : + * sparclinux.c: New file. + * bfd-in.h (bfd_sparclinux_size_dynamic_sections): Declare. + * bfd-in2.h: Rebuild. + * config.bfd (sparc-*-linuxaout*, sparc-*-linux*): New targets. + * configure.in (sparclinux_vec): Add to list of vectors. + * configure: Rebuild. + * targets.c (sparclinux_vec): Declare. + (bfd_target_vector): Add sparclinux_vec. + * Makefile.in: Rebuild dependencies. + (BFD32_BACKENDS): Add sparclinux.o. + (BFD32_BACKENDS_CFILES): Add sparclinux.c. + + * coff-mips.c (mips_ecoff_backend_data): Initialize new + bfd_coff_backend_data field. + * coff-alpha.c (alpha_ecoff_backend_data): Likewise. + + * config.bfd: Add bfd_elf64_{big,little}mips_vec to targ_selvecs + for mips*el*-*-linux* and mips*-*-linux*. From H.J. Lu + and Ralf Baechle . + + * bfd.c: Include "libiberty.h". + (strerror): Don't declare. + (bfd_errmsg): Call xstrerror rather than strerror. + +Thu Mar 27 12:55:42 1997 Ian Lance Taylor + + * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Generate a COPY + reloc even if the symbol is in the .bss section. + * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Likewise. + * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise. + * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Likewise. + + * coffcode.h (bfd_coff_backend_data): Add new field + _bfd_coff_default_section_alignment_power. + (bfd_coff_default_section_alignment_power): Define. + (bfd_coff_std_swap_table): Initialize new field. + * libcoff.h: Rebuild. + * cofflink.c (coff_link_add_symbols): Limit alignment of a common + symbol to the default section alignment. + + * COPYING: Update FSF address. + +Wed Mar 26 14:50:20 1997 Ian Lance Taylor + + * elflink.c (_bfd_elf_create_linker_section): Don't set + bss_section and rel_section from existing sections. + + * elf32-ppc.c (ppc_elf_check_relocs): Only create the got section + if it is needed. + +Tue Mar 25 22:26:56 1997 Stu Grossman (grossman@critters.cygnus.com) + + * aoutx.h (some_aout_object_p): Change executable test to fix + problems with embedded a.out systems. + +Tue Mar 25 14:35:37 1997 Ian Lance Taylor + + * stabs.c (_bfd_stab_section_offset): New function. + * libbfd-in.h (_bfd_stab_section_offset): Declare. + * libbfd.h: Rebuild. + * elf32-i386.c (elf_i386_relocate_section): Adjust the offset of a + stab reloc. + * elf32-m68k.c (elf_m68k_relocate_section): Likewise. + * elf32-mips.c (mips_elf_relocate_section): Likewise. + * elf32-ppc.c (ppc_elf_relocate_section): Likewise. + * elf32-sparc.c (elf32_sparc_relocate_section): Likewise. + * elf64-alpha.c (elf64_alpha_relocate_section): Likewise. + + * stabs.c (_bfd_link_section_stabs): Copy over the first header + symbol. Check for memory allocation failure of *psinfo. + (_bfd_write_section_stabs): Add psinfo parameter. Change all + callers. Set the value of the header symbol. + * libbfd-in.h (_bfd_write_section_stabs): Update declaration. + * libbfd.h: Rebuild. + +Mon Mar 24 13:41:00 1997 Ian Lance Taylor + + * targmatch.sed: Use the hold space to put the #ifdef around the + the string constant. + * targets.c (UNSUPPORTED_TARGET): Don't define. + (find_target): Don't check for UNSUPPORTED_TARGET. + (bfd_set_default_target): Don't try to optimize by checking for + default. + + * Makefile.in: Rebuild dependencies. + (ALL_MACHINES_CFILES): Add cpu-m32r.c. + (BFD32_BACKENDS_CFILES): Add elf32-m32r.c. + (elf32-m32r.o): Remove explicit target. + + * config.bfd: Don't set targ_underscore for i[3456]86-*-gnu* or + i[3456]86-*-linux*. + + * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Don't + count section symbols for sections that were created by the + linker, or are not allocatable or not loadable. + (elf32_sparc_finish_dynamic_sections): Output output section + symbols for section for which we made space for them. + +Fri Mar 21 13:08:26 1997 Ian Lance Taylor + + * elf32-sparc.c (elf32_sparc_size_dynamic_sections): If there is + no .rela.plt section, don't output a DT_PLTGOT dynamic entry. + +Fri Mar 21 12:36:46 1997 Doug Evans + + * elf32-m32r.c (m32r_elf_howto_table): Use special function for LO16. + (m32r_hi16_list): New static local. + (m32r_elf_hi16_reloc): Don't perform reloc, just queue it up. + (m32r_elf_do_hi16_reloc): Delete. + (m32r_elf_relocate_hi16): New function. + (m32r_elf_lo16_reloc): New function. + (m32r_elf_relocate_section): For HI16 relocs, scan for corresponding + LO16 reloc. + + Mon Mar 10 16:03:31 1997 Doug Evans + + * elf32-m32r.c (m32r_elf_create_linker_section): Delete. + (m32r_elf_add_symbol_hook): Rewrite _SDA_BASE_ support. + (m32r_elf_final_sda_base): New function. + (m32r_elf_relocate_section): Rewrite sdata support. + (m32r_elf_finish_dynamic_sections): Delete. + +Thu Mar 20 12:39:02 1997 Ian Lance Taylor + + Based on patches from Philippe De Muyter . + * coff-svm68k.c: New file. Just defines some macros and includes + coff-m68k.c. + * coff-m68k.c: Add functions to handle common addends, moved in + from cf-m68klynx.c. Control them using COFF_COMMON_ADDEND macro. + Control whether relocs are visible using STATIC_RELOCS. + * cf-m68klynx.c: Simplify greatly: just define macros to control + coff-m68k.c. + * coff-aux.c: Likewise. Just leave add_one_symbol routine. + * targets. (m68ksysvcoff_vec): Declare. + (bfd_target_vector): Add m68ksysvcoff_vec. + * config.bfd (m68*-motorola-sysv*): New target. + * configure.in (m68ksysvcoff_vec): New vector. + * configure: Rebuild. + * Makefile.in: Rebuild dependencies. + (BFD32_BACKENDS): Add coff-svm68k.o. + (BFD32_BACKENDS_CFILES): Add coff-svm68k.c. + + * binary.c (binary_set_section_contents): Don't get misled if the + first section is not loadable. From Matthew L. Martin + . + + * elflink.h (elf_bfd_final_link): Set the value of a section + symbol to the section address unless doing a relocateable link. + +Tue Mar 18 23:03:17 1997 Richard Henderson + + * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't create + .plt entry if we've taken the function's address. + (elf64_alpha_merge_gots): Merge collected flags info as well. + +Tue Mar 18 22:40:09 1997 H.J. Lu + + * Many files: Add function prototypes. + * cpu-m68k.c (bfd_default_scan_num_mach): Don't declare. + * ecofflink.c: Include "libcoff.h" and "libecoff.h". + * elf32-ppc.c (ppc_elf_fake_sections): Make static. + * opncls.c (bfd_openstreamr): Change stream parameter to PTR. + * peicode.h: Change several void * parameters to PTR. + * srec.c (srec_get_symbol_info): Make static. + * syms.c (bfd_symbol_is_absolute): Remove. + * Makefile.in: Rebuild dependencies. + +Tue Mar 18 12:58:08 1997 Ian Lance Taylor + + * elf32-m32r.c (m32r_elf_is_local_label_name): Remove. + (bfd_elf32_bfd_is_local_label): Don't define. + + * xcofflink.c (_bfd_xcoff_bfd_final_link): Call bfd_malloc rather + than malloc. + +Mon Mar 17 11:32:53 1997 Ian Lance Taylor + + * bfd-in.h: Don't include obstack.h. + (struct bfd_hash_table): Change memory field to PTR. + * bfd.c (struct _bfd): Change memory field to PTR. + * bfd-in2.h: Rebuild. + * libbfd-in.h (bfd_release): Declare as function, don't define as + macro. + * libbfd.h: Rebuild. + * opncls.c: Include "objalloc.h" rather than "obstack.h". Use + objalloc routines rather than obstack routines. + (obstack_chunk_alloc, obstack_chunk_free): Don't define. + (getpagesize): Don't define. + (_bfd_new_bfd): Don't set _bfd_chunksize. + (bfd_openr): Free new bfd and objalloc on failure. + (bfd_fdopenr, bfd_openstreamr, bfd_openw): Likewise. + (bfd_alloc_size): Remove. + (bfd_release): New function. + * hash.c: Include "objalloc.h" rather than "obstack.h". Use + objalloc routines rather than obstack routines. + (obstack_chunk_alloc, obstack_chunk_free): Don't define. + * ecofflink.c: Include "objalloc.h" rather than "obstack.h". Use + objalloc routines rather than obstack routines. + (obstack_chunk_alloc, obstack_chunk_free): Don't define. + (struct accumulate): Change memory to struct objalloc *. + * liboasys.h (oasys_data_type): Remove oasys_obstack field. + * dep-in.sed: Don't remove obstack.h from dependency list. + * Makefile.in: Rebuild dependencies. + (BFD_H_DEPS): Remove obstack.h. + (install): Don't install obstack.h. + * Many files: Don't include "obstack.h". + * VERSION: Bump. + + * opncls.c (bfd_alloc_grow, bfd_alloc_finish): Remove. + * libbfd-in.h (bfd_alloc_grow, bfd_alloc_finish): Don't declare. + * libbfd.h: Rebuild. + * ieee.c (ieee_archive_p): Rewrite to not use bfd_alloc_grow. + * sunos.c (sunos_add_dynamic_symbols): Likewise. + * srec.c (srec_scan): Rewrite to not use obstack_1grow. + + * opncls.c (bfd_alloc): Rename from bfd_alloc_by_size_t. Remove + old version of bfd_alloc. + * libbfd-in.h (bfd_alloc_by_size_t): Don't declare. + * libbfd.h: Rebuild. + * Several files: Call bfd_alloc rather than bfd_alloc_by_size_t. + +Sat Mar 15 15:24:18 1997 Ian Lance Taylor + + * elf32-mips.c (mips_elf_is_local_label_name): Accept the generic + ELF local label syntax as well. + +Sat Mar 15 10:16:42 1997 Fred Fish + + * config.bfd (powerpc-*-beos*): New target. + * configure.in (powerpc-*-beos*): Add case that explicitly + does not set COREFILE for now. A future BeOS version is + expected to support core files. + * configure: Regenerate with autoconf. + +Fri Mar 14 16:43:22 1997 Ian Lance Taylor + + * elf32-mips.c (mips_elf_check_relocs): Give an error if CALL16 is + seen with a local symbol, rather than crashing. + + * elfcode.h (elf_slurp_symbol_table): Don't try to read the + version symbols if there aren't any. + +Thu Mar 13 14:08:53 1997 Ian Lance Taylor + + * elflink.h (elf_link_add_object_symbols): Don't warn about type + or size changes because of a weak symbol. + + * cisco-core.c (SIGEMT): Define if not defined. + +Wed Mar 12 21:36:05 1997 Ian Lance Taylor + + * elflink.h (elf_link_add_object_symbols): Use extsymoff when + setting ever. Sanity check the version number. Sort out copying + flags and other information when adding an indirect symbol. + (NAME(bfd_elf,size_dynamic_sections)): Preserve any dynamic + symbols added by the backend. Clear the entire contents of the + versym section. + (elf_export_symbol): Ignore indirect symbols. + (elf_link_output_extsym): Accept a section without an owner in an + assert. + * elfcode.h (elf_slurp_symbol_table): Add a sanity check on the + version count. Correct the allocation of x_versymp. + + * elf32-mips.c (mips_elf_add_symbol_hook): Don't set the owner of + the magic sections used for SHN_MIPS_TEXT and SHN_MIPS_DATA. + Don't return bfd_und_section_ptr when info->shared. + (mips_elf_final_link): Set the alignment of .rtproc to 4, not 12. + (mips_elf_create_dynamic_sections): Correct type: ^= for &=. + (mips_elf_check_relocs): Resolve an indirect symbol in + sym_hashes. + (mips_elf_finish_dynamic_symbol): Don't change SHN_ABS into + SHN_MIPS_TEXT or SHN_MIPS_DATA. + + * elf.c (bfd_elf_print_symbol): Tweak version output slightly. + +Tue Mar 11 01:38:36 1997 Ian Lance Taylor + + From Eric Youngdale : + * elf-bfd.h (ELF_LINK_FORCED_LOCAL): Define. + * elf.c (bfd_elf_print_symbol): Correct errors in last change. + * elflink.h (elf_link_add_object_symbols): Handle cases in which a + versioned symbol appears in both a regular and a shared object. + (elf_link_assign_sym_version): Set ELF_LINK_FORCED_LOCAL when + appropriate. Improve error message. + (struct elf_outext_info): Rename from elf_finfo_failed. Change + all uses. Add localsyms field. + (elf_bfd_final_link): When generating a shared library, call + elf_link_output_extsym to output all local symbols. + (elf_link_output_extsym): Handle symbols which were forced to + become local. + +Sun Mar 9 23:08:49 1997 Ian Lance Taylor + + From Eric Youngdale : + * elf-bfd.h (elf_symbol_type): Add version field. + * elfcode.h (elf_slurp_symbol_table): Set version field. + * elflink.h (elf_link_add_object_symbols): When creating an + indirect symbol for a default version symbol, set DEF_DYNAMIC if + appropriate. Set up an indirection from the nondefault version of + the symbol as well. + (NAME(bfd_elf,size_dynamic_sections)): Call + elf_link_assign_sym_version before checking whether there are any + versions. Always record the version name as a dynamic symbol. + Initialize counters. + (elf_link_assign_sym_version): After finding a version, see if a + symbol should be forced to local scope. Create a new version + definition if appropriate. + (elf_link_output_extsym): Correct indirect symbol handling. + * elf.c (bfd_elf_print_symbol): Print version information. + (bfd_section_from_shdr): Turn version sections into BFD sections. + (elf_fake_sections): Only copy cverdefs and cverrefs into sh_info + if sh_info is not already set. + (_bfd_elf_copy_private_section_data): Copy sh_info for version + sections. + * elflink.c (_bfd_elf_link_record_dynamic_symbol): Tell + _bfd_stringtab_add to copy the name into permanent memory if + appropriate. + +Fri Mar 7 11:55:31 1997 H.J. Lu + + * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Fully parenthesize. + +Fri Mar 7 10:37:30 1997 Ian Lance Taylor + + * coffcode.h (bfd_coff_backend_data): Change + _bfd_coff_compute_section_file_positions to return a boolean + value. Change all callers. + (coff_compute_section_file_positions): Change return type to + boolean. If the size of the last section changed, then output a + zero byte at the end of the file. + * libcoff.h: Rebuild. + + * xcofflink.c (_bfd_xcoff_bfd_final_link): Always allocate space + for at least 6 output symbols. + (xcoff_write_global_symbol): When emitting TOC entry relocs, also + emit a TC csect to represent the space they take up. For an XO + symbol, just emit a reference, not a csect. + + * Makefile.in ($(SHLINK)): Just use ln -s, not ln -sf, since + Solaris doesn't like the combined options, and the -f is + unnecessary. + (stamp-tshlink, install): Likewise. + + * elf32-mips.c (mips_elf_relocate_section): Correct R_MIPS16_26 + handling when little endian. + +Thu Mar 6 13:51:51 1997 Jeffrey A Law (law@cygnus.com) + + * elf32-mn10300.c (mn10300_elf_final_link_relocate): New function. + (mn10300_elf_relocate_section): Likewise. + (elf_backend_relocate_section): Define. + + * elf32-mn10300.c (reloc_type): Remove PCREL{8,16,32}_{1,2}BYTE + relocs. Replace them with generic PCREL_{8,16,32} relocs. + (elf32_mn10300_howto_table): Likewise. + (elf32_mn10300_reloc_map): Likewise. + (bfd_elf32_mn10300_reloc): Delete unused function. + +Thu Mar 6 12:19:59 1997 Fred Fish + + * coffcode.h (coff_slurp_reloc_table): Pull duplicate declarations and + code fragment out of both legs of #ifdef RELOC_PROCESSING ... #endif + block. Use NULL for initializations of "ptr" rather than bare 0. + * coff-h8300.c: Fix typo in comment. + * coff-h8500.c: Ditto. + * coff-w65.c: Ditto + * coff-z8k.c: Ditto. + +Wed Mar 5 13:59:09 1997 Doug Evans + + * elf32-m32r.c (m32r_elf_do_10_pcrel_reloc): Fix overflow calc. + (m32r_elf_relax_section, m32r_elf_relax_delete_bytes, + m32r_elf_get_relocated_section_contents): First pass at relax support. + +Mon Mar 3 13:27:09 1997 Ulrich Drepper + + * elflink.h (elf_link_add_object_symbols): Use correct sh_size + entry for reading verdef records. + Use correct braces for computing increments of extverdaux and + exteverdef record pointers. + +Sun Mar 2 16:25:35 1997 Ian Lance Taylor + + * elflink.h (elf_link_find_version_dependencies): Check that + DEF_REGULAR is not set as well as checking that DEF_DYNAMIC is + set. + +Fri Feb 28 15:06:45 1997 Ian Lance Taylor + + * targets.c (bfd_default_vector): Make non-const. + (find_target): New static function, broken out of + bfd_find_target. + (bfd_set_default_target): New function. + (bfd_find_target): Call find_target. When defaulting, use + bfd_default_vector[0] if it is not NULL. + * libbfd-in.h (bfd_default_vector): Adjust declaration. + * bfd-in2.h, libbfd.h: Rebuild. + + * syms.c (bfd_is_local_label): Return false if the symbol has no + name. + * coff-i960.c (coff_i960_is_local_label_name): New function. + (coff_bfd_is_local_label_name): Define. + * coff-m68k.c (m68k_coff_is_local_label_name): New function. + (coff_bfd_is_local_label_name): Define. + * coff-rs6000.c (xcoff_is_local_label_name): New function. + (coff_bfd_is_local_label_name): Define. + * elf.c (_bfd_elf_is_local_label_name): Treat symbols beginning + with .. or _.L_ as local. + * elf32-i386.c (elf_i386_is_local_label_name): New function. + (bfd_elf32_bfd_is_local_label_name): Define. + * evax-alpha.c (evax_bfd_is_local_label_name): Treat symbols + beginning with $ as local. + +Thu Feb 27 18:36:23 1997 Ian Lance Taylor + + * aoutx.h (aout_link_write_symbols): Use bfd_is_local_label_name + rather than comparing against info->lprefix. + * cofflink.c (_bfd_coff_link_input_bfd): Likewise. + * elflink.h (elf_link_input_bfd): Likewise. + * linker.c (_bfd_generic_link_output_symbols): Likewise. + * xcofflink.c (xcoff_link_input_bfd): Likewise. + + * elfxx-target.h (bfd_elfNN_bfd_is_local_label_name): Define as + _bfd_elf_is_local_label_name if not already defined. + * elf.c (_bfd_elf_is_local_label_name): New function. + * elf-bfd.h (_bfd_elf_is_local_label_name): Declare. + + * coff-m88k.c (coff_bfd_is_local_label_name): Define. + (m88k_is_local_label_name): New static function. + + * coffcode.h (coff_bfd_is_local_label_name): Define as + _bfd_coff_is_local_label_name if not already defined. + * coffgen.c (_bfd_coff_is_local_label_name): New function. + * libcoff-in.h (_bfd_coff_is_local_label_name): Declare. + * libcoff.h: Rebuild. + + * targets.c (BFD_JUMP_TABLE_SYMBOLS): Change _bfd_is_local_label + to _bfd_is_local_label_name. + (bfd_target): Likewise. + * syms.c (bfd_is_local_label): Define as function, not macro. + (bfd_is_local_name): Define. + * libbfd.c (bfd_generic_is_local_label_name): Rename from + bfd_generic_is_local_label, and take a string rather than a + symbol. + * libbfd-in.h (_bfd_nosymbols_bfd_is_local_label): Don't define. + (_bfd_nosymbols_bfd_is_local_label_name): Define. + (bfd_generic_is_local_label): Don't declare. + (bfd_generic_is_local_label_name): Declare. + * bfd-in2.h, libbfd.h: Rebuild. + * All backends: Change local_label to local_label_name. + + * elf32-mips.c (struct mips_got_info): Add assigned_gotno field. + (mips_elf_relocate_got_local): Change return type to boolean. + Don't assume that the first zero entry is unassigned; instead, use + assigned_gotno. + (mips_elf_relocate_section): Check return value of + mips_elf_relocate_got_local. + (mips_elf_create_got_section): Initialize assigned_gotno field. + +Wed Feb 26 13:33:03 1997 Ian Lance Taylor + + * elflink.h (elf_link_input_bfd): Don't skip symbols from sections + that have no contents merely because linker_mark is not set. + +Tue Feb 25 18:51:35 1997 Stan Shebs + + * config.bfd (mips*-*-lnews*): New target. + * coff-mips.c (mips_relocate_section): Make assert compare + content byteorder instead of header byteorder. + (ecoff_biglittle_vec): New BFD, big-endian headers, little-endian + data. + * targets.c (bfd_target_vector): Add ecoff_biglittle_vec. + * configure.in (ecoff_biglittle_vec): Add case. + * configure: Update. + +Tue Feb 25 00:32:49 1997 Ian Lance Taylor + + * elf.c (elf_fake_sections): Use SHT_NOTE for any section whose + name begins with ".note". + (map_sections_to_segments): Add a PT_NOTE segment for any loadable + section whose name begins with ".note". + (get_program_header_size): Corresponding change. + + * elf32-mips.c (mips_elf_relocate_section): Check for misaligned + jal and for jal overflow. + +Mon Feb 24 17:53:14 1997 Ian Lance Taylor + + From Eric Youngdale : + * elflink.h (elf_link_add_archive_symbols): If a default symbol is + not found, try looking it up again without the version name. + (elf_link_add_object_symbols): Always link against the dynamic + symbol table of a dynamic object. When linking against a dynamic + object, include version strings in symbol names, and set up + version information. Add indirect symbols for default versions. + (elf_link_create_dynamic_sections): Add special version sections. + (struct elf_assign_sym_version_info): Define. + (struct elf_find_verdep_info): Define. + (NAME(bfd_elf,size_dynamic_sections)): Add verdefs parameter. Set + up version sections. + (elf_adjust_dynamic_symbol): Ignore indirect symbols. + (elf_link_find_version_dependencies): New static function. + (elf_link_assign_sym_version): New static function. + (elf_link_renumber_dynsyms): New static function. + (struct elf_final_link_info): Add symver_sec field. + (elf_bfd_final_link): Initialize finfo.symver_sec. Don't count + local symbols of a dynamic object. Handle DT_VER* constants. + (elf_link_output_extsym): Simplify BFD_ASSERT checking for a + dynamic object. Skip indirect symbols from ELF objects. Remove + the version name before choosing a hash bucket. Write out the + version information if appropriate. + (elf_link_input_bfd): Check for DYNAMIC, not ET_DYN. + * bfd-in.h (bfd_elf32_size_dynamic_sections): Update declaration. + (bfd_elf64_size_dynamic_sections): Likewise. + * bfd-in2.h: Rebuild. + * elf-bfd.h (struct elf_link_hash_entry): Add verinfo field. + Change elf_link_hash_flags to unsigned short. + (ELF_LINK_HIDDEN): Define. + (struct elf_obj_tdata): Add fields dynversym_hdr, dynverref_hdr, + dynverdef_hdr, dynversym_section, dynverdef_section, + dynverref_section, cverdefs, cverrefs, verdef, verref. + (elf_dynversym, elf_dynverdef, elf_dynverref): Define. + (_bfd_elf_swap_verdef_in, _bfd_elf_swap_verdef_out): Declare. + (_bfd_elf_swap_verdaux_in, _bfd_elf_swap_verdaux_out): Declare. + (_bfd_elf_swap_verneed_in, _bfd_elf_swap_verneed_out): Declare. + (_bfd_elf_swap_vernaux_in, _bfd_elf_swap_vernaux_out): Declare. + (_bfd_elf_swap_versym_in, _bfd_elf_swap_versym_out): Declare. + (_bfd_elf_slurp_version_tables): Declare. + * elf.c (_bfd_elf_swap_verdef_in): New function. + (_bfd_elf_swap_verdef_out): Likewise. + (_bfd_elf_swap_verdaux_in, _bfd_elf_swap_verdaux_out): Likewise. + (_bfd_elf_swap_verneed_in, _bfd_elf_swap_verneed_out): Likewise. + (_bfd_elf_swap_vernaux_in, _bfd_elf_swap_vernaux_out): Likewise. + (_bfd_elf_swap_versym_in, _bfd_elf_swap_versym_out): Likewise. + (_bfd_elf_print_private_bfd_data): Add DT_VER* constants. Print + version information if there is any. + (_bfd_elf_link_hash_newfunc): Initialize verinfo field. + (bfd_section_from_shdr): Handle SHT_GNU_ver* section types. + (elf_fake_sections): Handle .gnu.version* section names. + (assign_section_numbers): Handle SHT_GNU_ver* section types. + (_bfd_elf_slurp_version_tables): New function. + * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't include + version name in string entered in dynamic hash table. + * elfcode.h: Include fnmatch.h. + * elf32-i386.c (elf_i386_relocate_section): Handle a dynamic + symbol which was forced to become local. + * elf32-m68k.c (elf_m68k_relocate_section): Likewise. + * elf32-ppc.c (ppc_elf_relocate_section): Likewise. + * elf32-sparc.c (elf32_sparc_relocate_section): Likewise. + * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise. + +Fri Feb 21 16:15:18 1997 Jeffrey A Law (law@cygnus.com) + + * elf32-mn10200.c (mn10200_elf_final_link_relocate): Simplify + somewhat. + (mn10200_elf_relax_section): Correctly compute a symbol's value + when the symbol is local, but not in the same section as we are + relaxing. Implement abs24 -> abs16, imm24 -> imm16 and d24 -> d16 + relaxing. + +Fri Feb 21 13:55:14 1997 Doug Evans + + * elf32-m32r.c: Rewrite to use ELF backend linker. + Store lower 16 bits of addend in R_M32R_HI16_[SU]LO insns. + Add small data area support (R_M32R_SDA16). + * reloc.c: Document BFD_RELOC_M32R_SDA16. + * bfd-in2.h,libbfd.h: Regenerated. + +Thu Feb 20 23:50:31 1997 Jeffrey A Law (law@cygnus.com) + + * elf32-mn10200.c (mn10200_elf_relax_section): New function. + (mn10200_elf_relax_delete_bytes): Likewise. + (mn10200_elf_symbol_address_p): Likewise. + (mn10200_elf_get_relocated_section_contents): Likewise. + (bfd_elf32_bfd_relax_section): Define. + (bfd_elf32_bfd_get_relocated_section_contents): Likewise. + + * elf32-mn10200.c (mn10200_elf_final_link_relocate): New function. + (mn10200_elf_relocate_section): Likewise. + (elf_backend_relocate_section): Define. + +Tue Feb 18 15:31:48 1997 Fred Fish + + * reloc.c (struct reloc_howto_struct): Fix typo in comment. + * bfd-in2.h: Regenerated. + +Tue Feb 18 11:41:00 1996 Dawn Perchik + + * sysdep.h: Don't define errno in MSVC if error.h is included. + +Mon Feb 17 11:28:40 1997 Ian Lance Taylor + + * hp300hpux.c (convert_sym_type): Don't convert a secondary common + symbol into a weak undefined symbol; leave it as a common symbol. + +Fri Feb 14 19:08:03 1997 Ian Lance Taylor + + * elflink.h (elf_link_add_object_symbols): Don't issue a warning + about a symbol defined in a dynamic object if it has already been + defined in a regular object. + +Thu Feb 13 20:53:22 1997 Klaus Kaempf (kkaempf@progis.de) + + * makefile.vms: Add gcc flags to allow compiling with current gcc + snapshot + (targmatch.h): New dependency. + + * reloc.c (BFD_RELOC_ALPHA_CODEADDR): New relocation for + openVMS/Alpha. + * evax.h (ALPHA_R_CODEADDR): New relocation. + * evax-alpha.c (ALPHA_R_CODEADDR): 64 bit procedure relocation for + openVMS/Alpha. + * evax-etir.c (ALPHA_R_CODEADDR): Output object code for this + relocation. + * bfd-in2.h, libbfd.h: Rebuild. + + Restrict symbol length to 64 bytes, case preserving: + * evax-emh.c (_bfd_evax_write_emh): Remove case hacking. + * evax-misc.c (_bfd_evax_case_hack_symbol): Remove. + (_bfd_evax_length_hash_symbol): Added. + * evax-etir.c (_bfd_evax_write_etir): Call + _bfd_evax_length_hash_symbol before output of symbol. + * evax-egsd.c (_bfd_evax_write_egsd): Likewise. + * evax.h (flag_hash_long_names, flag_show_after_trunc): Remove. + + * evax-emh.c: Output filename to object file without path. + + * evax-egsd.c: New sections for local and global commons. + + * evax-alpha.c, evax-emh.c, evax-egsd.c, evax-etir.c, + evax-misc.c, evax.h: Remove 8 bit characters from copyright + notices. Replace AXP with Alpha. + +Wed Feb 12 18:10:30 1997 Ian Lance Taylor + + * sunos.c (sunos_create_dynamic_sections): We need the dynamic + sections if we are creating a shared library. + +Tue Feb 11 15:45:43 1997 Doug Evans + + * configure.host (i386-windows): Don't set host64=true. + +Tue Feb 11 15:27:32 1997 Ian Lance Taylor + + * elf32-mips.c (reloc_type): Add R_MIPS16_GPREL. + (elf_mips16_gprel_howto): New static variable. + (mips16_gprel_reloc): New static function. + (bfd_elf32_bfd_reloc_type_lookup): Handle BFD_RELOC_MIPS16_GPREL. + (mips_info_to_howto_rel): Handle R_MIPS16_GPREL. + (mips_elf_relocate_section): Handle R_MIPS16_GPREL. + * reloc.c (BFD_RELOC_MIPS16_GPREL): Define. + * bfd-in2.h, libbfd.h: Rebuild. + +Mon Feb 10 23:25:00 1997 Doug Evans + + * elf32-m32r.c (elf_m32r_howto_table): Change partial_inplace to true + for R_M32R_{16,32,24,HI16_ULO,HI16_SLO,LO16}. + +Fri Feb 7 12:39:11 1997 Ian Lance Taylor + + * elflink.h (elf_link_input_bfd): If we've discarded a section, + the output section will be the absolute section; don't print an + assertion message for that case when doing a relocateable link. + +Thu Feb 6 16:55:43 1997 Ian Lance Taylor + + * elf32-mips.c (FN_STUB, CALL_STUB, CALL_FP_STUB): Define. + (struct mips_elf_link_hash_entry): Add new fields fn_stub, + need_fn_sub, call_stub, and call_fp_stub. + (struct mips_elf_link_hash_table): Add field mips16_stubs_seen. + (mips_elf_link_hash_newfunc): Initialize new fields. + (mips_elf_link_hash_table_create): Likewise. + (mips_elf_relocate_section): Redirect relocations to use mips16 + stubs when appropriate. + (mips_elf_check_relocs): Attach stub sections to the appropriate + symbol. Set need_fn_stub when appropriate. + (mips_elf_always_size_sections): New static function. + (mips_elf_check_mips16_stubs): New static function. + (elf_backend_always_size_sections): Define. + * elf-bfd.h (struct elf_obj_tdata): Add local_stubs field. + + * elflink.h (elf_link_input_bfd): Discard local symbols that are + attached to sections which are not being included in the link. + +Wed Feb 5 13:20:17 1997 Ian Lance Taylor + + * cofflink.c (_bfd_coff_generic_relocate_section): Ignore the + symbol value when computing the addend for a pc_relative + pcrel_offset reloc. + +Mon Feb 3 11:54:06 1997 Ian Lance Taylor + + * cofflink.c (_bfd_coff_generic_relocate_section): If doing a + relocateable link, just skip pc_relative pcrel_offset relocs. + * coff-arm.c (coff_arm_rtype_to_howto): Return a different howto + structure for an ARM26 reloc which can be resolved. + (coff_arm_adjust_symndx): Only convert ARM26 to ARM26D if the + reloc can be resolved. + + * coff-h8300.c (h8300_reloc16_extra_cases): Correct off by one + error in overflow check for R_RELBYTE. + +Fri Jan 31 14:07:27 1997 Ian Lance Taylor + + * ieee.c (ieee_slurp_section_data): Pick up the start address. + From Mark Rasin . + + * aoutx.h (aout_link_write_symbols): Don't apply discard_l to + debugging symbols. + +Wed Jan 29 00:00:49 1997 Jeffrey A Law (law@cygnus.com) + + * elf32-mn10200.c (reloc_type): Add 16bit pc-relative reloc. + (elf_mn10200_howto_table): Likewise. + (mn10200_reloc_map): Likewise. + +Mon Jan 27 12:07:35 1997 Doug Evans + + * reloc.c: Add relocs BFD_RELOC_M32R_{HI16_[US]LO,LO16}. + * bfd-in2.h, libbfd.h: Regenerated. + * elf32-m32r.c: Add support for them. + +Mon Jan 27 12:25:02 1997 Ian Lance Taylor + + * aout-arm.c (MY_swap_std_reloc_in): Remove unused r_length. + * elf32-ppc.c (ppc_elf_check_relocs): Remove unused plt. + * riscix.c (MY_final_link_callback): Define to dummy value. + + * elf32-i386.c (elf_i386_size_dynamic_sections): When checking for + relocations against the text segment, look up the output name of + the reloc section. + * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise. + * elf32-mips.c (mips_elf_size_dynamic_sections): Likewise. + * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise. + * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise. + * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise. + +Thu Jan 16 17:45:57 1997 Ian Lance Taylor + + * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Change type of + auxiliary_filters parameter to be const char * const *. Accept a + NULL terminated array. + * bfd-in.h (bfd_elf32_size_dynamic_sections): Update declaration. + (bfd_elf32_size_dynamic_sections): Update declaration. + * bfd-in2.h: Rebuild. + +Wed Jan 15 11:21:32 1997 Ian Lance Taylor + + * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Treat a + NOTYPE symbol in a text section as a FUNC symbol. + + * coffcode.h (coff_compute_section_file_positions): Force + relocbase to be aligned to COFF_DEFAULT_SECTION_ALIGNMENT_POWER. + +Tue Jan 14 08:46:33 1997 Doug Evans + + * libaout.h (machine_type): Reserve several values for sparclet. + +Mon Jan 6 13:28:35 1997 Jeffrey A Law (law@cygnus.com) + + * elf32-mn10200.c (elf_mn10200_howto): Don't ever set partial-inplace. + Use bfd_elf_generic_reloc as special function for all relocs. + (bfd_elf32_mn10200_reloc): Remove unnecessary function. + + * elf32-mn10200.c (elf_mn10200_howto): Set pcrel_offset for + 24bit pc-relative reloc. + +Fri Jan 3 16:54:08 1997 Jeffrey A Law (law@cygnus.com) + + * reloc.c: Add BFD_RELOC_24. + * elf32-mn10200.c (enum reloc_type): Add 24bit and pcrel relocs. + (elf_mn10200_howto, mn10200_reloc_map): Corresponding changes. + * bfd-in2.h, libbfd.h: Rebuilt. + +Fri Jan 3 16:58:31 1997 Richard Henderson + + elf64-alpha multiple .got rewrite: + + * elf-bfd.h (struct elf_backend_data): Add always_size_sections entry. + (bfd_elf*_mkobject): Don't define here ... + * elfxx-target.h: ... but rather here. Default always_size_sections + hook to NULL. + * elf.c (elf_mkobject): Rename to bfd_elf_mkobject, since that was + what the #defines in elf-bfd.h transmuted it to anyway. + + * section.c: Add SEC_LINKER_CREATED flag. + * bfd-in2.h: Rebuild. + * elf32-i386.c (elf_i386_check_relocs): Add SEC_LINKER_CREATED to + relocation section flags. + (elf_i386_size_dynamic_sections): Use SEC_LINKER_CREATED instead of + SEC_IN_MEMORY to recognize generated bits. + * elf32-m68k.c (elf_m68k_check_relocs, elf_m68k_size_dynamic_sections): + Likewise. + * elf32-mips.c (mips_elf_final_link, mips_elf_create_dynamic_sections, + mips_elf_create_compact_rel_section, mips_elf_create_got_section, + mips_elf_check_relocs, mips_elf_size_dynamic_sections): Likewise. + * elf32-ppc.c (ppc_elf_create_linker_section, + ppc_elf_size_dynamic_sections): Likewise. + * elf32-sparc.c (elf32_sparc_check_relocs, + elf32_sparc_size_dynamic_sections): Likewise. + * elflink.c (_bfd_elf_create_got_section): Add SEC_LINKER_CREATED to + section flags. + (_bfd_elf_create_dynamic_sections): Likewise. + (_bfd_elf_make_linker_section_rela): Likewise. + * elflink.h (elf_link_create_dynamic_sections): Likewise. + (bfd_elf,size_dynamic_sections): Call the always_size_sections hook. + (elf_bfd_final_link): Use SEC_LINKER_CREATED instead of SEC_IN_MEMORY + to identify generated bits. + (elf_link_input_bfd): Likewise. + + * elf64-alpha.c: Rewrite everything touching relocations. + +Tue Dec 31 14:44:50 1996 Ian Lance Taylor + + * config.bfd (mips*el-*-linux*): New target. + (mips*-*-linux*): New target. + + * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Clean up. + Return a useful value. + + * Makefile.in (ALL_CFLAGS): Add -D_GNU_SOURCE. + + * configure.in: Check ac_cv_func_mmap_fixed_mapped, not + ac_cv_func_mmap. + * configure: Rebuild. + * configure.host: Use ac_cv_func_mmap_fixed_mapped instead of + ac_cv_func_mmap in bfd/configure.host. + + * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Add + filter_shlib and auxiliary_filter_shlib parameters. + * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_AUXILIARY and + DT_FILTER. + * bfd-in.h (bfd_elf32_size_dynamic_sections): Update declaration. + (bfd_elf64_size_dynamic_sections): Likewise. + * bfd-in2.h: Rebuild. + +Mon Dec 30 18:48:52 1996 Ian Lance Taylor + + * xcofflink.c (xcoff_build_ldsyms): When exporting all defined + symbols, don't export a symbol which is defined by an object in an + archive which contains shared objects. + +Mon Dec 30 11:54:56 1996 Ian Lance Taylor + + * libbfd.c: Patch up the mmap code so that it is only built if BFD + is configured with --with-mmap. + +Fri Dec 27 20:56:41 1996 Fred Fish + + * TODO: Correct a misspelling. + +Fri Dec 27 11:48:12 1996 H.J. Lu + + * elflink.h (elf_buckets): Add some more values for larger + binaries. + +Thu Dec 26 18:36:54 1996 Ian Lance Taylor + + * Makefile.in (install): Move subdir_do out of conditional. From + Fred Fish . + +Wed Dec 18 10:04:30 1996 Jeffrey A Law (law@cygnus.com) + + * elf32-mn10200.c (enum reloc_type): Enable basic 8, 16, and + 32 bit relocs. + (elf_mn10200_howto_table): Likewise. + (mn10200_reloc_map): Likewise. + +Tue Dec 17 11:09:36 1996 Ian Lance Taylor + + * elf32-mips.c (mips_elf_add_symbol_hook): Add 1 to the value of a + mips16 symbol during the link. + (mips_elf_finish_dynamic_symbol): Subtract 1 from the value of a + mips16 symbol. + (mips_elf_link_output_symbol_hook): New static function. + (elf_backend_link_output_symbol_hook): Define. + + * elf.c (bfd_elf_print_symbol): Print the st_other field if it is + not zero. + +Mon Dec 16 14:38:39 1996 Ian Lance Taylor + + * elf.c (bfd_section_from_shdr): Don't check for reloc sections + against SEC_DEBUGGING sections here (revert patch of December 5). + * elfcode.h (elf_object_p): Check for them here, instead. + +Sun Dec 15 14:46:06 1996 Ian Lance Taylor + + * elfcode.h (elf_slurp_reloc_table): Add dynamic parameter. + * elf.c (_bfd_elf_canonicalize_reloc): Pass new argument to + slurp_reloc_table. + (_bfd_elf_get_dynamic_reloc_upper_bound): New function. + (_bfd_elf_canonicalize_dynamic_reloc): New function. + * elf-bfd.h (struct elf_size_info): Update declaration of + slurp_reloc_table. + (_bfd_elf_get_dynamic_reloc_upper_bound): Declare. + (_bfd_elf_canonicalize_dynamic_reloc): Declare. + * elfxx-target.h: Use new dynamic reloc routines by default. + * elf64-mips.c (mips_elf64_slurp_reloc_table): Add dynamic + parameter. + +Fri Dec 13 13:18:49 1996 Dan Wilder + + * coffcode.h (coff_set_flags): Use MC68KBCSMAGIC for bfd_arch_m68k + if NAMES_HAVE_UNDERSCORE is defined. + +Fri Dec 13 11:13:23 1996 Doug Evans + + * libaout.h (enum machine_type): Change M_SPARCLET from 142 to 131. + +Thu Dec 12 15:07:20 1996 Michael Meissner + + * elf32-ppc.c (ppc_elf_check_relocs): Move R_PPC_PLTREL24 into the + supported relocs. + +Thu Dec 12 14:55:41 1996 Ian Lance Taylor + + * elflink.h (elf_link_add_object_symbols): Only add a weak + symbol if the real definition is in the dynamic symbol table. + After finding the real definition, then, if it is dynamic, add the + weak symbol to the dynamic symbol table. + + * coff-aux.c (coff_m68k_aux_link_add_one_symbol): Make static. + + * ppcboot.c (ppcboot_set_arch_mach): Don't define; it's a + function. + (ppcboot_bfd_print_private_bfd_data): Don't take the address of an + array. + +Tue Dec 10 23:23:52 1996 Jeffrey A Law (law@cygnus.com) + + * elf32-mn10300.c (reloc_type): Remove big endian mn10300 reloc + variants. + (elf32_mn10300_howto_table, mn10300_reloc_map): Likewise. + (bfd_elf32_mn10300_reloc): Write data in little endian format. + * reloc.c: Remove mn10300 big endian relocs. + * bfd-in2.h, libbfd.h: Rebuilt. + + * elf32-mn10200.c: Update from elf32-mn10300.c. + +Fri Dec 6 15:18:05 1996 Jeffrey A Law (law@cygnus.com) + + * elf32-mn10300.c (elf_symbol_leading_char): Define. + + * elf32-mn10300.c: Add some comments. + +Fri Dec 6 17:16:43 1996 Ian Lance Taylor + + * ihex.c (ihex_scan): Always initialize buf before jumping to + error_return. + (ihex_read_section): Likewise. + +Thu Dec 5 22:29:18 1996 Jeffrey A Law (law@cygnus.com) + + * elf32-mn10300.c (elf_mn10300_howto_table): Don't set partial- + inplace for most relocs. + +Thu Dec 5 13:24:46 1996 Ian Lance Taylor + + * elflink.h (elf_link_add_object_symbols): Calling check_relocs + even if SEC_ALLOC is not set. + * elf32-i386.c (elf_i386_check_relocs): Don't check SEC_ALLOC + when deciding whether to copy a reloc into a shared object. + (elf_i386_relocate_section): Likewise. + * elf32-sparc.c (elf32_sparc_check_relocs): Likewise. + (elf32_sparc_relocate_section): Likewise. + * elf32-i386.c (elf_i386_check_relocs): Don't set SEC_ALLOC in a + reloc section if it is not set in the source section. + * elf32-sparc.c (elf32_sparc_check_relocs): Likewise. + * elf.c (bfd_section_from_shdr): Mark a reloc section associated + with a SEC_DEBUGGING section as SEC_DEBUGGING. + +Wed Dec 4 14:18:13 1996 Michael Meissner + + * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): #if 0 code that + expects a .got.plt until we actually create it. + +Mon Dec 2 12:13:51 1996 Ian Lance Taylor + + * cofflink.c (_bfd_coff_generic_relocate_section): Print an error + message for bfd_reloc_outofrange, rather than aborting. From + Philippe De Muyter . + + * cofflink.c (_bfd_coff_final_link): If there aren't any relocs in + a relocateable link, don't try to process them. From Heinz Wrobel + . + +Mon Dec 2 00:39:24 1996 Jeffrey A Law (law@cygnus.com) + + * elf32-mn10300.c (mn10300_info_howto): Renamed from + mn10300_info_howto_rel. Tweak reloc argument to be an + Elf32_Internal_Rela. + (USE_RELA): Define instead of USE_REL. + (elf_info_to_howto, elf_info_howto_rel): Corresponding changes. + +Sun Dec 1 00:18:59 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) + + * configure.in, configure: Handle mips*-sgi-irix6*. + * irix-core.c (irix_core_core_file_p): Accept CORE_MAGICN32 + core files. + +Wed Nov 27 12:10:25 1996 Ian Lance Taylor + + * elf32-i386.c (elf_i386_relocate_section): Warn about a + relocation against a symbol defined in a section with no output + section. + +Tue Nov 26 11:07:31 1996 Ian Lance Taylor + + * aclocal.m4 (BFD_CC_FOR_BUILD): Don't require AC_C_CROSS. + * configure, config.in: Rebuild with autoconf 2.12. + + * elf-bfd.h (struct elf_link_hash_entry): Add other field. + * elf.c (_bfd_elf_link_hash_newfunc): Initialize other field. + (swap_out_syms): Set st_other from existing st_other field. + * elflink.h (elf_link_add_object_symbols): Store st_other in hash + table other field. + (elf_link_output_extsym): Set the other field from the global hash + table entry. + * elf32-mips.c (enum reloc_type): Add R_MIPS16_26. + (elf_mips16_jump_howto): New static variable. + (mips16_jump_reloc): New static function. + (bfd_elf32_bfd_reloc_type_lookup): Handle BFD_RELOC_MIPS16_JMP. + (mips_info_to_howto_rel): Handle R_MIPS16_26. + (mips_elf_relocate_section): Handle R_MIPS16_26. Handle R_MIPS_26 + to a mips16 symbol. + * reloc.c (BFD_RELOC_MIPS16_JMP): Add to list of relocs. + * bfd-in2.h, libbfd.h: Rebuild. + * cpu-mips.c (arch_info_struct): Add mips:16 entry. + +Mon Nov 25 11:23:32 1996 Ian Lance Taylor + + * configure.host: Use long long for mips-sgi-irix6*. + + * coffswap.h (coff_swap_scnhdr_out): Make line number overflow + only a warning. From Philippe De Muyter . + +Mon Nov 25 08:52:29 1996 Jeffrey A Law (law@cygnus.com) + + * elf32-mn10300.c (bfd_elf32_mn10300_reloc): New function. + (enum reloc_type): Add more reloc types. + (elf32_mn10300_howto_table): Update for new reloc types. + (elf32_mn10300_reloc_map): Update for new reloc types. + * reloc.c: Add some new relocs for the mn10300 series. + * bfd-in2.h, libbfd.h: Rebuilt. + +Sat Nov 23 13:26:18 1996 Jeffrey A Law (law@cygnus.com) + + * som.c (setup_sections): Don't lose for a space which has + no data, but some symbols. + +Fri Nov 22 11:32:13 1996 Ian Lance Taylor + + * sunos.c (struct sunos_link_hash_table): Add got_needed field. + (sunos_link_hash_table_create): Initialize got_needed. + (sunos_create_dynamic_sections): Only set .got section size if it + is not already set. Set got_needed. + (bfd_sunos_size_dynamic_sections): Check got_needed. Only set + sdynptr, and only handle dynamic sections, if dynamic sections are + needed. + (sunos_scan_std_relocs): Pass false to create_dynamic_sections. + Initialize .got section. + (sunos_scan_ext_relocs): Likewise. + (sunos_write_dynamic_symbol): Set up PLT entry even if this is not + a dynamic symbol. + (sunos_finish_dynamic_link): Check got_needed. Only set up + dynamic linking information if needed. + +Thu Nov 21 10:31:31 1996 Rob Savoye (rob@cygnus.com) + + * config.bfd: Added VersaDOS format to the Ericsson configuration. + +Wed Nov 20 16:31:31 1996 Jeffrey A Law (law@cygnus.com) + + * elf32-mn10300.c: Rough cut at relocs for the mn10300. + +Wed Nov 13 08:12:38 1996 Jeffrey A Law (law@cygnus.com) + + * Makefile.in (elf32-d10v.o): Don't depend on elf/d10v.h + anymore. + +Tue Nov 12 13:30:00 1996 Dawn Perchik + + * filemode.c: Include sysdep.h. + * ihex.c: Add casts to eliminate compiler warnings. + * sunos.c: Add casts to eliminate compiler warnings. + +Mon Nov 11 10:37:02 1996 Michael Meissner + + * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Create .got.plt + section. + (ppc_elf_check_relocs): Add support for R_PPC_LOCAL24PC. Make + appropriate relocations in the .so file if shared. + (ppc_elf_relocate_section): Ditto. + +Tue Oct 29 15:03:02 1996 Doug Evans + + * elf32-m32r.c (elf_m32r_howto_table, R_M32R_24): Use + complain_overflow_unsigned. + +Tue Oct 29 12:53:46 1996 Martin M. Hunt + + * elf32-d10v.c (elf_d10v_howto_table): Don't complain on + overflows for R_D10V_16 and R_D10V_18. + +Tue Oct 29 13:23:53 1996 Ian Lance Taylor + + * ieee.c (ieee_write_section_part): Use LMA rather than VMA. + (do_with_relocs): Likewise. + (do_as_repeat): Likewise. + (copy_expression): Likewise. + +Fri Oct 25 16:56:40 1996 Ian Lance Taylor + + * ieee.c (ieee_write_external_part): Correctly record whether + there is an external part. + +Thu Oct 24 09:08:47 1996 Stu Grossman (grossman@critters.cygnus.com) + + * aclocal.m4, configure: Set USE_BINARY_FOPEN for *-*-windows. + +Wed Oct 23 00:20:34 1996 Ian Lance Taylor + + * xcofflink.c (bfd_xcoff_import_symbol): Don't allocate ldsym. + Store import file index in ldindx. + (xcoff_build_ldsyms): Assume that ldsym was not previously + allocated. For an imported symbol, copy ldindx into l_ifile. + +Tue Oct 22 17:22:43 1996 Ian Lance Taylor + + * binary.c (binary_set_section_contents): Ignore sections which + don't have SEC_LOAD and SEC_ALLOC set. + +Mon Oct 21 12:13:05 1996 Jeffrey A Law (law@cygnus.com) + + * linker.c (_bfd_generic_final_link): Avoid losing static + symbols in the .bss section. + +Mon Oct 21 10:54:58 1996 Ian Lance Taylor + + * elf32-mips.c (elf_mips_howto_table): Describe R_MIPS_64. + (mips32_64bit_reloc): New static function. + (mips_reloc_map): Add entry for BFD_RELOC_64. + (mips_elf_relocate_section): Handle R_MIPS_64. + + * linker.c (default_indirect_link_order): Print an error message + when attempting to do a relocateable link with different object + file formats, rather than calling abort. + +Thu Oct 17 10:43:29 1996 Doug Evans + + * reloc.c (m32r relocs): Rename them. + * bfd-in2.h, libbfd.h: Regenerated. + * elf32-m32r.c: Update. + (m32r_elf_10_pcrel_reloc): New function. + (elf_m32r_howto_table, R_M32R_10_PCREL entry): Use it. + (elf_m32r_howto_table, R_M32R_24 entry): Fix {src,dst}_masks. + +Wed Oct 16 11:24:35 1996 Jeffrey A Law (law@cygnus.com) + + * linker.c (_bfd_generic_final_link): Set "linker_mark" for + all sections that will be included in the output file. + (_bfd_generic_link_output_symbols): Discard symbols in sections + which are being discarded. + +Tue Oct 15 12:40:41 1996 Ian Lance Taylor + + * VERSION: Bump for new relocation. + + * hosts/i386bsd.h: If NBPG is not defined, define it as + PAGE_SIZE, for recent versions of FreeBSD. + +Mon Oct 14 12:37:26 1996 Ian Lance Taylor + + * configure.host: Use `long long' as the 64 bit type on a Solaris + host, since both gcc and the SunPRO compilers support it. + +Mon Oct 14 11:17:24 1996 Richard Henderson + + * reloc.c: Create a new BFD_RELOC_ALPHA_ELF_LITERAL. It was a + mistake to have reused the ECOFF LITERAL for ELF since they have + different semantics. + * elf64-alpha.c (elf_reloc_map): Map from ELF_LITERAL. + * bfd-in2.h, libbfd.h: Rebuild. + + * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Trap .got + section overflow. + + * elf64-alpha.c (elf64_alpha_relocate_section): Do not emit a + dynamic relocation for an undefweak symbol when we are building + a static executable. + +Thu Oct 10 11:15:06 1996 Stan Shebs + + * mpw-make.sed (config.bfd, targmatch.sed): Edit references to + point explicitly to srcdir. + (targmatch.h): Edit references to point explicitly to objdir. + +Thu Oct 10 14:14:23 1996 Ian Lance Taylor + + * config.bfd: When setting targ_cpu, don't get confused by + linux-gnu. + +Tue Oct 8 08:51:19 1996 Stu Grossman (grossman@critters.cygnus.com) + + * configure.host: Add support for windows host (a build done + under the Microsoft build environment). + +Tue Oct 8 11:40:16 1996 Ian Lance Taylor + + * elflink.h (elf_link_add_object_symbols): If a symbol is a weak + definition in a dynamic object, add it to the dynamic symbol table + if any dynamic object mentions it. Reverts part of last patch. + + * sunos.c (struct sunos_link_hash_table): Add got_base field. + (sunos_link_hash_table_create): Initialize got_base. + (bfd_sunos_size_dynamic_sections): If the .got section is more + than 0x1000 bytes, set __GLOBAL_OFFSET_TABLE_ and got_base to + 0x1000. + (sunos_check_dynamic_reloc): Subtract got_base from a base + relative relocation. + + * elf32-mips.c (elf_mips_isa): New static function. + (_bfd_mips_elf_merge_private_bfd_data): Don't warn about linking + -mips1 and -mips2 code together, or -mips3 and -mips4 code. + +Mon Oct 7 11:44:17 1996 Ian Lance Taylor + + * archive.c (do_slurp_coff_armap): Only treat archive as little + endian for i960 COFF. + +Fri Oct 4 13:49:01 1996 Ian Lance Taylor + + * coffcode.h (coff_compute_section_file_positions): Adjust sofar + by the change in size of the section when EXEC_P is not set. + + * coff-m68k.c (coff_rtype_to_howto): Define if not defined. + (m68kcoff_rtype_to_howto): New static function. + * cf-m68klynx.c (coff_m68k_lynx_rtype_to_howto): Add the section + VMA to the addend for a PC relative reloc. + + * dep-in.sed: Rework backslash loop a bit to avoid bug in sed on + HP/UX 10.20. + * Makefile.in: Rebuild dependencies. + + * dep-in.sed: Remove ../bfd/sysdep.h, since it will appear when + som.h is included. + +Fri Oct 4 11:41:39 1996 Jeffrey A Law (law@cygnus.com) + + * Makefile.in: Remove explicit dependencies for mn10200 and + mn10300 files. + (ALL_MACHINE_CFILES): Add cpu-mn10200.c and cpu-mn10300.c. + (BFD32_BACKENDS_CFILES): Add elf32-mn10200.c and elf32-mn10300.c + (dependencies): Rebuilt. + +Thu Oct 3 16:57:51 1996 Ian Lance Taylor + + * cofflink.c (coff_link_add_symbols): Set obj_coff_keep_syms + during this function. + + * elflink.c (_bfd_elf_create_linker_section): Only use an existing + section if the flags are compatible. + + * configure.in: Add havevecs, and put it in tdefaults. + * mpw-config.in: Likewise. + * configure: Rebuild. + * targmatch.sed: New file; a sed script to build targmatch.h from + config.bfd. + * config.bfd: Add #if, #endif, and comments for targmatch.h. + * targets.c: Include "fnmatch.h". + (struct targmatch): Define. + (bfd_target_match): Define by including targmatch.h. + (bfd_find_target): If the target is not found by name, search for + it as a configuration triplet. + * Makefile.in: Rebuild dependencies. + (BFD32_BACKENDS): Add aout-arm.o, aout-sparcle.o, hp300bsd.o, + i386dynix.o, m68k4knetbsd.o, and riscix.o. + (BFD32_BACKENDS_CFILES): Add aout-arm.c, aout-sparcle.c, + hp300bsd.c, i386dynix.c, m68k4knetbsd.c, and riscix.c. + (HFILES): Add targmatch.h. Also, alphabetize and reindent. + (CFILES): Remove i386dynix.c and hp300bsd.c. + (targmatch.h): New target. + (do_clean): Remove targmatch.h. + + * configure.in: Add BFD_NEED_DECLARATION(getenv). + * acconfig.h: Add NEED_DECLARATION_GETENV. + * configure, config.in: Rebuild. + * sysdep.h: If NEED_DECLARATION_GETENV, declare getenv. + * aout-adobe.c (aout_adobe_object_p): Don't declare getenv. + +Thu Oct 3 09:29:09 1996 Jeffrey A Law (law@cygnus.com) + + * cpu-mn10x00.c, elf32-mn10x00: Removed. + * cpu-mn10200.c, cpu-mn10300.c: New files. + * elf32-mn10200.c, elf32-mn10300.c: New files. + * Makefile.in: Break mn10x00 support into two separate + configurations, mn10200 and mn10300. + * archures.c, config.bfd, configure.in, elf.c, targets.c: Likewise. + * bfd-in2.h, configure: Rebuilt. + +Thu Oct 3 15:38:19 1996 Jason Molenda (crash@godzilla.cygnus.co.jp) + + * Makefile.in (do_clean): Move config.log to do_distclean. + +Wed Oct 2 21:40:55 1996 Jeffrey A Law (law@cygnus.com) + + * cpu-mn10x00.c, elf32-mn10x00.c: New files. + * Makefile.in (ALL_MACHINES): Add cpu-mn10x00.o. + (BFD32_BACKENDS): Similarly for elf32-mn10x00.o. + (elf32-mn10x00.o): Add dependencies. + * archures.c (enum bfd_architecture): Add bfd_arch_mn10x00. + (bfd_mn10x00_arch): Declare. + (bfd_archures_list): Add bfd_mn10x00_arch. + * config.bfd: Add mn10x00-*-*. + * configure.in: Add bfd_elf32_mn10x00_vec. + * elf.c (prep_headers): Handle bfd_arch_mn10x00. + * targets.c (bfd_elf32_mn10x00_vec): Declare. + (bfd_target_vector): Add bfd_elf32_mn10x00_vec. + * bfd-in2.h, configure: Rebuilt. + +Wed Oct 2 15:46:45 1996 Klaus Kaempf + + openVMS/Alpha: Provide filename and case_hack flags via + symbol table from gas. + Add case_hack code for symbol output from vax/vms. + * evax-alpha.c (evax_initialize): Remove filename handling, + filename is provided via symbol table. + (evax_get_symtab): Use local symbol count when setting up table. + * evax-egsd.c (_bfd_evax_slurp_egsd): Print correct name when + debugging. + (_bfd_evax_write_egsd): Skip file name symbol. + * evax-emh.c (get_vms_time_string): Local function now. + (_bfd_evax_write_emh): Extract source filename and case_hack flags + from symbol table. + * evax_write_etir (_bfd_evax_write_etir): Pass all symbol names + through _bfd_evax_case_hack_symbol. + * evax-misc.c (hash_string, _bfd_evax_case_hack_symbol): New + functions. + (_bfd_evax_basename): Removed. + (_bfd_get_vms_time_string): Moved to evax-emh.c. + * evax.h (evax_private_data_struct): Remove filename. + (flag_hash_long_names, flag_show_after_trunc, + flag_no_hash_mixed_case, vms_name_mapping): New flags for + vms_case_hack. + +Wed Oct 2 12:02:02 1996 Ian Lance Taylor + + * freebsd.h (N_GET_MAGIC_NET): Don't use ntohl. + (N_GETMID_NET, N_GETFLAG_NET): Likewise. + (NO_SWAP_MAGIC): Don't define. + (SWAP_MAGIC): Define. + + * cofflink.c (_bfd_coff_link_input_bfd): Don't crash if there is + no hash table entry for a global symbol. + +Tue Oct 1 16:14:22 1996 Joel Sherrill + + * config.bfd (mips*-*-rtems*): New target, like mips*-*-elf*. + +Tue Oct 1 12:31:39 1996 Ian Lance Taylor + + * cofflink.c (coff_link_add_symbols): Don't override a meaningful + symbol type with T_NULL. Warn if symbol type changes. Based on + patch from Philippe De Muyter . + + * elflink.h (elf_link_add_object_symbols): Only put a symbol from + a dynamic object in the dynamic symbol table if it is referenced + or defined by a regular object. + +Mon Sep 23 13:33:00 1996 Ian Lance Taylor + + * elf32-ppc.c (ppc_elf_add_symbol_hook): Create the .sbss section + by hand, rather than by calling bfd_make_section. + +Mon Sep 23 09:23:41 1996 Doug Evans + + * reloc.c: Rename m32r relocs. + * bfd-in2.h, libbfd.h: Rebuilt. + * elf32-m32r.c: Update. + +Fri Sep 20 11:43:43 1996 Ian Lance Taylor + + * aoutx.h (aout_link_input_section_ext): When doing a relocateable + link, adjust the symbol index of a base relative reloc. Don't + change the addend of a PC relative reloc if pcrel_offset is set. + * sunos.c (bfd_sunos_size_dynamic_sections): Don't do anything for + a relocateable link. + + * reloc.c (bfd_perform_relocation): Apply the relocation even if + it is zero, in case src_mask matters. + (bfd_install_relocation): Likewise. + +Thu Sep 19 11:03:06 1996 Ian Lance Taylor + + * xcofflink.c (xcoff_link_add_symbols): Always initialize + keep_syms. + (_bfd_xcoff_bfd_final_link): Don't set target_index + to an uninitialized value. + +Tue Sep 17 14:18:31 1996 Ian Lance Taylor + + * coffcode.h (coff_slurp_line_table): Warn about illegal symbol + indices, rather than crashing. + (coff_slurp_reloc_table): Likewise. Check whether the howto field + is NULL. + * coff-sh.c (sh_relocate_section): Check for an illegal symbol + index. + +Mon Sep 16 12:39:36 1996 Ian Lance Taylor + + * coff-arm.c (aoutarm_std_reloc_howto): Change dst_mask for ARM26D + reloc to 0. + (coff_arm_adjust_symndx): New static function. + (coff_adjust_symndx): Define. + + * srec.c (srec_scan): Accept multiple symbols on a single line. + From Pascal Martin . + + * README: New file. + +Fri Sep 13 14:32:42 1996 Doug Evans + + * aoutf1.h (MY_bfd_merge_private_bfd_data): Define. + (sunos_merge_private_bfd_data): New function. + +Fri Sep 13 15:50:57 1996 Ian Lance Taylor + + * bfd.c (bfd_copy_private_bfd_data): Switch on output BFD rather + than input BFD. + (bfd_merge_private_bfd_data): Likewise. + * section.c (bfd_copy_private_section_data): Likewise. + * syms.c (bfd_copy_private_symbol_data): Likewise. + * bfd-in2.h: Rebuild. + * aout-target.h (MY_bfd_copy_private_section_data): Check that + both BFD's are the right flavour. + * ecoff.c (_bfd_ecoff_bfd_copy_private_bfd_data): Likewise. + * elf.c (_bfd_elf_copy_private_symbol_data): Likewise. + * elf32-mips.c (_bfd_mips_elf_copy_private_bfd_data): Likewise. + (_bfd_mips_elf_merge_private_bfd_data): Likewise. + * elf32-ppc.c (ppc_elf_copy_private_bfd_data): Likewise. + (ppc_elf_merge_private_bfd_data): Likewise. + * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Likewise. + * peicode.h (pe_bfd_copy_private_section_data): Likewise. + + * elf32-hppa.c (elf_hppa_howto_table): Fill in some fields for + R_PARISC_DIR32, so that _bfd_stab_section_find_nearest_line passes + its sanity check. + +Thu Sep 12 11:45:57 1996 Doug Evans + + * reloc.c: Add m32r relocs. + * bfd-in2.h, libbfd.h: Rebuilt. + * cpu-m32r.c,elf32-m32r.c: New files. + +Thu Sep 12 11:10:05 1996 Ian Lance Taylor + + * ieee.c (ieee_vec): Set symbol_leading_char field to '_'. + +Wed Sep 11 11:57:56 1996 Ian Lance Taylor + + * tekhex.c (first_phase): Change type parameter from char to int. + (out): Likewise. + (pass_over): Change func to expect int, not char. + + * elf.c (assign_file_positions_for_segments): Test SEC_ALLOC + rather than SEC_LOAD when aligning the file offset for the first + section in a segment. + +Tue Sep 10 16:18:30 1996 Fred Fish + + * syms.c (coff_section_type): Make arg const. + * irix-core.c (irix_core_core_file_p): Remove extraneous extra arg + to make_bfd_asection(). + * elf-bfd.h (bfd_section_from_phdr): Add prototype. + * elfcode.h (bfd_section_from_phdr): Remove prototype. + (_bfd_elf_stringtab_init): Remove prototype. + + * netbsd-core.c (swap_abort): Add prototype. + * aix386-core.c (swap_abort): Ditto & make static + * hpux-core.c (swap_abort): Ditto & make static. + * irix-core.c (swap_abort): Ditto & make static. + * ptrace-core.c (swap_abort): Ditto & make static. + * trad-core.c (swap_abort): Ditto & make static. + * coffswap.h (coff_swap_reloc_in): Ditto. + (coff_swap_reloc_out): Ditto. + (coff_swap_filehdr_in): Ditto. + (coff_swap_filehdr_out): Ditto. + (coff_swap_sym_in): Ditto. + (coff_swap_sym_out): Ditto. + (coff_swap_aux_in): Ditto. + (coff_swap_aux_out): Ditto. + (coff_swap_lineno_in): Ditto. + (coff_swap_lineno_out): Ditto. + (coff_swap_aouthdr_in): Ditto. + (coff_swap_aouthdr_out): Ditto. + (coff_swap_scnhdr_in): Ditto. + (coff_swap_scnhdr_out): Ditto. + * ihex.c (ihex_sizeof_headers): Ditto. + * tekhex.c (getsym): Ditto. + (find_chunk): Ditto & make static. + (insert_byte): Ditto. + (first_phase): Ditto. + (pass_over): Ditto. + (tekhex_get_symtab): Ditto & make static. + (tekhex_get_symtab_upper_bound): Ditto & make static. + (tekhex_mkobject): Ditto. + (tekhex_object_p): Ditto. + (move_section_contents): Ditto. + (tekhex_get_section_contents): Ditto. + (tekhex_set_arch_mach): Ditto & make static. + (tekhex_set_section_contents): Ditto. + (writevalue): Ditto. + (writesym): Ditto. + (out): Ditto. + (tekhex_write_object_contents): Ditto. + (tekhex_sizeof_headers): Ditto. + (tekhex_make_empty_symbol): Ditto. + (tekhex_get_symbol_info): Ditto. + (tekhex_print_symbol): Ditto. + * irix-core.c (make_bfd_asection): Ditto. + (irix_core_core_file_p): Ditto. + (irix_core_core_file_failing_command): Ditto. + (irix_core_core_file_failing_signal): Ditto. + (irix_core_core_file_matches_executable_p): Ditto. + (irix_core_make_empty_symbol): Ditto. + * coff-mips.c (mips_bfd_reloc_type_lookup): Ditto. + * srec.c (srec_new_symbol): Ditto. + (srec_get_section_contents): Ditto. + (srec_set_arch_mach): Ditto. + (srec_set_section_contents): Ditto. + (internal_srec_write_object_contents): Ditto. + (srec_write_object_contents): Ditto. + (symbolsrec_write_object_contents): Ditto. + (srec_sizeof_headers): Ditto. + (srec_make_empty_symbol): Ditto. + (srec_get_symtab_upper_bound): Ditto. + (srec_get_symtab): Ditto. + (srec_print_symbol): Ditto and make static. + * elf.c (elf_read): Ditto + (assign_section_numbers): Ditto. + (elf_fake_sections): Ditto. + (sym_is_global): Ditto. + (elf_map_symbols): Ditto. + (get_program_header_size): Ditto. + * coffgen.c (make_a_section_from_file): Ditto. + (coff_real_object_p): Ditto. + (fixup_symbol_value): Ditto. + (build_debug_section): Ditto. + (copy_name): Ditto. + * syms.c (coff_section_type): Ditto. + +Mon Sep 9 22:36:01 1996 Jeffrey A Law (law@cygnus.com) + + * bfd-in2.h: Rebuilt after m32r changes. + +Mon Sep 9 12:31:22 1996 Doug Evans + + * config.bfd,configure.in,configure: Add m32r support. + * Makefile.in,archures.c,elf.c,targets.c: Likewise. + * config.bfd: Keep target list alphabetically sorted. + +Fri Sep 6 17:04:39 1996 Martin M. Hunt + + * elf32-d10v.c (elf_d10v_howto_table): Modify the size of R_D10V_16 + and R_D10V_18 to be 1 (word). + +Thu Sep 5 15:23:08 1996 Ian Lance Taylor + + * stabs.c (_bfd_link_section_stabs): If the output_section field + of either section is bfd_abs_section, then the linker is + discarding the section and we should not optimize it. + +Tue Sep 3 12:16:20 1996 Doug Evans + + * Makefile.in (aout-sparcle.o): New target. + * aoutf1.h (TARGET_IS_BIG_ENDIAN_P): Don't define if little endian. + * config.bfd (sparclet-*-aout*): Add case. + * configure.in (sparcle_aout_vec): Add case. + * configure: Regenerated. + * targets.c (sparcle_aout_vec): Declare. + (bfd_target_vector): Add sparcle_aout_vec. + * aout-sparcle.c: New file. + +Mon Sep 2 12:12:34 1996 Ian Lance Taylor + + * cpu-mips.c: Add an explicit mips:3000 entry, and change the + default architecture to a machine number of 0. + * elf32-mips.c (_bfd_mips_elf_object_p): Set the machine number + for E_MIPS_ARCH_1. + (_bfd_mips_elf_merge_private_bfd_data): If the machine number of + the output BFD is the default, set it from the first input BFD. + +Sun Sep 1 15:41:08 1996 Ian Lance Taylor + + * rs6000-core.c (rs6000coff_core_file_matches_executable_p): + Rewrite to use BFD file read routines and to avoid using a fixed + length for the file name. + +Fri Aug 30 11:49:19 1996 Ian Lance Taylor + + Add SH ELF support. + * elf32-sh.c: New file. + * elf.c (prep_headers): Handle bfd_arch_sh. + * elfcode.h (write_relocs): Handle absolute symbol. + * elf-bfd.h (_bfd_elf32_link_read_relocs): Declare. + (_bfd_elf64_link_read_relocs): Declare. + * elflink.h (NAME(_bfd_elf,link_read_relocs)): Rename from + elf_link_read_relocs. Make globally visible. Change all + callers. + (elf_link_input_bfd): Get external symbols from cache in + symtab_hdr->contents. Get contents from cache in + elf_section_data. + * elfxx-target.h (bfD_elfNN_bfd_relax_section): Only define if not + already defined. + * reloc.c: Define BFD_RELOC_SH_* relocs. + * libbfd-in.h (_bfd_sh_align_load_span): Declare. + * coff-sh.c (sh_insns_conflict): Fix a return value. + (_bfd_sh_align_load_span): New globally visible function, broken + out of sh_align_load. + (sh_align_load): Call _bfd_sh_align_load_span. + (sh_swap_insns): Change relocs parameter to PTR. + * bfd-in2.h, libbfd.h: Rebuild. + * targets.c (bfd_elf32_sh_vec): Declare. + (bfd_elf32_shl_vec): Declare. + * config.bfd (sh-*-elf*): New target. + * configure.in (bfd_elf32_sh_vec): New target vector. + (bfd_elf32_shl_vec): New target vector. + * configure: Rebuild. + * Makefile.in: Rebuild dependencies. + (BFD32_BACKENDS): Add elf32-sh.o. + (BFD32_BACKENDS_CFILES): Add elf32-sh.c. + + * elf.c (map_sections_to_segments): Check that LMA does not skip a + page before checking D_PAGED. + + * ihex.c (ihex_scan): Removed unnecessary extbase variable. + (ihex_write_object_contents): Remove extbase; always use segbase + instead. + +Thu Aug 29 16:52:17 1996 Michael Meissner + + * configure.in (i[345]86-*-*): Recognize i686 for pentium pro. + * configure.host (i[345]86-*-*): Ditto. + * config.bfd (i[345]86-*-*): Ditto. + * configure: Regenerate. + + * config.bfd (i[3456]86-*-dgux*): Recognize as a synonym for x86 + elf. + +Tue Aug 27 09:18:18 1996 Jeffrey A Law (law@cygnus.com) + + * elf32-hppa.c (hppa_elf_gen_reloc_type): Add new argument. + * elf32-hppa.h (hppa_elf_gen_reloc_type): Update prototype. + * som.c (hppa_som_gen_reloc_type): Add new argument. If + we encounter an R_DATA_ONE_SYMBOL reloc against a symbol that + will have an ST_CODE type, change the symbol's type to ST_DATA. + * som.c (hppa_som_gen_reloc_type): Update prototype. + +Tue Aug 27 00:12:22 1996 Ian Lance Taylor + + * elf32-mips.c (mips_elf_check_relocs): Set dynobj if needed for + R_MIPS_32 and R_MIPS_REL32. Set sgot and g as soon as possible. + (mips_elf_size_dynamic_sections): Don't require .got to exist. + (mips_elf_finish_dynamic_sections): Likewise. + +Thu Aug 22 10:54:38 1996 Ian Lance Taylor + + * configure.host (HLDENV): New variable to set. Set it for + *-*-sysv4*, since those linkers may not support -R but they always + support LD_RUN_PATH. + + * libieee.h (NSECTIONS): Don't define. + (ieee_data_struct): Change section_table to asection **. Add + section_table_size. + * ieee.c (get_section_entry): If the table isn't big enough, make + it bigger. + (ieee_slurp_sections): Remove assertion about number of sections. + (ieee_object_p): Adjust initialization of ieee to match changes to + the structure. + + * xcofflink.c (xcoff_mark): Don't copy relocs for undefined + symbols merely because we are generating a shared library. + (xcoff_build_ldsyms): Don't set up global linkage code for an + undefined symbol merely because we are generating a shared + library. + +Fri Aug 16 16:25:35 1996 Ian Lance Taylor + + * xcofflink.c (xcoff_link_add_dynamic_symbols): Create and define + a function code symbol for an XMC_XO symbol. + +Thu Aug 15 12:33:29 1996 Stan Shebs + + * mpw-config.in: Update editing of autoconf vars to reflect + Jul 18 configure.in change. + * mpw-make.sed: Update editing of include pathnames to be + more general, add @DASH_C_FLAG@ to explicit compile rule edit. + +Thu Aug 15 10:35:13 1996 Richard Henderson + + * elf64-alpha.c (elf64_alpha_output_extsym): The section from + which to offset to get the .plt entry address is ".plt". + +Thu Aug 15 16:40:30 1996 James G. Smith + + * reloc.c: (BFD_RELOC_ARM_THUMB_ADD, BFD_RELOC_ARM_THUMB_IMM, + BFD_RELOC_ARM_THUMB_SHIFT, BFD_RELOC_ARM_THUMB_OFFSET): + Added, for internal use by the ARM gas. + * libbfd.h: Rebuilt + * bfd-in2.h: Rebuilt + +Wed Aug 14 17:02:09 1996 Richard Henderson + + * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Correct typo + in section dynidx start. + +Tue Aug 13 14:35:38 1996 Ian Lance Taylor + + * elf.c (_bfd_elf_make_section_from_shdr): Treat sections whose + name begins with .gnu.linkonce as SEC_LINK_ONCE. This is an + optimization for g++. + +Tue Aug 13 17:04:40 1996 Michael Meissner + + * elf32-ppc.c (ppc_elf_merge_private_bfd_data): If one module has + the -mrelocatable-lib bit set and the other doesn't, clear the + -mrelocatable-lib bit in the header. + +Sat Aug 10 22:59:17 1996 Ian Lance Taylor + + * elflink.h (elf_link_add_object_symbols): Do not resolve a common + symbol against a STT_FUNC symbol in a shared library. + +Fri Aug 9 12:44:57 1996 Ian Lance Taylor + + * xcofflink.c (xcoff_link_add_dynamic_symbols): If a descriptor + symbol is found, automatically define the corresponding function + code. + + * cofflink.c (coff_link_add_symbols): Only set (*sym_hash)->numaux + if sym.n_numaux is not zero. + (_bfd_coff_link_input_bfd): Permit the symbol and the hash table + entry to disagree about the number of aux entries if the symbol + has zero. + + * elf32-mips.c (mips_elf_check_relocs): Create the .rel.dyn + section if it might be needed, not just if info->shared. + (mips_elf_adjust_dynamic_symbol): Make room for a null element at + the start of .rel.dyn if we are going to use it. + (mips_elf_finish_dynamic_sections): Only clear the first element + of .rel.dyn if the size is greater than zero. + +Thu Aug 8 16:24:55 1996 Ian Lance Taylor + + * xcofflink.c (xcoff_link_input_bfd): If we already called the + undefined_symbol callback for a symbol, then don't issue any more + warnings about loader relocs. + (_bfd_ppc_xcoff_relocate_section): Don't do any further processing + after calling the undefined_symbol callback. + + * xcofflink.c (XCOFF_MULTIPLY_DEFINED): Define. + (xcoff_link_add_symbols): Permit multiple definitions of a symbol + as the AIX linker seems to do. + +Thu Aug 8 12:21:56 1996 Klaus Kaempf + + * evax-alpha.c (evax_alpha_vec): Corrected flags, cleanup. + (evax_initialize): Remove evax_reloc_table. + (evax_close_and_cleanup): Ditto. + (reloc_nil): Ditto. + (alpha_howto_table): Remove ALPHA_R_SWREL32 and ALPHA_R_SWREL64 + entries. + (evax_bfd_reloc_type_lookup): Ditto. + * evax-egsd.c (_bfd_evax_slurp_egsd): Add a few casts; set + cooked_size == raw_size. + * evax-emh.c (_bfd_evax_register_filename): Remove. + * evax-etir.c (etir_stc): Allow ETIR_S_C_STC_xx commands. + * evax-misc.c (add_new_contents): Malloc section at full size. + (_bfd_save_evax_section): Memcpy section contents directly. + * evax.h (ALPHA_R_SWREL32, ALPHA_R_SWREL64): Remove. + (evax_reloc_table): Remove. + + * hosts/alphavms.h (O_ACCMODE): Define if needed. + + * makefile.vms: Add better support for DEC C compilation + Add evax.h dependencies + + * reloc.c (bfd_get_reloc_size): Add case for 16 byte reloc. + (BFD_RELOC_SWREL32,BFD_RELOC_SWREL64): Remove. + (BFD_RELOC_ALPHA_BASEREG): Remove. + * bfd-in2.h, libbfd.h: Rebuild. + +Thu Aug 8 08:17:32 1996 Stu Grossman (grossman@critters.cygnus.com) + + * archive.c (bsd_write_armap): Ifdef around calls to getuid and + getgid if _WIN32 is defined. + * opncls.c (bfd_fdopenr): Remove unnecessary WINGDB ifdef. + +Wed Aug 7 23:19:00 1996 Stu Grossman (grossman@critters.cygnus.com) + + * aoutx.h bfd-in.h bfd-in2.h opncls.c riscix.c som.c targets.c: + Change NO_FLAGS to BFD_NO_FLAGS to avoid conflict with an HPUX + include file. + * libbfd.c: Create dummy getpagesize() macro if HAVE_GETPAGESIZE + isn't defined. + +Wed Aug 7 14:11:44 1996 Philippe De Muyter + + * configure.in: Call BFD_NEEDED_DECLARATION on strstr and + realloc. + * acconfig.h (NEED_DECLARATION_STRSTR): New macro. + (NEED_DECLARATION_REALLOC): New macro. + * configure, config.in: Rebuild. + * sysdep.h (strstr): Declare if NEED_DECLARATION_STRSTR. + (realloc): Declare if NEED_DECLARATION_REALLOC. + + * aclocal.m4 (BFD_NEED_DECLARATION): Include or + if they exist. + + * ieee.c (ieee_set_section_contents): Cast bfd_alloc return. + +Wed Aug 7 12:12:03 1996 Ian Lance Taylor + + * cpu-i386.c (i8086_arch): Architecture info for the i8086. + + Based on patches from Eric Valette : + * elf32-i386.c (enum reloc_type): Add FIRST_INVALID_RELOC, + LAST_INVALID_RELOC, R_386_16, R_386_PC16, R_386_8, R_386_PC8. + (elf_howto_table): Add entries for new relocs. + (elf_i386_reloc_type_lookup): Handle new relocs. + (elf_i386_info_to_howto): Just call abort. + (elf_i386_info_to_howto_rel): Check that the reloc type is valid. + (elf_i386_relocate_section): Likewise. + +Tue Aug 6 12:54:56 1996 Martin M. Hunt + + * elf32-d10v.c (elf_d10v_howto_table): Added R_D10V_32. + +Mon Aug 5 13:42:41 1996 Ian Lance Taylor + + * elf.c (_bfd_elf_make_section_from_shdr): For a loadable section, + only get the LMA from the phdr if they are in the same part of the + file. + + * elf.c (map_sections_to_segments): Rewrite tests for starting a + new segment to make them more comprehensible. If the relationship + between the LMA and the VMA changed, start a new segment. Don't + check dynsec when deciding whether to start a new segment for a + writeable section; -N will now handle this. + +Thu Aug 1 22:43:08 1996 Jeffrey A Law (law@cygnus.com) + + * libhppa.h: Remove "esel" changes. Not the right approach. + * som.c: Corresponding changes. + (som_bfd_derive_misc_symbol_info): Use ST_DATA for symbols + which don't have a SOM symbol type associated with them. + Reverses a 1994 change. + +Wed Jul 31 15:50:55 1996 Ian Lance Taylor + + Make ld -N more reasonable for ELF: + * elf.c (map_sections_to_segments): If D_PAGED is not set, set + phdr_in_section to false, and always use a single load segment. + (elf_sort_sections): Sort sections by LMA after VMA. + (assign_file_positions_for_segments): If D_PAGED is not set, don't + align to maxpagesize. + (assign_file_positions_except_relocs): Likewise. + * elfcode.h (elf_object_p): If a section is loaded but not page + aligned, clear D_PAGED. + +Wed Jul 31 15:00:12 1996 James G. Smith + + * reloc.c: (BFD_RELOC_ARM_OFFSETIMM8, BFD_RELOC_ARM_HWLITERAL): + Added, for internal use by the ARM gas. + * libbfd.h: Rebuilt + * bfd-in2.h: Rebuilt + +Tue Jul 30 14:14:57 1996 Jeffrey A Law (law@cygnus.com) + + * libhppa.h (R_HPPA_ESEL): New field selector. + (e_esel): Similarly. + * som.c (hppa_som_gen_reloc_type): If we encounter an e_esel, + then generate R_COMP2 (PUSH_SYM), R_DATA_EXPR fixup stream. + (som_write_fixups): Handle R_DATA_EXPR just like R_CODE_EXPR. + +Tue Jul 30 13:31:27 1996 Ian Lance Taylor + + * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Do the regular + archive search before looking for stripped dynamic objects. + +Fri Jul 26 17:51:39 1996 Ian Lance Taylor + + * xcofflink.c (xcoff_build_ldsyms): Make exporting an undefined + symbol a warning rather than an error. + +Wed Jul 24 12:02:53 1996 Ian Lance Taylor + + * elf.c (assign_file_positions_for_segments): Track the virtual + memory position separately from the file position, and use it to + compute the alignment adjustment. + +Tue Jul 23 10:43:31 1996 Martin M. Hunt + + * elf32-d10v.c (elf_d10v_howto_table): Changed all relocs to "long" + and fixed mask on R_D10V_10_PCREL_L. + +Mon Jul 22 15:30:30 1996 Ian Lance Taylor + + * elf64-mips.c: Include "aout/ar.h". + (mips_elf64_slurp_armap): New static function. + (mips_elf64_write_armap): New static function. + (bfd_elf64_archive_*): Define. + * elfxx-target.h (bfd_elfNN_archive_p): Define if not defined. + Use instead of bfd_generic_archive_p. + (bfd_elfNN_write_archive_contents): Define if not defined. Use + instead of _bfd_write_archive_contents. + (bfd_elfNN_mkdarchive): Define if not defined. Use instead of + _bfd_generic_mkarchive. + (TARGET_BIG_SYM): If bfd_elfNN_archive_functions is defined, use + bfd_elfNN_archive in BFD_JUMP_TABLE_ARCHIVE rather than + _bfd_archive_coff. + (TARGET_LITTLE_SYM): Likewise. + * archive.c (bfd_slurp_armap): Check for and reject an archive map + name of /SYM64/. + * Makefile.in: Rebuild dependencies. + + * elf32-mips.c (_bfd_mips_elf_final_write_processing): Handle + SHT_MIPS_LIBLIST, SHT_MIPS_CONTENT, SHT_MIPS_SYMBOL_LIB, and + SHT_MIPS_EVENTS sections. + (_bfd_mips_elf_section_from_shdr): Handle SHT_MIPS_IFACE, + SHT_MIPS_CONTENT, SHT_MIPS_SYMBOL_LIB, and SHT_MIPS_EVENTS + sections. + (_bfd_mips_elf_fake_sections): Likewise. + + * libecoff.h (ecoff_data_type): Add rdata_in_text field. + * ecoff.c (ecoff_compute_section_file_positions): Copy + rdata_in_text from backend info to tdata. Clear it if any data + section comes before .rdata. + (_bfd_ecoff_write_object_contents): Use rdata_in_text field in + tdata rather than backend info. + +Fri Jul 19 18:15:51 1996 Ian Lance Taylor + + * configure.in: Fix test for whether a compiler has a 64 bit + type. From Jim Wilson . + +Thu Jul 18 15:39:10 1996 Ian Lance Taylor + + * configure.host (mips-sgi-irix6*): New host. + + * configure.in: Set and substitute VERSION, BFD_HOST_64BIT_LONG + (replacing HOST_64BITLONG), BFD_HOST_64_BIT_DEFINED, + BFD_HOST_64_BIT, and BFD_HOST_U_64_BIT. Add bfd-in2.h:bfd-in2.h + to AC_OUTPUT call. + * configure: Rebuild. + * bfd-in.h (BFD_ARCH_SIZE): Define as @wordsize@, not @WORDSIZE@. + (BFD_HOST_64_BIT): Define conditionally. + (BFD_HOST_U_64_BIT): Define when BFD_HOST_64_BIT is defined. + (bfd_vma): Typedef as BFD_HOST_U_64_BIT. + (symvalue, bfd_size_type): Likewise. + * bfd-in2.h: Rebuild. + * Makefile.in (do_clean): Remove bfd-tmp.h. + (do_distclean): Remove bfd-in3.h. + (stmp-bfd.h): Just do copy-if-change bfd-in3.h bfd.h. + (bfd-in3.h): New target. + + * config.bfd (sparc-*-sysv4*): Don't build sunos_big_vec. From + Andrew Gierth . + + * configure.host: Set INSTALL_SHLIB. + * configure.in: Call AC_SUBST (INSTALL_SHLIB). + * configure: Rebuild. + * Makefile.in (install): Use @INSTALL_SHLIB@. + + * config.bfd (mips*-*-irix6*): New target. + * configure.host: Handle Irix 6 shared library like Irix 5. + + * xcofflink.c (xcoff_link_add_symbols): Don't check an XMC_TD + symbol for a magic name. + (xcoff_link_input_bfd): Don't change the reloc symbol for an + XMC_TD symbol. + (_bfd_ppc_xcoff_relocate_section): Don't get the TOC offset for an + XMC_TD symbol. + +Thu Jul 18 11:36:31 1996 Stan Shebs + + * mpw-config.in: Add ELF support to mips config, create the + elf32-target.h file in the object dir. + * mpw-make.sed: Edit elfXX-target.h refs at beginnings of lines. + +Wed Jul 17 18:02:32 1996 Kim Knuttila + + * coff-ppc.c: Redid debug scheme - numerous fprintf's gone. + Also removed most abort calls, in favor of using bfd reporting. + +Wed Jul 17 14:51:52 1996 Martin M. Hunt + + * Makefile.in (ALL_MACHINES): Add cpu-d10v.o. + (BFD32_BACKENDS) Add elf32-d10v.o. + * archures.c: Add bfd_d10v_arch. + * bfd-in2.h: Add bfd_d10v_arch. + * config.bfd (d10v-*-*): New target. + * configure: (bfd_elf32_d10v_vec) New vector. + * configure.in: (bfd_elf32_d10v_vec) New vector. + * cpu-d10v.c: New file. + * elf.c (prep_headers): Added case bfd_arch_d10v. + * elf32-d10v.c: New file. + * libbfd.h: Rebuild. + * reloc.c (BFD_RELOC_D10V_10_PCREL_R, BFD_RELOC_D10V_10_PCREL_L, + BFD_RELOC_D10V_18, BFD_RELOC_D10V_18_PCREL): Define. + * targets.c (bfd_elf32_d10v_vec): New vector. + +Wed Jul 17 10:58:55 1996 Kim Knuttila + + * coff-ppc.c (coff_ppc_relocate_section): Removed bogus fprintf + +Tue Jul 16 23:49:02 1996 Stu Grossman (grossman@critters.cygnus.com) + + * archures.c bfd-in2.h: Add bfd_mach_i386_i386 and + bfd_mach_i386_i8086 machine types. + +Wed Jul 10 12:42:56 1996 Ian Lance Taylor + + * ecoff.c (_bfd_ecoff_new_section_hook): Set SEC_CODE for _INIT + and _FINI sections. + +Wed Jul 10 11:18:21 1996 Richard Henderson + + * coffcode.h (coff_set_section_contents): A/UX does not require + special handling of the _LIB section. + +Tue Jul 9 15:52:20 1996 Jeffrey A Law (law@cygnus.com) + + * coff-h8300.c (h8300_reloc16_extra_cases): Use the correct + value for R_RELBYTE. + + * reloc16.c (bfd_coff_reloc16_relax_section): Only "shrinks" + array if one was allocated. + +Tue Jul 9 12:21:54 1996 Ian Lance Taylor + + From Kazumoto Kojima : + * elf32-mips.c (struct mips_elf_link_hash_table): Add new fields + use_rld_obj_head and rld_value. + (mips_elf_link_hash_table_create): Initialize new fields. + (mips_elf_add_symbol_hook): Mark __rld_obj_head symbol as + dynamic. + (mips_elf_create_dynamic_sections): Create .rld_map section. If + __rld_obj_head symbol not seen, create an __rld_map symbol. + (mips_elf_size_dynamic_sections): Make space in .rld_map section. + Create a DT_MIPS_RLD_MAP entry rather than a DT_DEBUG entry. + (mips_elf_finish_dynamic_symbol): Save value of __rld_map or + __rld_obj_head symbol. + (mips_elf_finish_dynamic_sections): Handle DT_MIPS_RLD_MAP. + +Mon Jul 8 16:18:03 1996 Ian Lance Taylor + + * elf32-mips.c (mips_reloc_map): Remove BFD_RELOC_32_PCREL entry. + + * elf32-ppc.c (ppc_elf_howto_raw): For R_PPC_ADDR16_HA, use + ppc_elf_addr16_ha_reloc. + (ppc_elf_addr16_ha_reloc): New static function. + + * coff-mips.c (struct mips_hi): Define. + (mips_refhi_list): New static variable. + (mips_refhi_addr, mips_refhi_addend): Remove. + (mips_refhi_reloc): Maintain a list of unmatched REFHI relocs. + (mips_reflo_reloc): Process mips_refhi_list. + (mips_relhi_list): New static variable. + (mips_relhi_addr, mips_relhi_addend): Remove. + (mips_relhi_reloc): Maintain a list of unmatched RELHI relocs. + (mips_rello_reloc): Process mips_relhi_list. + (mips_relocate_section): Permit an arbitrary number of REFHI or + RELHI relocs before the associated REFLO or RELLO reloc. + +Fri Jul 5 19:27:49 1996 Ian Lance Taylor + + * aout-target.h (MY(callback)): Set reloc_count fields. + +Thu Jul 4 12:00:37 1996 Ian Lance Taylor + + * sunos.c (sunos_add_dynamic_symbols): Don't create dynamic + sections unless this is a SunOS link. + + * VERSION: Set to 2.7.1. + + * Released binutils 2.7. + +Wed Jul 3 14:59:47 1996 Ian Lance Taylor + + * i386aout.c: Include "aout/aout64.h". + (i386aout_write_object_contents): New static function. + (MY_write_object_contents): Define. + + * netbsd.h (MY(write_object_contents)): Make sure that + adjust_sizes_and_vmas is called before fiddling with the magic + number. + +Tue Jul 2 23:30:39 1996 Ian Lance Taylor + + * stabs.c (_bfd_link_section_stabs): Fix casts of psinfo. + +Sun Jun 30 13:34:33 1996 Ian Lance Taylor + + * libbfd-in.h (itos, stoi): Don't define. + * libbfd.h: Rebuild. + * i386lynx.c (KEEPIT): Define as udata.i. + (NAME(lynx,swap_std_reloc_out)): Don't use stoi. + (NAME(lynx,swap_ext_reloc_out)): Likewise. + * riscix.c (riscix_swap_std_reloc_out): Use udata.i rather than + flags. Don't use stoi. + + * elf32-mips.c (ELF_MAGPAGESIZE): Change definition to 0x1000. + + * elf.c (map_sections_to_segments): Don't start a new segment for + a writable section if it's on the same page as the previous + segment. Reset the writable variable for a readonly section. + +Sat Jun 29 16:18:51 1996 Kim Knuttila + + * peicode.h (coff_swap_aouthdr_in): Missing initializations of + first_thunk_address, thunk_size, and import_table_size. + * peicode.h: Improved some diagnostics regarding edata sections. + + * coff-ppc.c (coff_ppc_relocate_section): Earlier error check + on IMGLUE relocs. + (coff_ppc_relocate_section): Improved diagnostic for large TOCDEFN's. + (TARGET_LITTLE_SYM): Added missing D_PAGED. + +Fri Jun 28 13:48:45 1996 Ian Lance Taylor + + * xcofflink.c (xcoff_link_check_ar_symbols): An undefined symbol + with XCOFF_DEF_DYNAMIC set is really defined. + (xcoff_link_check_dynamic_ar_symbols): Likewise. + (xcoff_link_add_symbols): Only create special sections if using an + XCOFF hash table. + + * reloc.c (bfd_perform_relocation): Handle xcoff-powermac like + aixcoff-rs6000. + (bfd_install_relocation): Likewise. + +Fri Jun 28 11:17:00 1996 Richard Henderson + + * elf64-alpha.c (struct alpha_elf_link_hash_entry): Add flags + field. + (ALPHA_ELF_LINK_HASH_LU_ADDR): Define. + (ALPHA_ELF_LINK_HASH_LU_MEM): Define. + (ALPHA_ELF_LINK_HASH_LU_FUNC): Define. + (elf64_alpha_link_hash_newfunc): Initialize flags field. + (elf64_alpha_check_relocs): Record types of LITUSE entries that + are found for LITERAL relocs. + (elf64_alpha_adjust_dynamic_symbol): If a symbol has its address + taken, we cannot generate a .plt entry for the symbol. + +Thu Jun 27 11:24:29 1996 Ian Lance Taylor + + * configure.in: Add AC_ISC_POSIX, and check for setitimer and + sysconf functions (for gprof). + * configure, config.in: Rebuild. + +Wed Jun 26 16:29:02 1996 Ian Lance Taylor + + * ecoff.c (_bfd_ecoff_archive_p): Check the first object file in + an archive if it has a map. If the object file has the wrong + xvec, reject it. + + * coff-alpha.c (alpha_adjust_reloc_in): Set the addend for a + BRADDR, SREL16, SREL32, or SREL64 reloc against an external + symbol. + (alpha_relocate_section): Likewise. + + * coffswap.h (coff_swap_reloc_out): Use RELSZ, not sizeof. + (coff_swap_filehdr_out): Use FILHSZ, not sizeof. + (coff_swap_sym_out): Use SYMESZ, not sizeof. + (coff_swap_aux_out): Use AUXESZ, not sizeof. + (coff_swap_lineno_out): Use LINESZ, not sizeof. + (coff_swap_aouthdr_out): Use AOUTSZ, not sizeof. + (coff_swap_scnhdr_out): Use SCNHSZ, not sizeof. + * peicode.h: Corresponding changes. + +Tue Jun 25 15:28:34 1996 Michael Meissner + + * elflink.h (elf_create_pointer_linker_section): Comment out code + dealing with making GOT pointers negative of the GOT symbol for + now. + +Tue Jun 25 11:41:24 1996 Richard Henderson + + * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't + increment the .rela.plt size until after we're done creating the + .plt entry. + (elf64_alpha_finish_dynamic_symbol): Change .plt entry to load the + .rela.plt offset directly rather than calculating it. + +Mon Jun 24 17:15:10 1996 Jason Molenda (crash@godzilla.cygnus.co.jp) + + * Makefile.in, (bindir, libdir, datadir, mandir, infodir, includedir): + Use autoconf-set values. + * doc/Makefile.in (bindir, libdir, datadir, mandir, infodir, + includedir, INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set + values. + (docdir): Deleted. + * configure.in (AC_PREREQ): autoconf v2.5 or higher. + * configure: Rebuilt. + +Mon Jun 24 22:50:35 1996 Jeffrey A Law (law@cygnus.com) + + * som.c (som_write_fixups): Fix typo in R_END_TRY for exception + handling code > 1k away. + +Mon Jun 24 18:41:06 1996 Michael Meissner + + * elflink.h (elf_create_pointer_linker_section): If DEBUG is + defined, output whenever the symbol is updated. + +Mon Jun 24 17:58:12 1996 Jouke Numan + + * elf.c (elf_fake_sections): Don't set sh_addr of a non SEC_ALLOC + section to 0 if user_set_vma is set. + * elflink.h (elf_bfd_final_link): Likewise. + +Sun Jun 23 20:42:51 1996 Doug Evans + + Partially undo patch of Jun 20. + * coffcode.h (coff_set_alignment_hook): Use COFF_IMAGE_WITH_PE. + (coff_compute_section_file_positions): Likewise. + (coff_write_object_contents): Likewise. Re-add deleted code, but + use #ifdef COFF_WITH_PE, not COFF_OBJ_WITH_PE. + * peicode.h (pe_bfd_copy_private_bfd_data): Re-add #ifdef. + +Fri Jun 21 17:38:15 1996 Joel Sherrill + + * config.bfd: Add support for *-*-rtems* configurations. + +Fri Jun 21 15:19:59 1996 Ian Lance Taylor + + * elf.c (prep_headers): Add bfd_arch_alpha case. + +Fri Jun 21 12:35:27 1996 Richard Henderson + + * elf64-alpha.c: New file. + * config.bfd (alpha-*-linuxecoff*): New target. + (alpha-*-linux*, alpha-*-elf*): New targets. + * configure.in (bfd_elf64_alpha_vec): New vector. + * configure: Rebuild. + * targets.c (bfd_elf64_alpha_vec): Declare. + (bfd_target_vector): Add bfd_elf64_alpha_vec if BFD64. + * reloc.c (BFD_RELOC_ALPHA_GPDISP): Define. + * bfd-in2.h, libbfd.h: Rebuild. + * Makefile.in: Rebuild dependencies. + (BFD64_BACKENDS): Add elf64-alpha.o. + (BFD64_BACKENDS_CFILES): Add elf64-alpha.c. + +Thu Jun 20 18:14:25 1996 Ian Lance Taylor + + * ecoff.c (ecoff_armap_hash): If hlog is 0, just return 0, rather + than relying on a right shift of 32. + +Thu Jun 20 11:00:57 1996 Doug Evans + + * coffcode.h (coff_set_alignment_hook): Change COFF_IMAGE_WITH_PE + ifdef to COFF_WITH_PE. + (coff_compute_section_file_positions): Likewise. + (coff_write_object_contents): Likewise. Delete COFF_OBJ_WITH_PE. + * pe-{arm,i386,ppc}.c (COFF_OBJ_WITH_PE): Delete. + * peicode.h (pe_bfd_copy_private_bfd_data): Delete ifdef + COFF_IMAGE_WITH_PE, always include. + + * peicode.h (coff_swap_scnhdr_out): ".drectve" doesn't have trailing 0. + +Wed Jun 19 11:37:52 1996 Ian Lance Taylor + + * elf.c (map_sections_to_segments): Fix up the test for -Ttext to + approximate the correct answer if SIZEOF_HEADERS was not used. + + * binary.c (binary_set_section_contents): Set section file + position based on LMA rather than VMA. + +Wed Jun 19 11:19:25 1996 Manfred Hollstein KS/EIC5 60/3/142 #40283 + + * linker.c (_bfd_generic_link_output_symbols): Don't output any + symbols if info->strip == strip_all. + +Tue Jun 18 15:17:36 1996 Jeffrey A. Law + + * coff-h8300.c: Remove #if 0 code. + (compatable): Don't allow mixing/matching of different architectures. + + * archures.c (bfd_mach_h8300s): Add. + * bfd-in2.h: Rebuilt. + * coff-h8300.c (funcvec_hash_newfunc): Handle H8/S too. + (BADMAG): Likewise. + (h8300_reloc16_estimate): Likewise. + (h8300_reloc16_extra_cases): Likewise. + (h8300_bfd_link_add_symbols): Likewise. + * coffcode.h (coff_set_arch_mach_hook): Likewise. + (coff_set_flags): Likewise. + * cpu-h8300.c (h8300_scan): Likewise. + Add H8/S to bfd_h8300_arch list. + +Tue Jun 18 14:42:58 1996 Klaus Kaempf + + Added support for Alpha OpenVMS: + * evax.h, evax-alpha.c, evax-egsd.c, evax-emh.c: New files. + * evax-etir.c, evax-misc.c, hosts/alphavms.h: New files. + * config.h-vms, makefile.vms: New files. + * config.bfd (alpha-*-*vms*): New target. + * configure.in (evax_alpha_vec): New target vector. + * configure: Rebuild. + * reloc.c (BFD_RELOC_SWREL32, BFD_RELOC_SWREL64): Define. + (BFD_RELOC_ALPHA_LINKAGE, BFD_RELOC_ALPHA_BASEREG): Define. + * targets.c (bfd_target_evax_flavour): Define. + (evax_alpha_vec): Declare. + (bfd_target_vector): Add ecoffalpha_little_vec and evax_alpha_vec + if BFD64 is defined. + * bfd-in2.h, libbfd.h: Rebuild. + * Makefile.in: Rebuild dependencies. + (BFD64_BACKENDS): Add evax-alpha.o, evax-egsd.o, evax-etir.o, + evax-emh.o, and evax-misc.o. + (BFD64_BACKENDS_CFILES): Add evax-alpha.c, evax-egsd.c, + evax-etir.c, evax-emh.c, and evax-misc.c. + (HFILES): Add evax.h. + +Tue Jun 18 13:54:18 1996 Ian Lance Taylor + + * coff-h8300.c (h8300_reloc16_extra_cases): Make name a const + pointer. + (h8300_bfd_link_add_symbols): Likewise. + +Mon Jun 17 10:06:50 1996 Jeffrey A. Law + + * som.h (R_HPPA_BEGIN_TRY, R_HPPA_END_TRY): Define. + * som.c (som_write_fixups): Handle R_BEGIN_TRY and R_END_TRY. + +Mon Jun 17 12:49:11 1996 Ian Lance Taylor + + * elf32-mips.c (mips_elf_relocate_section): Don't create a reloc + for R_MIPS_REL32 and R_MIPS_32 relocs if no dynamic sections were + created. + (mips_elf_check_relocs): Only create .rel.dyn for R_MIPS_REL32 and + R_MIPS_32 relocs if creating a shared library. + +Thu Jun 13 20:14:51 1996 Doug Evans + + * peicode.h (add_data_entry): Use pei_section_data rather than + _cooked_size. Corresponds to May 13 change in coffcode.h. + +Thu Jun 13 10:23:40 1996 Ian Lance Taylor + + * cofflink.c (_bfd_coff_final_link): Handle long section names. + * coffcode.h (coff_write_object_contents): If there are long + section names, always set the f_symptr field, even if there are no + symbols. + * peicode.h (coff_swap_filehdr_in): Don't clear the f_symptr field + if there are no symbols. + + * coffgen.c (make_a_section_from_file): Check return value of + _bfd_coff_read_string_table. + (coff_real_object_p): Check return value of + make_a_section_from_file. + (_bfd_coff_read_string_table): Check that there are some symbols + before trying to read the string table size. + +Wed Jun 12 11:16:37 1996 Ian Lance Taylor + + * xcofflink.c (xcoff_link_add_symbols): When considering whether + to replace a symbol in a dynamic object with a symbol from another + dynamic object, do the replacement if the existing symbol is + global linkage code. + + * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Check explicitly + for _ptrgl, and treat it as global linkage code. + + * aoutx.h (NAME(aout,find_nearest_line)): Notice if we find a + filename or N_SO symbol past the offset, and use it to indicate + that there is no line number or function when appropriate. + +Tue Jun 11 15:24:48 1996 Ian Lance Taylor + + * xcofflink.c (xcoff_build_ldsyms): Set XCOFF_DEF_REGULAR for a + common symbol defined by the linker. Don't export function code + even if export_defineds is set. + +Mon Jun 10 11:57:27 1996 Jeffrey A Law (law@cygnus.com) + + * coff-h8300.c (howto_table): Add new entries for R_BCC_INV + and R_JMP_DEL. + (rtype2howto): Handle R_BCC_INV and R_JMP_DEL. + (h8300_symbol_address_p): New function. + (h8300_reloc16_estimate): Eliminate jumps made unnecessary by + relaxing. + +Sun Jun 9 16:30:20 1996 Jeffrey A Law (law@cygnus.com) + + * coff-h8300.c (h8300_reloc16_estimate): Fix many minor spacing + problems. + (h8300_reloc16_estimate, cases R_JMP1, R_JMP2): Adjust "dot" + correctly for the two variants. Allow relaxing if the target + is 128 bytes away since after relaxation it'll be 126 bytes away. + (h8300_reloc16_estimate, case R_PCRWORD): Correctly adjust + "dot" and "value". Allow relaxing if the target is 128 bytes + away since after relaxation it'll be 126 bytes away. + * reloc16.c (bfd_coff_reloc16_relax_section): Keep relaxing + the given section until nothing changes. + +Thu Jun 6 15:24:45 1996 Richard Henderson + + * ecoff.c (_bfd_ecoff_new_section_hook): Remove the _PDATA + alignment hack--we can get the lnnoptr info another way without + suddenly increasing the alignment requirements. Set the flags for + the _PDATA section. + (ecoff_compute_section_file_positions): Do so. + +Thu Jun 6 11:24:37 1996 Ian Lance Taylor + + * ieee.c (ieee_write_object_contents): Put a timestamp in the file + to keep the HP emulator database happy. + + * config.bfd: Recognize powerpc-*-linux* and powerpcle-*-linux*. + From Kevin Buettner . + +Wed Jun 5 15:16:04 1996 Ian Lance Taylor + + * aoutx.h (translate_to_native_sym_flags): Don't try to print the + name of a NULL section. + +Tue Jun 4 18:53:58 1996 Ian Lance Taylor + + * linker.c (_bfd_generic_link_add_one_symbol): If notice_all is + set, always call the notice callback. + + * VERSION: Increment for bfdlink.h change. + +Mon Jun 3 11:01:53 1996 Ian Lance Taylor + + * coff-sh.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Set to 4. + (sh_relax_delete_bytes): Correct handling of differently sized + trailing alignment reloc. + + * bfd-in.h: Use #error if BFD_HOST_64_BIT can not be defined. + * bfd-in2.h: Rebuild. + * configure.in: Warn if there is no known 64 bit type. + * configure: Rebuild. + + * Makefile.in: Rebuild dependencies. + (BFD32_BACKENDS): Add ppcboot.o. + (BFD32_BACKENDS_CFILES): Add ppcboot.c. + + * elf32-mips.c (mips_elf_size_dynamic_sections): Initialize c. + From Per Fogelstrom . + +Sat Jun 1 21:49:58 1996 Ian Lance Taylor + + * elf64-mips.c (bfd_mips_elf64_swap_reginfo_in) + (bfd_mips_elf64_swap_reginfo_out): Move from here... + * elf32-mips.c (bfd_mips_elf64_swap_reginfo_in) + (bfd_mips_elf64_swap_reginfo_out): ...to here. + +Fri May 31 13:51:28 1996 Ian Lance Taylor + + * elf64-mips.c: Improve reloc special_functions and handling of + SHT_MIPS_OPTIONS section. + * elf32-mips.c (_bfd_mips_elf_hi16_reloc): Rename from + mips_elf_hi16_reloc and make globally visible. + (_bfd_mips_elf_lo16_reloc): Rename from mips_elf_lo16_reloc and + make globally visible. + (_bfd_mips_elf_got16_reloc): Rename from mips_elf_got16_reloc and + make globally visible. + (_bfd_mips_elf_gprel16_reloc): Rename from mips_elf_gprel16_reloc + and make globally visible. + (gprel16_with_gp): Check howto->src_mask before using value in + insn. + (_bfd_mips_elf_gprel32_reloc): Rename from mips_elf_gprel32_reloc + and make globally visible. + (gprel32_with_gp): Check howto->src_mask before fetching value. + (bfd_mips_elf_swap_options_in): New function. + (bfd_mips_elf_swap_options_out): New function. + (_bfd_mips_elf_set_private_flags): Rename from + mips_elf_set_private_flags and make globally visible. + (_bfd_mips_elf_copy_private_bfd_data): Rename from + mips_elf_copy_private_bfd_data and make globally visible. + (_bfd_mips_elf_merge_private_bfd_data): Rename from + mips_elf_merge_private_bfd_data and make globally visible. + (_bfd_mips_elf_section_from_shdr): Accept .MIPS.options as a name + for a SHT_MIPS_OPTIONS section. + (mips_elf32_section_from_shdr): Handle SHT_MIPS_OPTIONS section. + (_bfd_mips_elf_fake_sections): Consider .MIPS.options to be the + name of a SHT_MIPS_OPTIONS section. + (_bfd_mips_elf_set_section_contents): New function. + (mips_elf32_section_processing): Set the GP value in a + SHT_MIPS_OPTIONS section. + (_bfd_mips_elf_find_nearest_line): Rename from + mips_elf_find_nearest_line and make globally visible. + (bfd_elf32_set_section_contents): Define. + * elf-bfd.h (_bfd_mips_elf_hi16_reloc): Declare. + (_bfd_mips_elf_lo16_reloc): Declare. + (_bfd_mips_elf_gprel16_reloc): Declare. + (_bfd_mips_elf_got16_reloc): Declare. + (_bfd_mips_elf_gprel32_reloc): Declare. + (_bfd_mips_elf_set_private_flags): Declare. + (_bfd_mips_elf_copy_private_bfd_data): Declare. + (_bfd_mips_elf_merge_private_bfd_data): Declare. + (_bfd_mips_elf_find_nearest_line): Declare. + (_bfd_mips_elf_set_section_contents): Declare. + + * elf32-hppa.c (elf32_hppa_info_to_howto): Rename from + elf_info_to_howto. + (elf_info_to_howto): Define. + * elf32-sparc.c (elf32_sparc_info_to_howto): Rename from + elf_info_to_howto. + (elf_info_to_howto): Define. + * elf64-sparc.c (sparc64_elf_info_to_howto): Rename from + elf_info_to_howto. + (elf_info_to_howto): Define. + + * coff-w65.c (h8300_reloc16_estimate): Rename R_MOVB[12] to + R_MOV16B[12], to match change in coff/internal.h. + +Thu May 30 12:38:49 1996 Ian Lance Taylor + + * elf64-mips.c: Extensive additions to provide better support for + writing files and for gas. + * elf32-mips.c (_bfd_mips_elf_object_p): New function, broken out + of mips_elf_object_p. + (mips_elf32_object_p): Rename from mips_elf_object_p; call + _bfd_mips_elf_object_p. + (_bfd_mips_elf_final_write_processing): Rename from + mips_elf_final_write_processing and make globally visible. + (_bfd_mips_elf_fake_sections): Rename from + mips_elf_fake_sections and make globally visible. + (_bfd_mips_elf_section_from_bfd_section): Rename from + mips_elf_section_from_bfd_section and make globally visible. + (_bfd_mips_elf_section_processing): New function, broken out of + mips_elf_section_processing. + (mips_elf32_section_processing): Rename from + mips_elf_section_processing; call + _bfd_mips_elf_section_processing. + (_bfd_mips_elf_symbol_processing): Rename from + mips_elf_symbol_processing and make globally visible. + (_bfd_mips_elf_read_ecoff_info): Rename from + mips_elf_read_ecoff_info and make globally visible. + (mips_elf32_ecoff_debug_swap): Rename from + mips_elf_ecoff_debug_swap. + * elf.c (_bfd_elf_symbol_from_bfd_symbol): Use asymbol rather than + struct symbol_cache_entry. + (_bfd_elf_validate_reloc): New function, moved in from + elfcode.h:validate_reloc. + * elfcode.h (validate_reloc): Remove; moved into elf.c and renamed + to _bfd_elf_validate_reloc. Change all callers. + * elf-bfd.h (bfd_section_from_shdr): Declare. + (_bfd_elf_symbol_from_bfd_symbol): Declare. + (_bfd_elf_validate_reloc): Declare. + (_bfd_mips_elf_object_p): Declare. + (_bfd_mips_elf_fake_sections): Declare. + (_bfd_mips_elf_section_from_bfd_section): Declare. + (_bfd_mips_elf_section_processing): Declare. + (_bfd_mips_elf_symbol_processing): Declare. + (_bfd_mips_elf_read_ecoff_info): Declare. + (_bfd_mips_elf_final_write_processing): Declare. + * elfxx-target.h (bfd_elfNN_get_reloc_upper_bound): Don't define + if already defined. + + * elf32-mips.c (mips_elf_object_p): Handle E_MIPS_ARCH_4. + (mips_elf_final_write_processing): Likewise. + +Wed May 29 16:15:29 1996 Ian Lance Taylor + + 64-bit MIPS ELF ABI objdump support: + * elf64-mips.c: New file. + * Makefile.in: Rebuild dependencies. + (BFD64_BACKENDS): Add elf64-mips.o. + (BFD64_BACKENDS_CFILES): Add elf64-mips.c. + * config.bfd (mips*el-*-elf*) Add bfd_elf64_bigmips_vec and + bfd_elf64_littlemips_vec to targ_selvecs. + (mips*-*-elf*): Likewise. + * confingure.in: Add bfd_elf64_bigmips_vec and + bfd_elf64_littlemips_vec to vector switch. + * configure: Rebuild. + * elf32-mips.c (_bfd_mips_elf_section_from_shdr): New function, + broken out of mips_elf_section_from_shdr. + (mips_elf32_section_from_shdr): Rename from + mips_elf_section_from_shdr. Call new function. + (elf_backend_section_from_shdr): Update name of renamed function. + * elf-bfd.h (struct elf_size_info): Change second parameter of + write_out_phdrs to be const. Likewise for second parameter of + swap_symbol_out. + (struct bfd_elf_section_data): Add rel_hdr2 field. + (bfd_elf32_swap_symbol_in): Change second parameter to be const. + (bfd_elf32_swap_symbol_out): Likewise. + (bfd_elf32_swap_reloc_in): Likewise. + (bfd_elf32_swap_reloc_out): Likewise. + (bfd_elf32_swap_reloca_in): Likewise. + (bfd_elf32_swap_reloca_out): Likewise. + (bfd_elf32_swap_phdr_in): Likewise. + (bfd_elf32_swap_phdr_out): Likewise. + (bfd_elf32_swap_dyn_in): Likewise. + (bfd_elf32_swap_dyn_out): Likewise. + (bfd_elf32_slurp_symbol_table): Declare. + (bfd_elf32_write_shdrs_and_ehdr): Declare. + (bfd_elf32_write_out_phdrs): Declare. + (bfd_elf64_swap_symbol_in): Change second parameter to be const. + (bfd_elf64_swap_symbol_out): Likewise. + (bfd_elf64_swap_reloc_in): Likewise. + (bfd_elf64_swap_reloc_out): Likewise. + (bfd_elf64_swap_reloca_in): Likewise. + (bfd_elf64_swap_reloca_out): Likewise. + (bfd_elf64_swap_phdr_in): Likewise. + (bfd_elf64_swap_phdr_out): Likewise. + (bfd_elf64_swap_dyn_in): Likewise. + (bfd_elf64_swap_dyn_out): Likewise. + (bfd_elf64_slurp_symbol_table): Declare. + (bfd_elf64_write_shdrs_and_ehdr): Declare. + (bfd_elf64_write_out_phdrs): Declare. + (_bfd_mips_elf_section_from_shdr): Declare. + * elf.c (bfd_section_from_shdr): Remove assertion requiring + SHT_REL/SHT_RELA to match use_rela_p. If there is already a reloc + section for the section, add the new one to rel_hdr2. Increment + reloc_count rather than setting it. + * elfcode.h (elf_slurp_symbol_table): Define name as macro. + Remove static declaration. + (elf_write_shdrs_and_ehdr): Define name as macro. + (elf_write_out_phdrs): Likewise. + (elf_swap_ehdr_in, elf_swap_ehdr_out): Declare. + (elf_swap_shdr_in, elf_swap_shdr_out): Declare. + (elf_swap_symbol_in): Change second parameter to be const. + (elf_swap_symbol_out): Likewise. + (elf_swap_ehdr_in, elf_swap_ehdr_out): Likewise. + (elf_swap_shdr_in, elf_swap_shdr_out): Likewise. + (elf_swap_phdr_in, elf_swap_phdr_out): Likewise. + (elf_swap_reloc_in, elf_swap_reloc_out): Likewise. + (elf_swap_reloca_in, elf_swap_reloca_out): Likewise. + (elf_write_out_phdrs): Rename from write_out_phdrs. Change second + parameter to be const. Make non-static. + (elf_write_shdrs_and_ehdr): Rename from write_shdrs_and_ehdr. + Make non-static. + (elf_slurp_symbol_table): Make non-static. + (NAME(_bfd_elf,size_info)): Update names of renamed functions. + * elfxx-target.h (elf_info_to_howto): Define if not defined. + (elf_backend_size_info): Likewise. + (elfNN_bed): Use elf_backend_size_info. + * targets.c (bfd_elf64_bigmips_vec): Declare. + (bfd_elf64_littlemips_vec): Declare. + (bfd_target_vector): Add bfd_elf64_bigmips_vec and + bfd_elf64_littlemips_vec if BFD64 is defined. + + * libbfd.c (bfd_get_file_window): Add cast to fprintf argument. + +Tue May 28 11:42:08 1996 Ian Lance Taylor + + * coff-sh.c (sh_relax_delete_bytes): Insert nop instructions, not + zeroes, in alignment holes. + + * configure: Rebuild with autoconf 2.10. + + * aoutx.h (NAME(aout,find_nearest_line)): Make room for the + potential leading underscore in the allocated buffer. + +Fri May 24 14:28:38 1996 Michael Meissner + + * elf32-ppc.c (ppc_elf_add_symbol_hook): Do not put small common + symbols into .sbss if this is a relocatable link. + +Thu May 23 12:26:24 1996 Ian Lance Taylor + + * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Warn about + undefined symbols when creating a shared library. + +Fri May 17 13:54:15 1996 Ian Lance Taylor + + * coff-sh.c: Add a bunch of new code and static const arrays to + support aligning loads and stores on four byte memory boundaries. + Also: + (sh_coff_howtos): Add entries for R_SH_CODE, R_SH_DATA and + R_SH_LABEL. + (sh_relax_section): Look for R_SH_CODE relocs. If we find one, + call sh_align_loads. + (sh_relax_delete_bytes): Don't mark R_SH_CODE or R_SH_DATA relocs + as unused. + +Thu May 16 16:34:13 1996 Ian Lance Taylor + + * cache.c (bfd_open_file): Unlink the file before opening it for + write. From Marty Leisner . + + * opncls.c (bfd_fdopenr): Set opened_once. + +Tue May 14 12:35:32 1996 Ian Lance Taylor + + * som.c (som_slurp_reloc_table): Clear external_relocs cache after + freeing it. + + * libbfd.c: Remove #ifdef FILE_OFFSET_IS_CHAR_INDEX, and compile + the code unconditionally. + +Mon May 13 19:51:37 1996 Ian Lance Taylor + + * libcoff-in.h (struct pei_section_tdata): Define structure. + (pei_section_data): Define macro. + * libcoff.h: Rebuild. + * coffcode.h (coff_set_alignment_hook): If COFF_IMAGE_WITH_PE, + store s_paddr field in pei_section_data. + (coff_compute_section_file_positions): Use pei_section_data rather + than _cooked_size, and don't overwrite an existing value. + (coff_write_object_contents): If COFF_OBJ_WITH_PE, set s_paddr to + 0. If COFF_IMAGE_WITH_PE, set s_paddr to pei_section_data. + * peicode.h (coff_bfd_copy_private_section_data): Define if + COFF_IMAGE_WITH_PE. + (pe_bfd_copy_private_section_data): New static function if + COFF_IMAGE_WITH_PE. + +Wed May 8 16:10:38 1996 Ian Lance Taylor + + * srec.c (srec_set_arch_mach): Write as a function rather than a + macro definition. + + * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): If an archive has + no map, just check each member in turn to see whether it is + required. + +Wed May 8 09:17:34 1996 Michael Meissner + + * ppcboot.c (ppcboot_object_p): Check for type 0x41 in partition + table. Call BFD_ASSERT to validate header size, instead of + calling fatal. + (ppcboot_bfd_print_private_bfd_data): Put quotes around partition + name. + +Tue May 7 16:10:19 1996 Michael Meissner + + * ppcboot.c: New target for looking at PPCbug boot records. + + * config{ure.in,.bfd}: Add support for ppcboot target. + * targets.c: Ditto. + * configure: Regenerate. + +Tue May 7 11:15:19 1996 Jeffrey A Law (law@cygnus.com) + + * coff-h8300.c (howto_table): Update names to match recent + changes to include/coff/internal.h. Fix minor errors in the + existing relocs. Add R_MOVL1 and R_MOVL2. + (rtype2howto): Similarly. + (h8300_reloc16_estimate): Rewrite to simplify, fix bugs in the + existing relaxing code and peform more relaxing. + (h8300_reloc16_extra_cases): Likewise. + +Mon May 6 18:24:09 1996 Jeffrey A Law (law@cygnus.com) + + * reloc16.c (bfd_coff_reloc16_get_value): Handle common + symbols correctly. + +Sat May 4 05:08:45 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) + + * elfcode.h (elf_object_p): Reject generic ELF target if + e_machine matches an alternate machine code in a specific backend. + + * netbsd-core.c (netbsd_core_vec): Remove initializer for + obsolete align_power_min field. + +Fri May 3 13:07:35 1996 Jeffrey A Law (law@cygnus.com) + + * coff-h8300.c (reloc_howto_type): Add howto entry for + R_PCRWORD_B. + (rtype2howto): Handle R_PCRWORD_B. + (h8300_reloc16_extra_cases): Handle R_PCRWORD_B. + (h8300_reloc_16_estimate): Likewise. Try to turn a 16bit + pc-relative branch (R_PCRWORD) into an 8bit pc-relative + branch (R_PCWORD_B). + +Fri May 3 10:47:41 1996 Ian Lance Taylor + + * aoutx.h (translate_from_native_sym_flags): Set the section for + BSF_CONSTRUCTOR symbols. + + * cofflink.c (_bfd_coff_link_input_bfd): Correct setting of + last_bf_index. + +Wed May 1 18:39:32 1996 Doug Evans + + * coffcode.h (coff_write_object_contents): In comdat section lookup, + stop looking when section is found. + +Wed May 1 14:17:57 1996 Ian Lance Taylor + + * coffcode.h (STRING_SIZE_SIZE): Define. + (styp_to_sec_flags): Handle long symbol names when looking for the + section symbol. + (bfd_coff_backend_data): Add _bfd_coff_long_section_names field. + (bfd_coff_long_section_names): Define. + (coff_write_object_contents): Handle long section names. + (bfd_coff_std_swap_table): Initialize new field. + * libcoff.h: Rebuild. + * coffgen.c (make_a_section_from_file): Handle long section + names. + (coff_write_symbols): Handle long section names. + * coff-alpha.c (alpha_ecoff_backend_data): Initialize new field. + * coff-mips.c (mips_ecoff_backend_data): Likewise. + * pe-arm.c (COFF_LONG_SECTION_NAMES): Define. + * pei-arm.c (COFF_LONG_SECTION_NAMES): Define. + * pe-i386.c (COFF_LONG_SECTION_NAMES): Define. + * pei-i386.c (COFF_LONG_SECTION_NAMES): Define. + * pe-ppc.c (COFF_LONG_SECTION_NAMES): Define. + * pei-ppc.c (COFF_LONG_SECTION_NAMES): Define. + + * bout.c (b_out_callback): Set lma of sections. + (b_out_bfd_get_relocated_section_contents): Rename in_abfd + parameter to output_bfd. Used input_bfd instead of output_bfd in + several places. + +Tue Apr 30 17:56:39 1996 Ian Lance Taylor + + * aoutx.h (translate_from_native_sym_flags): Don't create + SEC_CONSTRUCTOR sections. + * ecoff.c (ecoff_set_symbol_info): Likewise. + + * elf32-mips.c (mips_elf_copy_private_bfd_data): Copy elf_gp. + From Don Bowman . + +Tue Apr 30 17:06:32 1996 Doug Evans + + * coff-arm.c (armcoff_little_vec): If COFF_WITH_PE is defined, add + SEC_LINK_ONCE and SEC_LINK_DUPLICATES to section_flags. + +Mon Apr 29 13:15:17 1996 Ian Lance Taylor + + * elf32-mips.c (struct mips_elf_link_hash_entry): Add + mips_32_relocs field. + (mips_elf_link_hash_newfunc): Initialize mips_32_relocs field. + (mips_elf_relocate_section): Copy R_MIPS_REL32 and R_MIPS_32 + relocs against a global symbol which is not defined in a regular + file. + (mips_elf_check_relocs): For a R_MIPS_REL32 or R_MIPS_32 reloc + against a global symbol, increment mips_32_relocs. + (mips_elf_adjust_dynamic_symbol): If mips_32_relocs is set, and + the symbol is not defined in a regular file, make room in the + .rel.dyn section. + +Fri Apr 26 18:00:37 1996 Ian Lance Taylor + + * ecoff.c (ecoff_compute_section_file_positions): Track the real + file position and the virtual file position separately. Set + filepos information bsaed on the real file position. + (_bfd_ecoff_set_section_contents): Handle .lib sections like the + Jan 23 change to coffcode.h. + + * som.c (som_slurp_symbol_table): Set the symbol count to the + number of BFD symbols created. + +Fri Apr 26 12:34:29 1996 Michael Meissner + + * elf32-ppc.c (ppc_elf_check_relocs): Forward relocations to the + output file if linking shared objects. Loop to check all relocs, + rather than returning false on first error. + +Thu Apr 25 13:25:12 1996 Michael Meissner + + * elf32-ppc.c (ppc_elf_create_linker_section): Add PLT case. + (ppc_elf_additional_program_headers): If .interp section, bump # + of program headers by 1. + (ppc_elf_adjust_dynamic_symbol): Flesh out support. + (ppc_elf_size_dynamic_sections): Add support for .plt section. + (ppc_elf_check_relocs): Print out filename in debug code. Enable + PLT support. + (ppc_elf_finish_dynamic_symbol): Add support for PLT's, beef up + debug output. + (ppc_elf_relocate_section): If the output section isn't defined, + don't abort, just give an error message. + + * elflink.c (_bfd_elf_create_dynamic_sections): If the section + being created is .sdata or .sdata2, don't make the symbol dynamic. + +Wed Apr 24 14:04:07 1996 Ian Lance Taylor + + * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Look through the + members of an archive for dynamic objects with no symbols, and + pass them directly to check_archive_element. + (xcoff_link_check_ar_symbols): Pass dynamic objects to + xcoff_link_check_dynamic_ar_symbols. + (xcoff_link_check_dynamic_ar_symbols): New static function. + + * coff-rs6000.c (rs6000coff_vec): Change BFD_JUMP_TABLE_DYNAMIC + from _bfd_nodynamic to _bfd_xcoff. + * libcoff-in.h (_bfd_xcoff_get_dynamic_symtab_upper_bound): + Declare. + (_bfd_xcoff_canonicalize_dynamic_symtab): Declare. + (_bfd_xcoff_get_dynamic_reloc_upper_bound): Declare. + (_bfd_xcoff_canonicalize_dynamic_reloc): Declare. + * libcoff.h: Rebuild. + * xcofflink.c (xcoff_swap_ldrel_in): New static function. + (xcoff_get_section_contents): New static function. + (_bfd_xcoff_get_dynamic_symtab_upper_bound): New function. + (_bfd_xcoff_canonicalize_dynamic_symtab): New function. + (_bfd_xcoff_get_dynamic_reloc_upper_bound): New function. + (xcoff_dynamic_reloc): New static variable. + (_bfd_xcoff_canonicalize_dynamic_reloc): New function. + (xcoff_link_add_dynamic_symbols): Use xcoff_get_section_contents. + +Tue Apr 23 12:48:42 1996 Ian Lance Taylor + + * coff-sparc.c (bfd_coff_generic_reloc): Return bfd_reloc_ok even + if reloc_entry->addend is not 0. + (CALC_ADDEND): Just set the addend to reloc.r_offset. + +Mon Apr 22 18:29:01 1996 Doug Evans + + * elf32-sparc.c (_bfd_sparc_elf_howto_table): Fix spelling of + R_SPARC_GLOB_JMP. + * elf64-sparc.c (sparc64_elf_howto_table): Likewise. + Add entries for R_SPARC_[56]. + (sparc_reloc_map): Add entries for R_SPARC_[56]. + +Mon Apr 22 15:07:24 1996 Ian Lance Taylor + + Optimize linking of stabs in sections as used in ELF and COFF. + * stabs.c: New file. + * libbfd-in.h (_bfd_link_section_stabs): Declare. + (_bfd_write_section_stabs): Declare. + (_bfd_write_stab_strings): Declare. + * libbfd.h: Rebuild. + * libcoff-in.h (struct coff_section_tdata): Add stab_info field. + (struct coff_link_hash_table): Add stab_info field. + * libcoff.h: Rebuild. + * cofflink.c (_bfd_coff_link_hash_table_init): Initialize + stab_info field. + (coff_link_add_symbols): Call _bfd_link_section_stabs if + appropriate. + (_bfd_coff_final_link): Write out stab strings hash table. + (_bfd_coff_link_input_bfd): Handle optimized stabs sections. + * coff-ppc.c (ppc_bfd_coff_final_link): Write out stab strings + hash table. + * elf-bfd.h (struct elf_link_hash_table): Add stab_info field. + (struct bfd_elf_section_data): Add stab_info field. + * elf.c (_bfd_elf_link_hash_table_init): Initialize stab_info + field. + * elflink.h (elf_link_add_object_symbols): If appropriate, call + _bfd_link_section_stabs. + (elf_bfd_final_link): Write out stab strings hash table. + (elf_link_input_bfd): Handle optimized stabs sections. + * reloc.c (_bfd_final_link_relocate): Check address against + _raw_size rather than _cooked_size. + * Makefile.in: Rebuild dependencies. + (BFD_LIBS): Add stabs.o + (BFD_LIBS_CFILES): Add stabs.c. + + * VERSION: Increment for bfdlink.h change. + + * coffgen.c (coff_renumber_symbols): Correct handling of + BSF_NOT_AT_END common symbols. + +Fri Apr 19 19:21:56 1996 Ian Lance Taylor + + * coff-ppc.c (record_toc): Add cast to avoid warning. + (ppc_allocate_toc_section): Likewise. + (coff_ppc_relocate_section): Remove ANSI C string concatenation. + (ppc_coff_reloc_type_lookup): Remove unreached code. + * coffcode.h (coff_write_object_contents): Don't take the address + of an array. + * peicode.h (pe_print_idata): Add casts to avoid warning. + (pe_print_edata): Likewise. + (pe_print_reloc): Remove ANSI C string concatenation. + +Thu Apr 18 18:51:18 1996 Ian Lance Taylor + + * libcoff-in.h (struct coff_final_link_info): Add last_bf_index + and last_bf fields. + * libcoff.h: Rebuild. + * coffswap.h (coff_swap_aux_in): Swap endndx field for C_FCN + symbols. + (coff_swap_aux_out): Likewise. + * peicode.h (coff_swap_aux_in): Likewise. + (coff_swap_aux_out): Likewise. + * coffgen.c (coff_pointerize_aux): Check endndx field for C_FCN + symbols. + * cofflink.c (_bfd_coff_final_link): Initialize last_bf_index + field. + (_bfd_coff_link_input_bfd): Check endndx field for C_FCN symbols. + Fix up .bf endndx link fields. + * coff-ppc.c (ppc_bfd_coff_final_link): Initialize last_bf_index + field. + * xcofflink.c (xcoff_link_input_bfd): Check endndx field for C_FCN + symbols. + +Wed Apr 17 12:08:24 1996 Michael Meissner + + * pe{,i}-ppc.c (PPC_PE): Define instead of PPC, so that compiling + on Solaris PowerPC systems doesn't get confused. + + * ccffcode.h (coff_write_object_contents): Use #ifdef PPC_PE, not + #ifdef PPC. + + * elfcore.h (bfd_prstatus, bfd_fpregset): Add thread argument. + (elf_corefile_note): If HAVE_SYS_PROCFS_H is not defined, don't + update did_reg and did_reg2. + +Wed Apr 17 13:07:37 1996 Ian Lance Taylor + + * xcofflink.c (xcoff_link_input_bfd): Check for TOC overflow. + + * linker.c (_bfd_generic_link_add_one_symbol): When calling the + callback routines, pass h->root.string rather than name, in case + copy is true and name is transient. + +Tue Apr 16 16:36:38 1996 Stu Grossman (grossman@lisa.cygnus.com) + + * elfcore.h: Add support for core files with multiple threads. + (Primarily for Solaris.) + +Tue Apr 16 13:44:08 1996 Ian Lance Taylor + + * aoutx.h (NAME(aout,squirt_out_relocs)): Don't do anything if + section->orelocation is NULL. + + * coffgen.c (bfd_coff_get_syment): New function. + (bfd_coff_get_auxent): New function. + * bfd-in.h (bfd_coff_get_syment): Declare. + (bfd_coff_get_auxent): Declare. + * bfd-in2.h: Rebuild. + +Mon Apr 15 19:06:59 1996 Ian Lance Taylor + + * elf32-mips.c (struct mips_hi16): Define. + (mips_hi16_addr, mips_hi16_addend): Remove. + (mips_hi16_list): New static variable. + (mips_elf_hi16_reloc): Maintain a list of unmatched HI16 relocs. + (mips_elf_lo16_reloc): Process mips_hi16_list. + (mips_elf_relocate_section): Permit an arbitrary number of HI16 + relocs before the associated LO16 reloc. + +Wed Apr 10 00:23:53 1996 Ian Lance Taylor + + * versados.c (versados_scan): Check bfd_alloc return value. + (versados_object_p): Check all bfd_read return values. Require + that lang field be less than 10, to avoid confusion with Intel Hex + files. + + * libaout.h (WRITE_HEADERS): Write out the relocs even if there + aren't any symbols. + * aoutx.h (NAME(aout,swap_std_reloc_out)): Set r_index to N_ABS, + not 0, for an absolute symbol. + (NAME(aout,swap_ext_reloc_out)): Likewise. + + * ihex.c (ihex_scan): Accept a length of 4 for record type 5. + (ihex_write_object_contents): For a large start address, output + the full 32 bit address in record type 5. + + * ieee.c (ieee_write_byte): Change second parameter from bfd_byte + to int to avoid promotion problems in prototype. + +Tue Apr 9 11:44:21 1996 Ian Lance Taylor + + * configure.host: Use ${srcdir} when looking for picfrag. + + * configure.host: Switch on ${libdir}, not $(libdir). From + alan@spri.levels.unisa.edu.au (Alan Modra). + + * aoutx.h (aout_link_add_symbols): Always call add_dynamic_symbols + entry point, not just for DYNAMIC objects. + * sunos.c (sunos_add_dynamic_symbols): Always call + sunos_create_dynamic_sections. If called with a non DYNAMIC + object, don't do anything else. + (sunos_add_one_symbol): Don't call sunos_create_dynamic_sections. + +Mon Apr 8 12:09:36 1996 Ian Lance Taylor + + * configure.in: Permit --enable-shared to specify a list of + directories. + * configure: Rebuild. + + * configure.host: Set HLDFLAGS and SHLIB_CFLAGS for *-dec-osf* + host when configuring with --enable-shard. + +Fri Apr 5 12:24:13 1996 Ian Lance Taylor + + * config.bfd: Add i[345]86-*-freebsdelf* target; from John Polstra + . + + * linker.c (link_action): For WARN_ROW/warn, use MWARN, not CYCLE, + to avoid crashing in bfd_hash_replace. + + * sysdep.h: Use #ifdef, not #if. + +Thu Apr 4 23:32:23 1996 Ian Lance Taylor + + * config.in: Rebuild. + +Thu Apr 4 18:49:09 1996 Fred Fish + + * configure.in (mips-sony-bsd*): Fix typo in AC_DEFINE. + (AC_CHECK_HEADERS): Check for sys/time.h + (AC_HEADER_TIME): Add macro. + * configure: Rebuild. + * sysdep.h: Use TIME_WITH_SYS_TIME and HAVE_SYS_TIME_H + to control what combination of