home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-01-21 | 122.6 KB | 3,885 lines |
- diff -rc --new-file binutils-2.5.2/Makefile.in /gnu/src/amiga/binutils-2.5.2/Makefile.in
- *** binutils-2.5.2/Makefile.in Sat Oct 22 03:16:10 1994
- --- /gnu/src/amiga/binutils-2.5.2/Makefile.in Wed Nov 16 06:55:44 1994
- ***************
- *** 603,609 ****
- # Installation targets.
-
- .PHONY: install uninstall vault-install
- ! install: $(INSTALL_TARGET)
-
- uninstall:
- @echo "the uninstall target is not supported in this tree"
- --- 603,613 ----
- # Installation targets.
-
- .PHONY: install uninstall vault-install
- ! # AmigaDOS hack - for now we just want to install gas, the other
- ! # binutils are untested.
- ! #install: $(INSTALL_TARGET)
- ! install: install-gas
- !
-
- uninstall:
- @echo "the uninstall target is not supported in this tree"
- diff -rc --new-file binutils-2.5.2/Product-Info /gnu/src/amiga/binutils-2.5.2/Product-Info
- *** binutils-2.5.2/Product-Info Thu Jan 1 00:00:00 1970
- --- /gnu/src/amiga/binutils-2.5.2/Product-Info Fri Nov 18 12:43:19 1994
- ***************
- *** 0 ****
- --- 1,18 ----
- + .name
- + binutils
- + .fullname
- + GNU binutils
- + .type
- + Programmer Tools
- + .short
- + GNU binary utilities, Amiga source
- + .description
- + The GNU binary utilities.
- + .version
- + 2.5.2
- + .requirements
- + Amiga binaries require the ixemul.library.
- + .distribution
- + GNU Public License
- + .described-by
- + Fred Fish (fnf@amigalib.com)
- diff -rc --new-file binutils-2.5.2/bfd/Makefile.in /gnu/src/amiga/binutils-2.5.2/bfd/Makefile.in
- *** binutils-2.5.2/bfd/Makefile.in Wed Oct 12 15:57:35 1994
- --- /gnu/src/amiga/binutils-2.5.2/bfd/Makefile.in Thu Nov 10 15:57:49 1994
- ***************
- *** 118,123 ****
- --- 118,124 ----
- aout-ns32k.o \
- aout0.o \
- aout32.o \
- + amigados.o \
- bout.o \
- cf-i386lynx.o \
- cf-m68klynx.o \
- ***************
- *** 253,259 ****
- i386lynx.c cf-i386lynx.c m68klynx.c cf-m68klynx.c \
- sparclynx.c cf-sparclynx.c aix386-core.c hpux-core.c \
- irix-core.c lynx-core.c osf-core.c hash.c linker.c cofflink.c \
- ! ns32knetbsd.c sparcnetbsd.c
-
- HFILES = aout-target.h aoutf1.h aoutx.h coffcode.h \
- coffswap.h ecoffswap.h elf32-hppa.h elf32-target.h elf64-target.h \
- --- 254,260 ----
- i386lynx.c cf-i386lynx.c m68klynx.c cf-m68klynx.c \
- sparclynx.c cf-sparclynx.c aix386-core.c hpux-core.c \
- irix-core.c lynx-core.c osf-core.c hash.c linker.c cofflink.c \
- ! ns32knetbsd.c sparcnetbsd.c amigados.c
-
- HFILES = aout-target.h aoutf1.h aoutx.h coffcode.h \
- coffswap.h ecoffswap.h elf32-hppa.h elf32-target.h elf64-target.h \
- ***************
- *** 525,530 ****
- --- 526,533 ----
-
- bfd.ps:
- (cd $(docdir); $(MAKE) bfd.ps $(FLAGS_TO_PASS))
- +
- + amigados.o: amigados.c libamiga.h bfd.h
-
- # What appears below is generated by a hacked mkdep using gcc -MM.
-
- diff -rc --new-file binutils-2.5.2/bfd/amigados.c /gnu/src/amiga/binutils-2.5.2/bfd/amigados.c
- *** binutils-2.5.2/bfd/amigados.c Thu Jan 1 00:00:00 1970
- --- /gnu/src/amiga/binutils-2.5.2/bfd/amigados.c Mon Nov 21 07:42:25 1994
- ***************
- *** 0 ****
- --- 1,1040 ----
- + /* BFD back-end for Commodore-Amiga AmigaDOS binaries.
- + Copyright (C) 1990-1994 Free Software Foundation, Inc.
- + Contributed by Leonard Norrgard. Partially based on the bout
- + and ieee BFD backends and Markus Wild's tool hunk2gcc.
- +
- + This file is part of BFD, the Binary File Descriptor library.
- +
- + This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. */
- +
- + /* TODO:
- +
- + - writing of object files
- +
- + - .chipdata, .chipbss
- +
- + - fix fixme:s
- +
- + BFD:
- + - add flag to say if the format allows multiple sections with the
- + same name. Fix bfd_get_section_by_name() and bfd_make_section()
- + accordingly.
- +
- + - dumpobj.c: the disassembler: use relocation record data to find symbolic
- + names of addresses, when available. Needs new routine where one can
- + specify the source section of the symbol to be printed as well as some
- + rewrite of the disassemble functions.
- +
- + */
- +
- + #include "bfd.h"
- + #include "sysdep.h"
- + #include "libbfd.h"
- + #include "libamiga.h"
- +
- + #define GL(x) bfd_get_32 (abfd, (bfd_byte *) (x))
- +
- + #define DEBUG_AMIGA 0
- +
- + static boolean amiga_digest_file ();
- + static boolean amiga_mkobject ();
- +
- + reloc_howto_type howto_hunk_reloc8 =
- + {
- + HUNK_RELOC8, /* type */
- + 0, /* rightshift */
- + 0, /* size */
- + 0, /* bitsize */
- + true, /* pc_relative */
- + 0, /* bitpos */
- + complain_overflow_bitfield, /* complain_on_overflow */
- + 0, /* special_function */
- + "reloc8", /* textual name */
- + false, /* partial_inplace? */
- + 0x000000ff, /* src_mask */
- + 0x000000ff, /* dst_mask */
- + true /* pcrel_offset */
- + };
- +
- + reloc_howto_type howto_hunk_reloc16 =
- + {HUNK_RELOC16,0,0,0,true,0,complain_overflow_bitfield,0,"reloc16",false,0x0000ffff,0x0000ffff,true};
- +
- + reloc_howto_type howto_hunk_reloc32 =
- + {HUNK_RELOC32,0,0,0,true,0,complain_overflow_bitfield,0,"reloc32",false,0xffffffff,0xffffffff,true};
- +
- + reloc_howto_type howto_hunk_drel8 =
- + {HUNK_DREL8,0,0,0,false,0,complain_overflow_bitfield,0,"drel8",false,0x000000ff,0x000000ff,true};
- +
- + reloc_howto_type howto_hunk_drel16 =
- + {HUNK_DREL16,0,0,0,false,0,complain_overflow_bitfield,0,"drel16",false,0x0000ffff,0x0000ffff,true};
- +
- + reloc_howto_type howto_hunk_drel32 =
- + {HUNK_DREL32,0,0,0,false,0,complain_overflow_bitfield,0,"drel32",false,0xffffffff,0xffffffff,true};
- +
- + reloc_howto_type *amiga_howto_array[2][3] =
- + {
- + { &howto_hunk_reloc8, &howto_hunk_reloc16, &howto_hunk_reloc32 },
- + { &howto_hunk_drel8, &howto_hunk_drel16, &howto_hunk_drel32 }
- + };
- +
- + static bfd_target *
- + amiga_object_p (abfd)
- + bfd *abfd;
- + {
- + char buf[8];
- + unsigned int x;
- + struct stat stat_buffer;
- +
- + /* An Amiga object file must be at least 8 bytes long. */
- + if (bfd_read ((PTR) buf, 1, 8, abfd) != 8)
- + {
- + bfd_set_error(bfd_error_wrong_format);
- + return 0;
- + }
- +
- + /* Does it look like an Amiga object file? */
- + x = GL(buf);
- + if ((x != HUNK_UNIT) && (x != HUNK_HEADER))
- + {
- + /* Not an Amiga file. */
- + bfd_set_error(bfd_error_wrong_format);
- + return 0;
- + }
- +
- + /* So far it seems to be an Amiga file. Now slurp it
- + in and examine it closer. */
- + if (-1 == fstat (fileno ((FILE *) abfd->iostream), &stat_buffer))
- + {
- + bfd_set_error(bfd_error_system_call);
- + return 0;
- + }
- +
- + /* Can't fail and return (but must be declared boolean to suit
- + other bfd requirements). */
- + (void) amiga_mkobject (abfd);
- +
- + AMIGA_DATA(abfd)->symbol_tail_ptr = &AMIGA_DATA(abfd)->external_symbols;
- +
- + AMIGA_DATA(abfd)->first_byte = (unsigned long *) bfd_alloc (abfd, stat_buffer.st_size);
- + bfd_seek (abfd, 0, SEEK_SET);
- + bfd_read (AMIGA_DATA(abfd)->first_byte, 1, stat_buffer.st_size, abfd);
- + AMIGA_DATA(abfd)->file_pointer = AMIGA_DATA(abfd)->first_byte;
- + AMIGA_DATA(abfd)->file_end = (unsigned long *)((unsigned char *)AMIGA_DATA(abfd)->first_byte + stat_buffer.st_size);
- +
- + if (!amiga_digest_file (abfd))
- + {
- + /* Something went wrong. */
- + return (struct bfd_target *) 0;
- + }
- +
- + /* Set default architecture to m68k:68020. */
- + abfd->arch_info = bfd_scan_arch ("m68k:68020");
- +
- + return abfd->xvec;
- + }
- +
- + /* Skip over the hunk length longword + the number of longwords given there. */
- + #define next_hunk(abfd) \
- + { AMIGA_DATA(abfd)->file_pointer += 1 + GL(AMIGA_DATA(abfd)->file_pointer); }
- +
- + static asection *
- + amiga_get_section_by_hunk_number (abfd, hunk_number)
- + bfd *abfd;
- + unsigned int hunk_number;
- + {
- + /* A cache, so we don't have to search the entire list every time. */
- + static asection *last_reference;
- + asection *p;
- +
- + if (last_reference)
- + if (last_reference->target_index == hunk_number)
- + return last_reference;
- + for (p = abfd->sections; p != NULL; p = p->next)
- + if (p->target_index == hunk_number)
- + {
- + last_reference = p;
- + return p;
- + }
- + BFD_FAIL();
- + return (asection *) 0;
- + }
- +
- + /* Remember about a symbol found at the current file position.
- + Return number of longwords to advance the file_pointer with. */
- + static unsigned long
- + amiga_add_symbol (abfd, hunk_number)
- + bfd *abfd;
- + unsigned int hunk_number;
- + {
- + int length;
- +
- + amiga_symbol_type *symbol = bfd_alloc (abfd, sizeof (amiga_symbol_type));
- +
- + if (symbol)
- + {
- + amiga_data_type *amiga_data = AMIGA_DATA(abfd);
- + unsigned long *file_pointer = amiga_data->file_pointer;
- + unsigned char type = GL(file_pointer) >> 24;
- +
- + ++abfd->symcount;
- + *amiga_data->symbol_tail_ptr = symbol;
- + amiga_data->symbol_tail_ptr = &symbol->next;
- +
- + symbol->symbol.the_bfd = abfd;
- +
- + /* The symbol name is not necessarily nul-terminated in the file.
- + So, we move it to start on the length word and put a NUL at the
- + end of it all. This way, we avoid allocating separate memory for
- + the symbol name, while assuring that the name is nul-terminated. */
- +
- + length = (GL(file_pointer) & 0xffffff) << 2;
- + strncpy ((char *) file_pointer, (char *) (file_pointer + 1), length);
- + *(((char *)file_pointer) + length) = '\0';
- +
- + symbol->symbol.name = (char *)file_pointer;
- + symbol->symbol.udata = (PTR) NULL;
- + symbol->symbol.flags = ((type == EXT_DEF) || (type == EXT_ABS) || (type==EXT_SYMB))
- + ? BSF_GLOBAL : BSF_NO_FLAGS;
- + symbol->symbol.value = ((type == EXT_DEF) || (type == EXT_ABS) || (type==EXT_SYMB))
- + ? (symvalue) GL(file_pointer + 1 + (length>>2)) : 0;
- + symbol->symbol.section = amiga_get_section_by_hunk_number (abfd, hunk_number);
- + symbol->hunk_number = hunk_number;
- + symbol->type = type;
- + symbol->next = 0;
- + }
- + return length >> 2;
- + }
- +
- + static void
- + amiga_add_reloc (abfd, section, offset, symbol_number, howto, target_hunk)
- + bfd *abfd;
- + asection *section;
- + bfd_size_type offset;
- + int symbol_number;
- + reloc_howto_type *howto;
- + unsigned int target_hunk;
- + {
- + amiga_reloc_type *reloc;
- +
- + reloc = (amiga_reloc_type *) bfd_alloc (abfd, sizeof (amiga_reloc_type));
- + reloc->next = 0;
- +
- + abfd -> flags |= HAS_RELOC;
- + section -> flags |= SEC_RELOC;
- + ++section->reloc_count;
- + if (amiga_per_section(section)->reloc_tail_ptr)
- + amiga_per_section(section)->reloc_tail_ptr->next = reloc;
- + else
- + section->relocation = (struct reloc_cache_entry *) reloc;
- + amiga_per_section(section)->reloc_tail_ptr = reloc;
- + amiga_per_section(section)->reloc_tail_ptr->next = (amiga_reloc_type *) 0;
- + reloc->relent.address = offset;
- + reloc->relent.addend = 0;
- + reloc->relent.howto = howto;
- + reloc->symbol_number = symbol_number;
- + reloc->target_hunk = target_hunk;
- + }
- +
- + /* BFD doesn't currently allow multiple sections with the same
- + name, so we try a little harder to get a unique name. */
- + asection *
- + amiga_make_unique_section (abfd, name)
- + bfd *abfd;
- + CONST char *name;
- + {
- + asection *section;
- +
- + section = bfd_make_section (abfd, name);
- + if (!section)
- + {
- + int i = 1;
- + char *new_name;
- +
- + new_name = bfd_alloc (abfd, strlen(name) + 3);
- +
- + /* We try to come up with an original name (since BFD
- + currently requires all sections to have different names). */
- + while (!section && (i<=99))
- + {
- + sprintf (new_name, "%s_%u", name, i);
- + section = bfd_make_section (abfd, new_name);
- + }
- +
- + if (!section)
- + {
- + /* Complain about the given name. */
- + bfd_set_error(bfd_error_bad_value);
- + return 0;
- + }
- + }
- + return section;
- + }
- +
- + static boolean
- + amiga_digest_file (abfd)
- + bfd *abfd;
- + {
- + int is_chip;
- + int units = 0;
- + int hunk_number;
- + char *current_name = 0;
- + asection *current_section;
- + amiga_data_type *amiga_data = AMIGA_DATA(abfd);
- + int hunk_type;
- +
- + /* Hunk numbers starts with 0, but we pre-increment the hunk_number when
- + we assign a new one, so this really makes the first hunk number 0. */
- + hunk_number = -1;
- +
- + while (units < 2)
- + {
- + hunk_type = HUNK_VALUE(GL(amiga_data->file_pointer++));
- + #if DEBUG_AMIGA
- + printf ("Processing %s hunk...",
- + hunk_type == HUNK_UNIT ? "HUNK_UNIT" :
- + hunk_type == HUNK_NAME ? "HUNK_NAME" :
- + hunk_type == HUNK_DEBUG ? "HUNK_DEBUG" :
- + hunk_type == HUNK_OVERLAY ? "HUNK_OVERLAY" :
- + hunk_type == HUNK_BREAK ? "HUNK_BREAK" :
- + hunk_type == HUNK_HEADER ? "HUNK_HEADER" :
- + hunk_type == HUNK_CODE ? "HUNK_CODE" :
- + hunk_type == HUNK_DATA ? "HUNK_DATA" :
- + hunk_type == HUNK_BSS ? "HUNK_BSS" :
- + hunk_type == HUNK_RELOC8 ? "HUNK_RELOC8" :
- + hunk_type == HUNK_RELOC16 ? "HUNK_RELOC16" :
- + hunk_type == HUNK_RELOC32 ? "HUNK_RELOC32" :
- + hunk_type == HUNK_DREL8 ? "HUNK_DREL8" :
- + hunk_type == HUNK_DREL16 ? "HUNK_DREL16" :
- + hunk_type == HUNK_DREL32 ? "HUNK_DREL32" :
- + hunk_type == HUNK_SYMBOL ? "HUNK_SYMBOL" :
- + hunk_type == HUNK_EXT ? "HUNK_EXT" :
- + hunk_type == HUNK_END ? "HUNK_END" :
- + hunk_type == HUNK_LIB ? "HUNK_LIB" :
- + hunk_type == HUNK_INDEX ? "HUNK_INDEX" :
- + "*unknown*");
- + #endif
- + switch (hunk_type)
- + {
- + case HUNK_UNIT:
- + current_name =
- + (GL(amiga_data->file_pointer) == 0)
- + ? "" : (char *)(amiga_data->file_pointer + 1);
- +
- + /* Allow only one program unit per bfd. */
- + if (units++)
- + break;
- +
- + /* We always initialize hunk_number to -1, as desribed above. */
- + hunk_number = -1;
- +
- + next_hunk (abfd);
- + break;
- +
- + case HUNK_NAME:
- + {
- + int length = GL(amiga_data->file_pointer) << 2;
- +
- + /* Change the name to a nul-terminated string. */
- + strncpy ((char *)amiga_data->file_pointer, (char *)(amiga_data->file_pointer + 1), length);
- + *(((char *) amiga_data->file_pointer) + length) = '\0';
- + current_name = (char *) amiga_data->file_pointer;
- +
- + /* Can't use next_hunk() here, as we wrote over the hunk length
- + that next_hunk() looks at. */
- + amiga_data->file_pointer += 1 + (length>>2);
- + }
- + break;
- +
- + case HUNK_DEBUG:
- + /* The format for the HUNK_DEBUG, as produced by Amiga GNU C:
- +
- + longwords:
- +
- + |---------------|
- + | HUNK_DEBUG | 0x3f1, Amigados imposed
- + |---------------|
- + | N | Size of this hunk in longwords
- + |---------------|
- + | AMIGA_ZMAGIC | 0413, same as BSD unix ZMAGIC
- + |---------------|
- + | symtabsize | size of the symbol table in bytes
- + |---------------|
- + | stringtabsize | size of the string table in bytes
- + |---------------|
- + | symtab data | symbol table in a.out format,
- + : : size is symtabsize.
- + : .....:
- + |..........| |
- + | stringtab | string table in a.out format,
- + : data : size is stringtabsize.
- + : : (can start on byte boundary,
- + |---------------| and can be padded at the end).
- +
- + /* Same as BSD unix ZMAGIC, but I don't want to include
- + any BSD files here. */
- +
- + #define AMIGA_ZMAGIC 0413
- +
- + /* Identifier for the GNU C format for HUNK_DEBUG on the Amiga. */
- + if (GL(amiga_data->file_pointer + 1) == AMIGA_ZMAGIC)
- + {
- + amiga_data->symtab_size = GL(amiga_data->file_pointer + 2);
- + amiga_data->stringtab_size = GL(amiga_data->file_pointer + 3);
- + adata(abfd).sym_filepos =
- + (file_ptr) ((char *)(amiga_data->file_pointer + 4) - (char *)amiga_data->first_byte);
- + adata(abfd).str_filepos = adata(abfd).sym_filepos
- + + amiga_data->symtab_size;
- + }
- + else
- + fprintf (stderr, "unknown debug hunk type\n");
- + next_hunk (abfd);
- + break;
- +
- + case HUNK_OVERLAY:
- + /* Poor man's virtual memory. Not yet supported. */
- + /* fixme */
- + fprintf (stderr, "Warning: HUNK_OVERLAY encountered, ignoring.\n");
- + next_hunk (abfd);
- + break;
- +
- + case HUNK_BREAK:
- + /* HUNK_BREAK indicates the end of an overlay node. This
- + hunk consists of a single longword, HUNK_BREAK. As we
- + do not yet support overlays, we ignore thins hunk for now. */
- + /* fixme */
- + fprintf(stderr, "Warning: HUNK_BREAK encountered, ignoring.\n");
- + next_hunk (abfd);
- + break;
- +
- + case HUNK_HEADER:
- + /* This is the header of a load file.
- +
- + Skip resident library names (never used, it's
- + an obsolete feature of the file format). fixme: verify that! */
- + while (GL(amiga_data->file_pointer))
- + next_hunk (abfd);
- +
- + /* Skip null-word, table_size, F & L, and size-table. */
- + amiga_data->file_pointer += 4 + GL(amiga_data->file_pointer + 1) - GL(amiga_data->file_pointer + 2);
- + break;
- +
- + case HUNK_CODE:
- + is_chip = HUNK_ATTRIBUTE (GL(amiga_data->file_pointer - 1)) == HUNK_ATTR_CHIP;
- + if (is_chip)
- + fprintf (stderr, "Warning: CHIP code hunks are not supported, ignoring CHIP attribute\n");
- +
- + current_section = amiga_make_unique_section (abfd, (current_name && current_name[0]) ? current_name : ".text");
- + if (current_section == 0)
- + {
- + /* Fatal error. */
- + return false;
- + }
- + current_section->filepos = (char *) (amiga_data->file_pointer + 1) - (char *)amiga_data->first_byte;
- + current_section->_raw_size = GL(amiga_data->file_pointer) << 2;
- + current_section->target_index = ++hunk_number;
- + bfd_set_section_flags (abfd, current_section, SEC_ALLOC | SEC_LOAD | SEC_CODE | SEC_HAS_CONTENTS);
- +
- + next_hunk (abfd);
- + break;
- +
- + case HUNK_DATA:
- + current_section = amiga_make_unique_section (abfd, (current_name && current_name[0]) ? current_name : ".data");
- + if (current_section == 0)
- + {
- + /* Fatal error. */
- + return false;
- + }
- + current_section->filepos = (char *) (amiga_data->file_pointer + 1) - (char *)amiga_data->first_byte;
- + current_section->_raw_size = GL(amiga_data->file_pointer) << 2;
- + current_section->target_index = ++hunk_number;
- + bfd_set_section_flags (abfd, current_section, SEC_ALLOC | SEC_LOAD | SEC_DATA | SEC_HAS_CONTENTS);
- + next_hunk (abfd);
- + break;
- +
- + case HUNK_BSS:
- + current_section = amiga_make_unique_section (abfd, (current_name && current_name[0]) ? current_name : ".bss");
- + if (current_section == 0)
- + {
- + /* Fatal error. */
- + return false;
- + }
- + current_section->filepos = (file_ptr) -1;
- + current_section->_raw_size = GL(amiga_data->file_pointer) << 2;
- + current_section->target_index = ++hunk_number;
- + bfd_set_section_flags (abfd, current_section, SEC_ALLOC);
- + ++ amiga_data->file_pointer;
- + break;
- +
- + case HUNK_RELOC8:
- + case HUNK_RELOC16:
- + case HUNK_RELOC32:
- + case HUNK_DREL8:
- + case HUNK_DREL16:
- + case HUNK_DREL32:
- + {
- + int size, base_relative;
- + reloc_howto_type *howto;
- +
- + base_relative = GL(&amiga_data->file_pointer[-1]) >= HUNK_DREL32;
- + size = (base_relative ? HUNK_DREL8 : HUNK_RELOC8) - GL(&amiga_data->file_pointer[-1]);
- + howto = amiga_howto_array[base_relative][size];
- +
- + while (GL(amiga_data->file_pointer))
- + {
- + long to_reloc = GL(amiga_data->file_pointer + 1);
- + long n = GL(amiga_data->file_pointer);
- + long i = 1;
- +
- + while (i++ < n)
- + amiga_add_reloc (abfd, current_section,
- + GL(amiga_data->file_pointer + i + 1),
- + -1, howto, to_reloc);
- + amiga_data->file_pointer += GL(amiga_data->file_pointer) + 2;
- + }
- + ++amiga_data->file_pointer;
- + }
- + break;
- +
- + case HUNK_SYMBOL:
- + /* "You use this block to attach a symbol table to a hunk so that
- + you can use a symbolic debugger on the code. The linker passes
- + symbol table blocks through attached to the hunk and, if the hunks
- + are coagulated, coagulates the symbol tables. The loader does not
- + load symbol table blocks into memory; when this is required,
- + the debugger is expected to read the load file."
- + -- The AmigaDOS Manual, 3rd ed.
- +
- + GNU C on the Amiga passes all needed debug information in the
- + debug hunk (HUNK_DEBUG). Thus we do not depend on HUNK_SYMBOL
- + for the GNU debugger GDB to get symbol information and can safely
- + ignore this hunk.
- + If, however, someone would like to add full support for
- + HUNK_SYMBOL to be able to use some debugger that doesn't
- + understand the GNU C debug hunk, please go ahead.
- + As of this writing, the BarFly debugger written by
- + Ralph "laire" Schmidt is starting to understand the GNU C debug
- + hunk. As the GNU version of the debug hunk is publically
- + documented, unlike for example the format used by SAS Insitute
- + on the Amiga, I hope other debugger writers will follow his
- + example. -- vinsci@nic.funet.fi */
- +
- + /* The formats of the HUNK_SYMBOL and HUNK_EXT hunks are exactly
- + the same, except the type byte of anything in the HUNK_SYMBOL
- + is always zero. Thus we ignore the symbol hunk by ignoring
- + all EXT_SYMB's below and can thus reuse the code. */
- +
- + /* This is all jim-dandy if you are just using bfd for GDB or other
- + debuggers. Unfortunately, some other programs need the info,
- + for instance gprof. So I am going to process the symbol table
- + here. --LuebbeRW@lp.musc.edu */
- +
- + /* Fall through */
- +
- + case HUNK_EXT:
- +
- + while (GL(amiga_data->file_pointer))
- + {
- + int num, size, base_relative;
- + unsigned char type;
- + reloc_howto_type *howto;
- +
- + /* Make sure we don't set this flag for HUNK_SYMBOL hunks. */
- + if (hunk_type == HUNK_EXT)
- + abfd -> flags |= HAS_SYMS;
- +
- + switch (type = (GL(amiga_data->file_pointer) >> 24))
- + {
- + case EXT_SYMB: /* This is a symbol from HUNK_SYMBOL, which we
- + ignore. See long description above. */
- + num = amiga_add_symbol (abfd, hunk_number);
- + amiga_data->file_pointer += 2 + num;
- + break;
- +
- + case EXT_DEF: /* Relocatable definition. */
- + case EXT_ABS: /* Absolute definition. */
- + /* case EXT_RES: obsolete; Resident library definition. */
- +
- + num = amiga_add_symbol (abfd, hunk_number);
- + amiga_data->file_pointer += 2 + num;
- + break;
- +
- + case EXT_COMMON: /* 32 bit reference to COMMON block. */
- + {
- + int i = 0;
- +
- + num = amiga_add_symbol (abfd, hunk_number);
- + amiga_data->file_pointer += 2 + num;
- +
- + num = GL(amiga_data->file_pointer);
- + while (i++ < num)
- + amiga_add_reloc
- + (abfd, current_section, GL(amiga_data->file_pointer + i),
- + amiga_data->a.n_symbols, &howto_hunk_drel32, -1);
- + next_hunk (abfd);
- + }
- + break;
- +
- + case EXT_REF8: /* 8 bit reference to symbol. */
- + case EXT_REF16: /* 16 bit reference to symbol. */
- + case EXT_REF32: /* 32 bit reference to symbol. */
- + case EXT_DEXT8: /* 8 bit data relative reference. */
- + case EXT_DEXT16: /* 16 bit data relative reference. */
- + case EXT_DEXT32: /* 32 bit data relative reference. */
- + size = GL(amiga_data->file_pointer) >> 24;
- + base_relative = size >= EXT_DEXT32;
- + switch (size)
- + {
- + case EXT_REF32:
- + case EXT_DEXT32:
- + size = 2;
- + break;
- + case EXT_REF16:
- + case EXT_DEXT16:
- + size = 1;
- + break;
- + default:
- + size = 0;
- + }
- + howto = amiga_howto_array[base_relative][size];
- +
- + num = amiga_add_symbol (abfd, hunk_number);
- +
- + amiga_data->file_pointer += 1 + num;
- + {
- + int i = 0;
- +
- + num = GL(amiga_data->file_pointer);
- + while (i++ < num)
- + amiga_add_reloc (abfd, current_section,
- + GL(amiga_data->file_pointer + i),
- + amiga_data->a.n_symbols, howto, -1);
- + }
- + next_hunk (abfd);
- + break;
- +
- + default:
- + fprintf (stderr, "Unknown symbol type %d, don't know how to handle.\n", type);
- + /* Fatal error. */
- + return false;
- + }
- + }
- + ++ amiga_data->file_pointer;
- + break;
- +
- + case HUNK_END:
- + break;
- +
- + case HUNK_LIB:
- + case HUNK_INDEX:
- + fprintf (stderr, "Can not handle HUNK_LIB and HUNK_INDEX hunks.\nConvert the library to ALINK (join) format.\n");
- + break;
- +
- + default:
- + fprintf (stderr, "Unknown hunk type $%x, unit offset = $%x.\n",
- + GL(amiga_data->file_pointer -1),
- + ((amiga_data->file_pointer - 1) - amiga_data->first_byte) * 4);
- + /* Fatal error. */
- + return false;
- + }
- +
- + #if DEBUG_AMIGA
- + printf ("...hunk processed.\n");
- + #endif
- + if (amiga_data->file_pointer >= amiga_data->file_end)
- + break;
- + }
- +
- + /* OK. */
- + return true;
- + }
- +
- + static boolean
- + amiga_mkobject (abfd)
- + bfd *abfd;
- + {
- + struct amiga_data_struct *rawptr;
- +
- + rawptr = (struct amiga_data_struct *) bfd_zalloc (abfd, sizeof (struct amiga_data_struct));
- + abfd->tdata.amiga_data = rawptr;
- +
- + return true;
- + }
- +
- + static boolean
- + amiga_write_object_contents (abfd)
- + bfd *abfd;
- + {
- + /* fixme */
- + return true;
- + }
- +
- + static boolean
- + amiga_get_section_contents (abfd, section, location, offset, count)
- + bfd *abfd;
- + sec_ptr section;
- + PTR location;
- + file_ptr offset;
- + bfd_size_type count;
- + {
- + memmove ((void *) location,
- + (void *) (((int) AMIGA_DATA(abfd)->first_byte)
- + + (int) section->filepos
- + + (int) offset),
- + count);
- + return true;
- + }
- +
- + boolean
- + amiga_new_section_hook (abfd, newsect)
- + bfd *abfd;
- + asection *newsect;
- + {
- + newsect->used_by_bfd = (PTR) bfd_alloc (abfd, sizeof (amiga_per_section_type));
- + newsect->alignment_power = 2;
- + amiga_per_section(newsect)->reloc_tail_ptr = (amiga_reloc_type *) 0;
- + return true;
- + }
- +
- + void
- + amiga_slurp_symbol_table (abfd)
- + bfd *abfd;
- + {
- + /* fixme: currently we always load the symbols at check_format time,
- + so we don't do it here. When the amiga backend someday doesn't
- + keep more info than needed in memory, this will have to be fixed. */
- + }
- +
- + unsigned int
- + amiga_get_symtab_upper_bound (abfd)
- + bfd *abfd;
- + {
- + amiga_slurp_symbol_table (abfd);
- + return (abfd->symcount != 0) ?
- + (abfd->symcount+1) * (sizeof (amiga_symbol_type *)) : 0;
- + }
- +
- + unsigned int
- + amiga_get_symtab (abfd, location)
- + bfd *abfd;
- + asymbol **location;
- + {
- + amiga_symbol_type *symp;
- +
- + if (abfd->symcount)
- + {
- + int i = 0;
- +
- + amiga_slurp_symbol_table (abfd);
- +
- + for (symp = AMIGA_DATA(abfd)->external_symbols;
- + symp != (amiga_symbol_type *) NULL;
- + symp = symp->next)
- + {
- + location[i++] = &symp->symbol;
- + }
- + for (symp = AMIGA_DATA(abfd)->external_references;
- + symp != (amiga_symbol_type *) NULL;
- + symp = symp->next)
- + {
- + location[i++] = &symp->symbol;
- + }
- + }
- + return abfd->symcount;
- + }
- +
- + asymbol *
- + amiga_make_empty_symbol (abfd)
- + bfd *abfd;
- + {
- + amiga_symbol_type *new =
- + (amiga_symbol_type *) bfd_zalloc (abfd, sizeof (amiga_symbol_type));
- + new->symbol.the_bfd = abfd;
- + return &new->symbol;
- + }
- +
- + void
- + amiga_get_symbol_info (ignore_abfd, symbol, ret)
- + bfd *ignore_abfd;
- + asymbol *symbol;
- + symbol_info *ret;
- + {
- + bfd_symbol_info (symbol, ret);
- + if (symbol->name[0] == ' ')
- + ret->name = "* empty table entry ";
- + if (!symbol->section)
- + ret->type = (symbol->flags & BSF_LOCAL) ? 'a' : 'A';
- + }
- +
- + void
- + amiga_print_symbol (ignore_abfd, afile, symbol, how)
- + bfd *ignore_abfd;
- + PTR afile;
- + asymbol *symbol;
- + bfd_print_symbol_type how;
- + {
- + FILE *file = (FILE *)afile;
- +
- + switch (how) {
- + case bfd_print_symbol_name:
- + fprintf(file, "%s", symbol->name);
- + break;
- + case bfd_print_symbol_more:
- + /* fixme: adapt for amiga */
- + BFD_FAIL();
- + break;
- + case bfd_print_symbol_all:
- + {
- + CONST char *section_name = (symbol->section == (asection *)NULL)
- + ? (CONST char *)"*abs" : symbol->section->name;
- + if (symbol->name[0] == ' ')
- + {
- + fprintf(file, "* empty table entry ");
- + }
- + else
- + {
- + bfd_print_symbol_vandf ((PTR)file, symbol);
- +
- + fprintf(file," %-5s %04x %02x %s",
- + section_name,
- + amiga_symbol(symbol)->hunk_number, /* ->desc */
- + (unsigned) 0, /* ->other */
- + /* type */
- + symbol->name); /* ->name */
- + }
- + }
- + break;
- + }
- + }
- +
- + static unsigned int
- + amiga_get_reloc_upper_bound (abfd, asect)
- + bfd *abfd;
- + sec_ptr asect;
- + {
- + if (bfd_get_format (abfd) != bfd_object)
- + {
- + bfd_set_error(bfd_error_invalid_operation);
- + return 0;
- + }
- + return sizeof (arelent *) * (asect->reloc_count + 1);
- + }
- +
- + unsigned int
- + amiga_canonicalize_reloc (abfd, section, relptr, symbols)
- + bfd *abfd;
- + sec_ptr section;
- + arelent **relptr;
- + asymbol **symbols;
- + {
- + amiga_reloc_type *src = (amiga_reloc_type *) section->relocation;
- + int i = 0;
- +
- + while (src != (amiga_reloc_type *) 0)
- + {
- + if (src->symbol_number == -1)
- + src->relent.sym_ptr_ptr =
- + &(amiga_get_section_by_hunk_number(abfd,src->target_hunk))->symbol;
- + else
- + src->relent.sym_ptr_ptr = symbols + i++;
- + *relptr++ = &src->relent;
- + src = src->next;
- + }
- + *relptr = (arelent *) 0;
- +
- + return section->reloc_count;
- + }
- +
- + static boolean
- + amiga_set_section_contents (abfd, section, location, offset, count)
- + bfd *abfd;
- + sec_ptr section;
- + unsigned char *location;
- + file_ptr offset;
- + int count;
- + {
- + /* fixme */
- + return true;
- + }
- +
- + static boolean
- + amiga_set_arch_mach (abfd, arch, machine)
- + bfd *abfd;
- + enum bfd_architecture arch;
- + unsigned long machine;
- + {
- + bfd_default_set_arch_mach(abfd, arch, machine);
- +
- + if (arch == bfd_arch_m68k)
- + {
- + switch (machine)
- + {
- + case 68000:
- + case 68008:
- + case 68010:
- + case 68020:
- + case 68030:
- + case 68040:
- + case 68070:
- + case 0:
- + return true;
- + default:
- + return false;
- + }
- + }
- + return false;
- + }
- +
- + static int
- + DEFUN(amiga_sizeof_headers,(ignore_abfd, ignore),
- + bfd *ignore_abfd AND
- + boolean ignore)
- + {
- + /* The amiga hunk format doesn't have headers. */
- + return 0;
- + }
- +
- + /* Provided a BFD, a section and an offset into the section, calculate
- + and return the name of the source file and the line nearest to the
- + wanted location. */
- + boolean
- + amiga_find_nearest_line(abfd, section, symbols, offset, filename_ptr,
- + functionname_ptr, line_ptr)
- + bfd *abfd;
- + asection *section;
- + asymbol **symbols;
- + bfd_vma offset;
- + char **filename_ptr;
- + char **functionname_ptr;
- + int *line_ptr;
- + {
- + /* fixme (see aoutx.h, for example) */
- + return false;
- + }
- +
- + static const struct reloc_howto_struct *
- + amiga_bfd_reloc_type_lookup (abfd, code)
- + bfd *abfd;
- + bfd_reloc_code_real_type code;
- + {
- + switch (code)
- + {
- + case BFD_RELOC_8_PCREL: return &howto_hunk_reloc8;
- + case BFD_RELOC_16_PCREL: return &howto_hunk_reloc16;
- + case BFD_RELOC_32_PCREL: return &howto_hunk_reloc32;
- + case BFD_RELOC_8: return &howto_hunk_drel8;
- + case BFD_RELOC_16: return &howto_hunk_drel16;
- + case BFD_RELOC_32: return &howto_hunk_drel32;
- + default: return 0;
- + }
- + }
- +
- +
- + /* We don't have core files. */
- + #define amiga_core_file_failing_command _bfd_dummy_core_file_failing_command
- + #define amiga_core_file_failing_signal _bfd_dummy_core_file_failing_signal
- + #define amiga_core_file_matches_executable_p _bfd_dummy_core_file_matches_executable_p
- +
- + /* We use BSD-Unix generic archive files (fixme: test that this actually works). */
- + #define amiga_openr_next_archived_file bfd_generic_openr_next_archived_file
- + #define amiga_generic_stat_arch_elt bfd_generic_stat_arch_elt
- + #define amiga_slurp_armap bfd_slurp_bsd_armap
- + #define amiga_slurp_extended_name_table bfd_true
- + #define amiga_update_armap_timestamp bfd_true
- + #define amiga_construct_extended_name_table\
- + ((boolean (*) PARAMS ((bfd *, char **, bfd_size_type *, const char **))) \
- + bfd_true)
- + #define amiga_write_armap bsd_write_armap
- + #define amiga_truncate_arname bfd_bsd_truncate_arname
- +
- + #define amiga_bfd_debug_info_start bfd_void
- + #define amiga_bfd_debug_info_end bfd_void
- + #define amiga_bfd_debug_info_accumulate (PROTO(void,(*),(bfd*, struct sec *))) bfd_void
- +
- + /* fixme: (when everything else has been done) a tailor-made
- + amiga_get_relocated_section_contents would probably be faster
- + than the generic routine. */
- + #define amiga_bfd_get_relocated_section_contents bfd_generic_get_relocated_section_contents
- + #define amiga_bfd_relax_section bfd_generic_relax_section
- + #define amiga_get_lineno (struct lineno_cache_entry *(*)())bfd_nullvoidptr
- + #define amiga_close_and_cleanup _bfd_generic_close_and_cleanup
- + #define amiga_bfd_make_debug_symbol \
- + ((asymbol *(*) PARAMS ((bfd *, void *, unsigned long))) bfd_nullvoidptr)
- + #define amiga_bfd_link_hash_table_create _bfd_generic_link_hash_table_create
- + #define amiga_bfd_link_add_symbols _bfd_generic_link_add_symbols
- + #define amiga_bfd_final_link _bfd_generic_final_link
- + #define amiga_bfd_free_cached_info _bfd_generic_bfd_free_cached_info
- + #define amiga_bfd_is_local_label bfd_generic_is_local_label
- + #define amiga_bfd_copy_private_section_data bfd_void
- + #define amiga_bfd_copy_private_bfd_data bfd_void
- +
- + #if defined (amiga)
- + /* So that the JUMP_TABLE() macro below can work. */
- + #undef amiga
- + #endif
- +
- + bfd_target amiga_vec =
- + {
- + "amiga", /* name */
- + bfd_target_amiga_flavour,
- + true, /* data byte order is little */
- + true, /* header byte order is little */
- + HAS_RELOC | EXEC_P | HAS_LINENO | HAS_DEBUG | HAS_SYMS | HAS_LOCALS | DYNAMIC | WP_TEXT, /* object flags */
- + SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC, /* section flags */
- + '_', /* symbol leading char */
- + ' ', /* ar_pad_char */
- + 31, /* ar_max_namelen */
- + 2, /* minimum align */
- + bfd_getb64, bfd_getb_signed_64, bfd_putb64, bfd_getb32, bfd_getb_signed_32,
- + bfd_putb32, bfd_getb16, bfd_getb_signed_16, bfd_putb16, /* data */
- + bfd_getb64, bfd_getb_signed_64, bfd_putb64, bfd_getb32, bfd_getb_signed_32,
- + bfd_putb32, bfd_getb16, bfd_getb_signed_16, bfd_putb16, /* hdrs */
- + {
- + /* bfd_check_format */
- + _bfd_dummy_target,
- + amiga_object_p,
- + bfd_generic_archive_p,
- + _bfd_dummy_target
- + },
- + {
- + /* bfd_set_format */
- + bfd_false,
- + amiga_mkobject,
- + _bfd_generic_mkarchive,
- + bfd_false
- + },
- + {
- + /* bfd_write_contents */
- + bfd_false,
- + amiga_write_object_contents,
- + _bfd_write_archive_contents,
- + bfd_false
- + },
- + BFD_JUMP_TABLE_GENERIC (amiga),
- + BFD_JUMP_TABLE_COPY (amiga),
- + BFD_JUMP_TABLE_CORE (_bfd_nocore),
- + BFD_JUMP_TABLE_ARCHIVE (amiga),
- + BFD_JUMP_TABLE_SYMBOLS (amiga),
- + BFD_JUMP_TABLE_RELOCS (amiga),
- + BFD_JUMP_TABLE_WRITE (amiga),
- + BFD_JUMP_TABLE_LINK (amiga),
- + BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic),
- + (PTR) 0
- + #if 0
- + /* fixme: no longer in use? */
- + /* How applications can find out about amiga relocation types (see
- + documentation on reloc types). */
- + amiga_reloc_type_lookup
- + #endif
- + };
- diff -rc --new-file binutils-2.5.2/bfd/bfd-in2.h /gnu/src/amiga/binutils-2.5.2/bfd/bfd-in2.h
- *** binutils-2.5.2/bfd/bfd-in2.h Sat Oct 22 01:27:50 1994
- --- /gnu/src/amiga/binutils-2.5.2/bfd/bfd-in2.h Thu Nov 10 15:57:54 1994
- ***************
- *** 1787,1792 ****
- --- 1787,1793 ----
- struct lynx_core_struct *lynx_core_data;
- struct osf_core_struct *osf_core_data;
- struct cisco_core_struct *cisco_core_data;
- + struct amiga_data_struct *amiga_data;
- PTR any;
- } tdata;
-
- ***************
- *** 1984,1990 ****
- bfd_target_tekhex_flavour,
- bfd_target_srec_flavour,
- bfd_target_som_flavour,
- ! bfd_target_os9k_flavour};
-
- /* Forward declaration. */
- typedef struct bfd_link_info _bfd_link_info;
- --- 1985,1992 ----
- bfd_target_tekhex_flavour,
- bfd_target_srec_flavour,
- bfd_target_som_flavour,
- ! bfd_target_os9k_flavour,
- ! bfd_target_amiga_flavour};
-
- /* Forward declaration. */
- typedef struct bfd_link_info _bfd_link_info;
- diff -rc --new-file binutils-2.5.2/bfd/bfd.c /gnu/src/amiga/binutils-2.5.2/bfd/bfd.c
- *** binutils-2.5.2/bfd/bfd.c Fri Oct 14 23:16:16 1994
- --- /gnu/src/amiga/binutils-2.5.2/bfd/bfd.c Thu Nov 10 15:57:57 1994
- ***************
- *** 169,174 ****
- --- 169,175 ----
- . struct lynx_core_struct *lynx_core_data;
- . struct osf_core_struct *osf_core_data;
- . struct cisco_core_struct *cisco_core_data;
- + . struct amiga_data_struct *amiga_data;
- . PTR any;
- . } tdata;
- .
- diff -rc --new-file binutils-2.5.2/bfd/config/amigados.mh /gnu/src/amiga/binutils-2.5.2/bfd/config/amigados.mh
- *** binutils-2.5.2/bfd/config/amigados.mh Thu Jan 1 00:00:00 1970
- --- /gnu/src/amiga/binutils-2.5.2/bfd/config/amigados.mh Thu Nov 10 15:57:59 1994
- ***************
- *** 0 ****
- --- 1,5 ----
- + # Host makefile fragment for Commodore Amiga running AmigaDOS
- + # Use the GNU C compiler.
- + CC=gcc
- + # Don't use -g, it doesn't do anything useful yet. Optimize though.
- + CFLAGS=-O
- diff -rc --new-file binutils-2.5.2/bfd/config/amigados.mt /gnu/src/amiga/binutils-2.5.2/bfd/config/amigados.mt
- *** binutils-2.5.2/bfd/config/amigados.mt Thu Jan 1 00:00:00 1970
- --- /gnu/src/amiga/binutils-2.5.2/bfd/config/amigados.mt Thu Nov 10 15:58:01 1994
- ***************
- *** 0 ****
- --- 1,3 ----
- + # Target config file for Commodore Amiga running AmigaDOS
- + DEFAULT_VECTOR=amiga_vec
- + SELECT_ARCHITECTURES=bfd_m68k_arch
- diff -rc --new-file binutils-2.5.2/bfd/config.bfd /gnu/src/amiga/binutils-2.5.2/bfd/config.bfd
- *** binutils-2.5.2/bfd/config.bfd Tue Sep 13 18:30:07 1994
- --- /gnu/src/amiga/binutils-2.5.2/bfd/config.bfd Thu Nov 10 15:58:03 1994
- ***************
- *** 81,86 ****
- --- 81,87 ----
- m68*-*-vxworks*) bfd_name=m68k-aout strip_underscore=yes ;;
- m68*-ericsson-*) bfd_name=m68k-ose strip_underscore=yes ;;
- m68*-netx-*) bfd_name=m68k-aout strip_underscore=yes ;;
- + m68*-cbm-amigados*) bfd_name=amigados ;;
-
- m88*-harris-cxux*) bfd_name=m88k-elf ;;
- # DGUX used to use COFF, but now (Jan 94) I believe it uses ELF by default.
- diff -rc --new-file binutils-2.5.2/bfd/configure.in /gnu/src/amiga/binutils-2.5.2/bfd/configure.in
- *** binutils-2.5.2/bfd/configure.in Wed Oct 19 18:00:22 1994
- --- /gnu/src/amiga/binutils-2.5.2/bfd/configure.in Mon Nov 21 07:42:27 1994
- ***************
- *** 137,142 ****
- --- 137,143 ----
- # with the two vector lists in targets.c.
- a29kcoff_big_vec) tb="$tb coff-a29k.o cofflink.o" ;;
- a_out_adobe_vec) tb="$tb aout-adobe.o aout32.o stab-syms.o" ;;
- + amiga_vec) tb="$tb amigados.o sunos.o aout32.o stab-syms.o" ;;
- aout0_big_vec) tb="$tb aout0.o aout32.o stab-syms.o" ;;
- aout_mips_big_vec) tb="$tb mipsbsd.o aout32.o stab-syms.o" ;;
- aout_mips_little_vec) tb="$tb mipsbsd.o aout32.o stab-syms.o" ;;
- ***************
- *** 273,281 ****
- test -n "$DEFAULT_VECTOR" && defvec="$DEFAULT_VECTOR"
-
- echo "TDEFAULTS = \
- ! ${defvec+-DDEFAULT_VECTOR=$defvec} \
- ! ${selvecs+-DSELECT_VECS='$selvecs'} \
- ! ${selarchs+-DSELECT_ARCHITECTURES='$selarchs'}" \
- >> Makefile.2
-
- cat Makefile.tmp >> Makefile.2
- --- 274,282 ----
- test -n "$DEFAULT_VECTOR" && defvec="$DEFAULT_VECTOR"
-
- echo "TDEFAULTS = \
- ! -DDEFAULT_VECTOR=amiga_vec \
- ! -DSELECT_VECS='&amiga_vec' \
- ! -DSELECT_ARCHITECTURES=bfd_m68k_arch" \
- >> Makefile.2
-
- cat Makefile.tmp >> Makefile.2
- diff -rc --new-file binutils-2.5.2/bfd/hosts/amigados.h /gnu/src/amiga/binutils-2.5.2/bfd/hosts/amigados.h
- *** binutils-2.5.2/bfd/hosts/amigados.h Thu Jan 1 00:00:00 1970
- --- /gnu/src/amiga/binutils-2.5.2/bfd/hosts/amigados.h Thu Nov 10 15:58:07 1994
- ***************
- *** 0 ****
- --- 1,5 ----
- + /* Host configuration for AmigaDOS */
- + #ifndef hosts_amigados_h
- + #define hosts_amigados_h
- + #include "hosts/std-host.h"
- + #endif /* hosts_amigados_h */
- diff -rc --new-file binutils-2.5.2/bfd/libamiga.h /gnu/src/amiga/binutils-2.5.2/bfd/libamiga.h
- *** binutils-2.5.2/bfd/libamiga.h Thu Jan 1 00:00:00 1970
- --- /gnu/src/amiga/binutils-2.5.2/bfd/libamiga.h Thu Nov 10 15:58:09 1994
- ***************
- *** 0 ****
- --- 1,149 ----
- + /* BFD back-end data structures for AmigaOS.
- + Copyright (C) 1992-1994 Free Software Foundation, Inc.
- + Contributed by Leonard Norrgard.
- +
- + This file is part of BFD, the Binary File Descriptor library.
- +
- + This program 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., 675 Mass Ave, Cambridge, MA 02139, USA. */
- +
- + #ifdef __STDC__
- + #define CAT3(a,b,c) a##b##c
- + #else
- + #define CAT3(a,b,c) a/**/b/**/c
- + #endif
- +
- + #define GET_WORD bfd_h_get_32
- + #define GET_SWORD (int32_type)GET_WORD
- + #define PUT_WORD bfd_h_put_32
- + #define NAME(x,y) CAT3(x,_32_,y)
- + #define JNAME(x) CAT(x,_32)
- + #define BYTES_IN_WORD 4
- +
- + /* Hunk ID numbers. */
- + #define HUNK_UNIT 999
- + #define HUNK_NAME 1000
- + #define HUNK_CODE 1001
- + #define HUNK_DATA 1002
- + #define HUNK_BSS 1003
- + #define HUNK_RELOC32 1004
- + #define HUNK_RELOC16 1005
- + #define HUNK_RELOC8 1006
- + #define HUNK_EXT 1007
- + #define HUNK_SYMBOL 1008
- + #define HUNK_DEBUG 1009
- + #define HUNK_END 1010
- + #define HUNK_HEADER 1011
- + #define HUNK_OVERLAY 1013
- + #define HUNK_BREAK 1014
- + #define HUNK_DREL32 1015
- + #define HUNK_DREL16 1016
- + #define HUNK_DREL8 1017
- + #define HUNK_LIB 1018
- + #define HUNK_INDEX 1019
- +
- + /* The hunk ID part. */
- + #define HUNK_VALUE(hunk_id) ((hunk_id) & 0x3fffffff)
- +
- + /* Attributes of a hunk. */
- + #define HUNK_ATTRIBUTE(hunk_id) ((hunk_id) >> 30)
- + #define HUNK_ATTR_CHIP 0x01 /* Hunk contents must go into chip (graphics) memory. */
- +
- +
- + /* HUNK_EXT sub-types. */
- + #define EXT_SYMB 0 /* Symbol table. */
- + #define EXT_DEF 1 /* Relocatable definition. */
- + #define EXT_ABS 2 /* Absolute definition. */
- + #define EXT_RES 3 /* Obsolete. */
- + #define EXT_REF32 129 /* 32 bit reference to symbol. */
- + #define EXT_COMMON 130 /* 32 bit reference to COMMON block. */
- + #define EXT_REF16 131 /* 16 bit reference to symbol. */
- + #define EXT_REF8 132 /* 8 bit reference to symbol. */
- + #define EXT_DEXT32 133 /* 32 bit data releative reference. */
- + #define EXT_DEXT16 134 /* 16 bit data releative reference. */
- + #define EXT_DEXT8 135 /* 8 bit data releative reference. */
- +
- +
- + typedef struct amiga_reloc {
- + arelent relent;
- + struct amiga_reloc *next;
- + int symbol_number;
- + unsigned int target_hunk;
- + } amiga_reloc_type;
- +
- + typedef struct amiga_symbol {
- + asymbol symbol;
- + struct amiga_symbol *next;
- + unsigned long hunk_number;
- + unsigned long value;
- + unsigned char type;
- + } amiga_symbol_type;
- +
- + typedef struct amiga_per_section
- + {
- + amiga_reloc_type *reloc_tail_ptr;
- + } amiga_per_section_type;
- + #define amiga_per_section(x) ((amiga_per_section_type *)((x)->used_by_bfd))
- +
- + /* The `tdata' struct for all a.out-like object file formats.
- + Various things depend on this struct being around any time an a.out
- + file is being handled. An example is dbxread.c in GDB. */
- +
- + struct amiga_data {
- + struct internal_exec *hdr; /* exec file header */
- + amiga_symbol_type *symbols; /* symtab for input bfd */
- +
- + /* Filler, so we can pretend to be an a.out to GDB. */
- + asection *dummy_1_textsec;
- + asection *dummy_2_datasec;
- + asection *dummy_3_bsssec;
- +
- + /* The positions of the string table and symbol table. */
- + file_ptr sym_filepos;
- + file_ptr str_filepos;
- +
- + unsigned int n_symbols; /* number of symbols */
- +
- + /* Size of a relocation entry in external form */
- + unsigned dummy_reloc_entry_size;
- +
- + /* Size of a symbol table entry in external form */
- + unsigned symbol_entry_size;
- +
- + unsigned exec_bytes_size;
- + unsigned vma_adjusted : 1;
- + };
- +
- + typedef struct amiga_data_struct {
- + struct amiga_data a;
- +
- + unsigned long symtab_size;
- + unsigned long stringtab_size;
- +
- + unsigned long *first_byte;
- + unsigned long *file_end;
- + unsigned long *file_pointer;
- + amiga_symbol_type *external_symbols;
- + amiga_symbol_type *external_references;
- + amiga_symbol_type **symbol_tail_ptr;
- + } amiga_data_type;
- +
- + #define adata(bfd) ((bfd)->tdata.amiga_data->a)
- +
- + /* We take the address of the first element of an asymbol to ensure that the
- + macro is only ever applied to an asymbol */
- + #define amiga_symbol(asymbol) ((amiga_symbol_type *)(&(asymbol)->the_bfd))
- +
- + #define AMIGA_DATA(abfd) ((abfd)->tdata.amiga_data)
- +
- diff -rc --new-file binutils-2.5.2/bfd/targets.c /gnu/src/amiga/binutils-2.5.2/bfd/targets.c
- *** binutils-2.5.2/bfd/targets.c Sat Oct 22 01:28:21 1994
- --- /gnu/src/amiga/binutils-2.5.2/bfd/targets.c Thu Nov 10 15:58:12 1994
- ***************
- *** 146,152 ****
- . bfd_target_tekhex_flavour,
- . bfd_target_srec_flavour,
- . bfd_target_som_flavour,
- ! . bfd_target_os9k_flavour};
- .
- .{* Forward declaration. *}
- .typedef struct bfd_link_info _bfd_link_info;
- --- 146,153 ----
- . bfd_target_tekhex_flavour,
- . bfd_target_srec_flavour,
- . bfd_target_som_flavour,
- ! . bfd_target_os9k_flavour,
- ! . bfd_target_amiga_flavour};
- .
- .{* Forward declaration. *}
- .typedef struct bfd_link_info _bfd_link_info;
- ***************
- *** 424,429 ****
- --- 425,431 ----
- we can't intermix extern's and initializers. */
- extern const bfd_target a29kcoff_big_vec;
- extern const bfd_target a_out_adobe_vec;
- + extern const bfd_target amiga_vec;
- extern const bfd_target aout_mips_big_vec;
- extern const bfd_target aout_mips_little_vec;
- extern const bfd_target aout0_big_vec;
- ***************
- *** 528,533 ****
- --- 530,536 ----
- it wasn't omitted by mistake. */
- &a29kcoff_big_vec,
- &a_out_adobe_vec,
- + &amiga_vec,
- #if 0 /* No one seems to use this. */
- &aout_mips_big_vec,
- #endif
- diff -rc --new-file binutils-2.5.2/config/mh-amigados /gnu/src/amiga/binutils-2.5.2/config/mh-amigados
- *** binutils-2.5.2/config/mh-amigados Thu Jan 1 00:00:00 1970
- --- /gnu/src/amiga/binutils-2.5.2/config/mh-amigados Thu Nov 10 15:58:12 1994
- ***************
- *** 0 ****
- --- 1,6 ----
- + # Host makefile fragment for Commodore Amiga running AmigaDOS.
- +
- + # There is no standard system compiler. Assume use GNU C.
- + CC = gcc
- + # There is no support for -g yet. But use -O instead.
- + CFLAGS = -O
- diff -rc --new-file binutils-2.5.2/configure /gnu/src/amiga/binutils-2.5.2/configure
- *** binutils-2.5.2/configure Wed Oct 19 16:05:50 1994
- --- /gnu/src/amiga/binutils-2.5.2/configure Mon Nov 21 07:42:28 1994
- ***************
- *** 36,46 ****
- # config.status is removed.
- #
-
- export PATH || (echo "OOPS, this isn't sh. Desperation time. I will feed myself to sh."; sh $0 $argv; kill $$)
-
- remove=rm
- ! hard_link=ln
- ! symbolic_link='ln -s'
-
- #for Test
- #remove="echo rm"
- --- 36,49 ----
- # config.status is removed.
- #
-
- + # In places where the argument to echo may start with a '-', use /bin/echo
- + # since the AmigaDOS pdksh builtin echo botches this case.
- +
- export PATH || (echo "OOPS, this isn't sh. Desperation time. I will feed myself to sh."; sh $0 $argv; kill $$)
-
- remove=rm
- ! hard_link=cp
- ! symbolic_link=cp
-
- #for Test
- #remove="echo rm"
- ***************
- *** 65,71 ****
- norecursion=
- other_options=
- package_makefile_frag=
- ! prefix=/usr/local
- progname=
- program_prefix=
- program_prefixoption=
- --- 68,77 ----
- norecursion=
- other_options=
- package_makefile_frag=
- ! # This is a hack so we don't have to remember to always configure using
- ! # the "--prefix=/gnu" option. Personally I feel this should be settable
- ! # in a config file. -fnf
- ! prefix=/gnu
- progname=
- program_prefix=
- program_prefixoption=
- ***************
- *** 102,110 ****
- ## path. Since PATH might include "." we also add `pwd` to the end of PATH.
- ##
-
- ! progname=$0
- # if PWD already has a value, it is probably wrong.
- - if [ -n "$PWD" ]; then PWD=`pwd`; fi
-
- case "${progname}" in
- /*) ;;
- --- 108,120 ----
- ## path. Since PATH might include "." we also add `pwd` to the end of PATH.
- ##
-
- ! # For some reason, the value of $0 in AmigaDOS pdksh ends up with a
- ! # trailing '/' that needs to be stripped.
- ! progname=`/bin/echo $0 | sed 's:/$::'`
- ! # if PWD already has a value, it is probably wrong.
- ! # The AmigaDOS pksh can't change the value of PWD, it's readonly.
- ! #if [ -n "$PWD" ]; then PWD=`pwd`; fi
- # if PWD already has a value, it is probably wrong.
-
- case "${progname}" in
- /*) ;;
- ***************
- *** 140,146 ****
- # Split out the argument for options that take them
- case $option in
- --*=*)
- ! optarg=`echo $option | sed -e 's/^[^=]*=//'`
- ;;
- # These options have mandatory values. Since we didn't find an = sign,
- # the value must be in the next argument
- --- 150,156 ----
- # Split out the argument for options that take them
- case $option in
- --*=*)
- ! optarg=`/bin/echo $option | sed -e 's/^[^=]*=//'`
- ;;
- # These options have mandatory values. Since we didn't find an = sign,
- # the value must be in the next argument
- ***************
- *** 165,171 ****
- --cache*)
- ;;
- --disable-*)
- ! enableopt=`echo ${option} | sed 's:^--disable-:enable_:;s:-:_:g'`
- eval $enableopt=no
- disableoptions="$disableoptions $option"
- ;;
- --- 175,181 ----
- --cache*)
- ;;
- --disable-*)
- ! enableopt=`/bin/echo ${option} | sed 's:^--disable-:enable_:;s:-:_:g'`
- eval $enableopt=no
- disableoptions="$disableoptions $option"
- ;;
- ***************
- *** 175,181 ****
- *) optarg=yes ;;
- esac
-
- ! enableopt=`echo ${option} | sed 's:^--::;s:=.*$::;s:-:_:g'`
- eval $enableopt="$optarg"
- enableoptions="$enableoptions $option"
- ;;
- --- 185,191 ----
- *) optarg=yes ;;
- esac
-
- ! enableopt=`/bin/echo ${option} | sed 's:^--::;s:=.*$::;s:-:_:g'`
- eval $enableopt="$optarg"
- enableoptions="$enableoptions $option"
- ;;
- ***************
- *** 217,223 ****
- ;;
- --program-transform-name* | --program-t*)
- # Double any backslashes or dollar signs in the argument
- ! program_transform_name="${program_transform_name} -e `echo ${optarg} | sed -e 's/\\\\/\\\\\\\\/g' -e 's/\\\$/$$/g'`"
- program_transform_nameoption="${program_transform_nameoption} --program-transform-name='$optarg'"
- ;;
- --rm)
- --- 227,233 ----
- ;;
- --program-transform-name* | --program-t*)
- # Double any backslashes or dollar signs in the argument
- ! program_transform_name="${program_transform_name} -e `/bin/echo ${optarg} | sed -e 's/\\\\/\\\\\\\\/g' -e 's/\\\$/$$/g'`"
- program_transform_nameoption="${program_transform_nameoption} --program-transform-name='$optarg'"
- ;;
- --rm)
- ***************
- *** 236,242 ****
- # bolted into an object file as debug info, it has two slashes
- # in it. Ordinarily this is ok, but emacs takes double slash
- # to mean "forget the first part".
- ! srcdir=`echo $optarg | sed -e 's:/$::'`
- ;;
- --srcdir* | --sr*)
- srcdir=$optarg
- --- 246,252 ----
- # bolted into an object file as debug info, it has two slashes
- # in it. Ordinarily this is ok, but emacs takes double slash
- # to mean "forget the first part".
- ! srcdir=`/bin/echo $optarg | sed -e 's:/$::'`
- ;;
- --srcdir* | --sr*)
- srcdir=$optarg
- ***************
- *** 258,264 ****
- verbose=--verbose
- ;;
- --version | --V | --vers*)
- ! echo "This is Cygnus Configure version" `echo ${version} | sed 's/[ $:]//g'`
- exit 0
- ;;
- --with-*)
- --- 268,274 ----
- verbose=--verbose
- ;;
- --version | --V | --vers*)
- ! echo "This is Cygnus Configure version" `/bin/echo ${version} | sed 's/[ $:]//g'`
- exit 0
- ;;
- --with-*)
- ***************
- *** 267,278 ****
- *) optarg=yes ;;
- esac
-
- ! withopt=`echo ${option} | sed 's:^--::;s:=.*$::;s:-:_:g'`
- eval $withopt="$optarg"
- withoptions="$withoptions $option"
- ;;
- --without-*)
- ! withopt=`echo ${option} | sed 's:^--::;s:out::;s:-:_:g'`
- eval $withopt=no
- withoutoptions="$withoutoptions $option"
- ;;
- --- 277,288 ----
- *) optarg=yes ;;
- esac
-
- ! withopt=`/bin/echo ${option} | sed 's:^--::;s:=.*$::;s:-:_:g'`
- eval $withopt="$optarg"
- withoptions="$withoptions $option"
- ;;
- --without-*)
- ! withopt=`/bin/echo ${option} | sed 's:^--::;s:out::;s:-:_:g'`
- eval $withopt=no
- withoutoptions="$withoutoptions $option"
- ;;
- ***************
- *** 331,337 ****
- NOUNDEFS)
- # Neither --host option nor undefs were present.
- # Call config.guess.
- ! guesssys=`echo ${progname} | sed 's/configure$/config.guess/'`
- if host_alias=`${guesssys}`
- then
- # If the string we are going to use for
- --- 341,347 ----
- NOUNDEFS)
- # Neither --host option nor undefs were present.
- # Call config.guess.
- ! guesssys=`/bin/echo ${progname} | sed 's/configure$/config.guess/'`
- if host_alias=`${guesssys}`
- then
- # If the string we are going to use for
- ***************
- *** 411,418 ****
- exit 1
- fi
-
- ! configsub=`echo ${progname} | sed 's/configure$/config.sub/'`
- ! moveifchange=`echo ${progname} | sed 's/configure$/move-if-change/'`
-
- # this is a hack. sun4 must always be a valid host alias or this will fail.
- if ${configsub} sun4 >/dev/null 2>&1 ; then
- --- 421,428 ----
- exit 1
- fi
-
- ! configsub=`/bin/echo ${progname} | sed 's/configure$/config.sub/'`
- ! moveifchange=`/bin/echo ${progname} | sed 's/configure$/move-if-change/'`
-
- # this is a hack. sun4 must always be a valid host alias or this will fail.
- if ${configsub} sun4 >/dev/null 2>&1 ; then
- ***************
- *** 437,443 ****
- srcdir=.
- else
- if [ -r ${progname}.in ] ; then
- ! srcdir=`echo ${progname} | sed 's:/configure$::'`
- else
- echo '***' "Can't find configure.in. Try using --srcdir=some_dir" 1>&2
- exit 1
- --- 447,453 ----
- srcdir=.
- else
- if [ -r ${progname}.in ] ; then
- ! srcdir=`/bin/echo ${progname} | sed 's:/configure$::'`
- else
- echo '***' "Can't find configure.in. Try using --srcdir=some_dir" 1>&2
- exit 1
- ***************
- *** 523,531 ****
- *)
- if result=`${config_shell} ${configsub} ${build_alias}` ; then
- buildopt="--build=${build_alias}"
- ! build_cpu=`echo $result | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
- ! build_vendor=`echo $result | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
- ! build_os=`echo $result | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
- build=${build_cpu}-${build_vendor}-${build_os}
- else
- echo "Unrecognized build system name ${build_alias}." 1>&2
- --- 533,541 ----
- *)
- if result=`${config_shell} ${configsub} ${build_alias}` ; then
- buildopt="--build=${build_alias}"
- ! build_cpu=`/bin/echo $result | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
- ! build_vendor=`/bin/echo $result | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
- ! build_os=`/bin/echo $result | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
- build=${build_cpu}-${build_vendor}-${build_os}
- else
- echo "Unrecognized build system name ${build_alias}." 1>&2
- ***************
- *** 540,548 ****
- echo "Unrecognized host system name ${host_alias}." 1>&2
- exit 1
- fi
- ! host_cpu=`echo $result | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
- ! host_vendor=`echo $result | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
- ! host_os=`echo $result | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
- host=${host_cpu}-${host_vendor}-${host_os}
-
- . ${tmpfile}.hst
- --- 550,558 ----
- echo "Unrecognized host system name ${host_alias}." 1>&2
- exit 1
- fi
- ! host_cpu=`/bin/echo $result | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
- ! host_vendor=`/bin/echo $result | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
- ! host_os=`/bin/echo $result | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
- host=${host_cpu}-${host_vendor}-${host_os}
-
- . ${tmpfile}.hst
- ***************
- *** 553,561 ****
- echo "Unrecognized target system name ${target_alias}." 1>&2
- exit 1
- fi
- ! target_cpu=`echo $result | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
- ! target_vendor=`echo $result | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
- ! target_os=`echo $result | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
- target=${target_cpu}-${target_vendor}-${target_os}
-
- . ${tmpfile}.tgt
- --- 563,571 ----
- echo "Unrecognized target system name ${target_alias}." 1>&2
- exit 1
- fi
- ! target_cpu=`/bin/echo $result | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
- ! target_vendor=`/bin/echo $result | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
- ! target_os=`/bin/echo $result | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
- target=${target_cpu}-${target_vendor}-${target_os}
-
- . ${tmpfile}.tgt
- ***************
- *** 611,624 ****
- # ${subdir} is relative path from . to the directory we're currently
- # configuring.
- # ${invsubdir} is inverse of ${subdir), *with* trailing /, if needed.
- ! invsubdir=`echo ${subdir}/ | sed -e 's|\./||g' -e 's|[^/]*/|../|g'`
-
- ### figure out what to do with srcdir
- case "${srcdir}" in
- ".") # no -srcdir option. We're building in place.
- makesrcdir=. ;;
- /*) # absolute path
- ! makesrcdir=`echo ${srcdir}/${subdir} | sed -e 's|/\.$||'`
- ;;
- *) # otherwise relative
- case "${subdir}" in
- --- 621,634 ----
- # ${subdir} is relative path from . to the directory we're currently
- # configuring.
- # ${invsubdir} is inverse of ${subdir), *with* trailing /, if needed.
- ! invsubdir=`/bin/echo ${subdir}/ | sed -e 's|\./||g' -e 's|[^/]*/|../|g'`
-
- ### figure out what to do with srcdir
- case "${srcdir}" in
- ".") # no -srcdir option. We're building in place.
- makesrcdir=. ;;
- /*) # absolute path
- ! makesrcdir=`/bin/echo ${srcdir}/${subdir} | sed -e 's|/\.$||'`
- ;;
- *) # otherwise relative
- case "${subdir}" in
- ***************
- *** 846,852 ****
- # make sure that some sort of reasonable default exists for these
- # two variables
- CXX=${CXX-"g++ -O"}
- ! CC=${CC-cc}
-
- # reset prefix, exec_prefix, srcdir, SUBDIRS, NONSUBDIRS,
- # remove any form feeds.
- --- 856,862 ----
- # make sure that some sort of reasonable default exists for these
- # two variables
- CXX=${CXX-"g++ -O"}
- ! CC=${CC-gcc}
-
- # reset prefix, exec_prefix, srcdir, SUBDIRS, NONSUBDIRS,
- # remove any form feeds.
- ***************
- *** 891,897 ****
- *) using="${using} and \"${site_makefile_frag}\"" ;;
- esac
-
- ! newusing=`echo "${using}" | sed 's/and/using/'`
- using=${newusing}
- echo "Created \"${Makefile}\" in" ${PWD=`pwd`} ${using}
-
- --- 901,907 ----
- *) using="${using} and \"${site_makefile_frag}\"" ;;
- esac
-
- ! newusing=`/bin/echo "${using}" | sed 's/and/using/'`
- using=${newusing}
- echo "Created \"${Makefile}\" in" ${PWD=`pwd`} ${using}
-
- ***************
- *** 983,989 ****
-
- ### The recursion line is here.
- if [ ! -z "${recprog}" ] ; then
- ! if eval ${config_shell} ${recprog} ${verbose} ${buildopt} --host=${host_alias} --target=${target_alias} \
- ${prefixoption} ${tmpdiroption} ${exec_prefixoption} \
- ${srcdiroption} ${program_prefixoption} ${program_suffixoption} ${program_transform_nameoption} ${site_option} ${withoptions} ${withoutoptions} ${enableoptions} ${disableoptions} ${removing} ${other_options} ${redirect} ; then
- true
- --- 993,1001 ----
-
- ### The recursion line is here.
- if [ ! -z "${recprog}" ] ; then
- ! echo ${config_shell} ${recprog} ${verbose} ${buildopt} --host=${host_alias} --target=${target_alias} ${prefixoption} ${tmpdiroption} ${exec_prefixoption} ${srcdiroption} ${program_prefixoption} ${program_suffixoption} \
- ! ${program_transform_nameoption} ${site_option} ${withoptions} ${withoutoptions} ${enableoptions} ${disableoptions} ${removing} ${other_options} ${redirect}
- ! if eval ${config_shell} ${recprog} ${verbose} ${buildopt} --host=${host_alias} --target=${target_alias} \
- ${prefixoption} ${tmpdiroption} ${exec_prefixoption} \
- ${srcdiroption} ${program_prefixoption} ${program_suffixoption} ${program_transform_nameoption} ${site_option} ${withoptions} ${withoutoptions} ${enableoptions} ${disableoptions} ${removing} ${other_options} ${redirect} ; then
- true
- diff -rc --new-file binutils-2.5.2/configure.in /gnu/src/amiga/binutils-2.5.2/configure.in
- *** binutils-2.5.2/configure.in Wed Nov 2 20:20:43 1994
- --- /gnu/src/amiga/binutils-2.5.2/configure.in Thu Nov 10 15:58:15 1994
- ***************
- *** 123,128 ****
- --- 123,129 ----
- *-*-lynxos*) host_makefile_frag=config/mh-lynxos ;;
- *-*-sysv4*) host_makefile_frag=config/mh-sysv4 ;;
- *-*-sysv*) host_makefile_frag=config/mh-sysv ;;
- + *-*-amigados*) host_makefile_frag=config/mh-amigados ;;
- esac
- fi
-
- diff -rc --new-file binutils-2.5.2/gas/Makefile.in /gnu/src/amiga/binutils-2.5.2/gas/Makefile.in
- *** binutils-2.5.2/gas/Makefile.in Wed Nov 2 20:17:06 1994
- --- /gnu/src/amiga/binutils-2.5.2/gas/Makefile.in Thu Nov 10 15:58:18 1994
- ***************
- *** 72,78 ****
- TEXI2DVI = texi2dvi
- RANLIB = ranlib
- CC = @CC@
- ! CFLAGS = -g
-
- MAKEOVERRIDES=
-
- --- 72,78 ----
- TEXI2DVI = texi2dvi
- RANLIB = ranlib
- CC = @CC@
- ! CFLAGS =
-
- MAKEOVERRIDES=
-
- ***************
- *** 372,378 ****
- targ-env.h obj-format.h targ-cpu.h \
- struc-symbol.h write.h flonum.h bignum.h expr.h \
- frags.h hash.h read.h symbols.h tc.h obj.h input-file.h
- ! input-scrub.o : input-scrub.c /usr/include/errno.h /usr/include/sys/errno.h \
- as.h targ-env.h obj-format.h \
- targ-cpu.h struc-symbol.h \
- write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
- --- 372,378 ----
- targ-env.h obj-format.h targ-cpu.h \
- struc-symbol.h write.h flonum.h bignum.h expr.h \
- frags.h hash.h read.h symbols.h tc.h obj.h input-file.h
- ! input-scrub.o : input-scrub.c \
- as.h targ-env.h obj-format.h \
- targ-cpu.h struc-symbol.h \
- write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
- diff -rc --new-file binutils-2.5.2/gas/as.c /gnu/src/amiga/binutils-2.5.2/gas/as.c
- *** binutils-2.5.2/gas/as.c Wed Oct 19 22:52:37 1994
- --- /gnu/src/amiga/binutils-2.5.2/gas/as.c Mon Nov 21 07:46:49 1994
- ***************
- *** 447,459 ****
- --- 447,463 ----
- if (flag_print_statistics)
- {
- extern char **environ;
- + #ifndef amigados
- char *lim = (char *) sbrk (0);
- + #endif
- long run_time = get_run_time () - start_time;
-
- fprintf (stderr, "%s: total time in assembly: %ld.%06ld\n",
- myname, run_time / 1000000, run_time % 1000000);
- + #ifndef amigados
- fprintf (stderr, "%s: data size %ld\n",
- myname, (long) (lim - (char *) &environ));
- + #endif
- }
-
- /* Use exit instead of return, because under VMS environments they
- diff -rc --new-file binutils-2.5.2/gas/config/tc-m68k.c /gnu/src/amiga/binutils-2.5.2/gas/config/tc-m68k.c
- *** binutils-2.5.2/gas/config/tc-m68k.c Thu Oct 27 23:11:43 1994
- --- /gnu/src/amiga/binutils-2.5.2/gas/config/tc-m68k.c Mon Nov 21 07:42:32 1994
- ***************
- *** 554,561 ****
- --- 554,563 ----
- {"even", s_even, 0},
- {"skip", s_space, 0},
- {"proc", s_proc, 0},
- + #ifndef amigados
- #ifdef TE_SUN3
- {"align", s_align_bytes, 0},
- + #endif
- #endif
- {0, 0, 0}
- };
- diff -rc --new-file binutils-2.5.2/gas/configure /gnu/src/amiga/binutils-2.5.2/gas/configure
- *** binutils-2.5.2/gas/configure Tue Nov 1 23:17:52 1994
- --- /gnu/src/amiga/binutils-2.5.2/gas/configure Thu Nov 10 16:39:59 1994
- ***************
- *** 1,7 ****
- #!/bin/sh
-
- # Guess values for system-dependent variables and create Makefiles.
- ! # Generated automatically using autoconf version 2.0
- # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
- #
- # This configure script is free software; the Free Software Foundation
- --- 1,7 ----
- #!/bin/sh
-
- # Guess values for system-dependent variables and create Makefiles.
- ! # Generated automatically using autoconf version 2.1
- # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
- #
- # This configure script is free software; the Free Software Foundation
- ***************
- *** 9,50 ****
-
- # Defaults:
- ac_help=
- ! ac_default_prefix=/usr/local
- # Any additions from configure.in:
- ac_help="$ac_help
- bfd-assembler use BFD back end for writing object files"
-
- - # Omit some internal or obsolete options to make the list less imposing.
- - ac_usage="Usage: configure [options] [host]
- - Options: [defaults in brackets after descriptions]
- - Configuration:
- - --cache-file=FILE cache test results in FILE
- - --help print this message
- - --no-create do not create output files
- - --quiet, --silent do not print \`checking...' messages
- - --version print the version of autoconf that created configure
- - Directory and file names:
- - --prefix=PREFIX install architecture-independent files in PREFIX
- - [$ac_default_prefix]
- - --exec-prefix=PREFIX install architecture-dependent files in PREFIX
- - [same as prefix]
- - --srcdir=DIR find the sources in DIR [configure dir or ..]
- - --program-prefix=PREFIX prepend PREFIX to installed program names
- - --program-suffix=SUFFIX append SUFFIX to installed program names
- - --program-transform-name=PROGRAM run sed PROGRAM on installed program names
- - Host type:
- - --build=BUILD configure for building on BUILD [BUILD=HOST]
- - --host=HOST configure for HOST [guessed]
- - --target=TARGET configure for TARGET [TARGET=HOST]
- - Features and packages:
- - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
- - --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
- - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
- - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
- - --x-includes=DIR X include files are in DIR
- - --x-libraries=DIR X library files are in DIR
- - --enable and --with options recognized:$ac_help"
- -
- # Initialize some variables set by options.
- # The variables have the same names as the options, with
- # dashes changed to underlines.
- --- 9,19 ----
-
- # Defaults:
- ac_help=
- ! ac_default_prefix=/gnu
- # Any additions from configure.in:
- ac_help="$ac_help
- bfd-assembler use BFD back end for writing object files"
-
- # Initialize some variables set by options.
- # The variables have the same names as the options, with
- # dashes changed to underlines.
- ***************
- *** 82,88 ****
- fi
-
- case "$ac_option" in
- ! -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
- *) ac_optarg= ;;
- esac
-
- --- 51,57 ----
- fi
-
- case "$ac_option" in
- ! -*=*) ac_optarg=`/bin/echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
- *) ac_optarg= ;;
- esac
-
- ***************
- *** 103,123 ****
- cache_file="$ac_optarg" ;;
-
- -disable-* | --disable-*)
- ! ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
- # Reject names that are not valid shell variable names.
- ! if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
- { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
- fi
- ! ac_feature=`echo $ac_feature| sed 's/-/_/g'`
- eval "enable_${ac_feature}=no" ;;
-
- -enable-* | --enable-*)
- ! ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
- # Reject names that are not valid shell variable names.
- ! if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
- { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
- fi
- ! ac_feature=`echo $ac_feature| sed 's/-/_/g'`
- case "$ac_option" in
- *=*) ;;
- *) ac_optarg=yes ;;
- --- 72,92 ----
- cache_file="$ac_optarg" ;;
-
- -disable-* | --disable-*)
- ! ac_feature=`/bin/echo $ac_option|sed -e 's/-*disable-//'`
- # Reject names that are not valid shell variable names.
- ! if test -n "`/bin/echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
- { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
- fi
- ! ac_feature=`/bin/echo $ac_feature| sed 's/-/_/g'`
- eval "enable_${ac_feature}=no" ;;
-
- -enable-* | --enable-*)
- ! ac_feature=`/bin/echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
- # Reject names that are not valid shell variable names.
- ! if test -n "`/bin/echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
- { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
- fi
- ! ac_feature=`/bin/echo $ac_feature| sed 's/-/_/g'`
- case "$ac_option" in
- *=*) ;;
- *) ac_optarg=yes ;;
- ***************
- *** 138,145 ****
- with_gas=yes ;;
-
- -help | --help | --hel | --he)
- cat << EOF
- ! $ac_usage
- EOF
- exit 0 ;;
-
- --- 107,144 ----
- with_gas=yes ;;
-
- -help | --help | --hel | --he)
- + # Omit some internal or obsolete options to make the list less imposing.
- + # This message is too long to be a string in the A/UX 3.1 sh.
- cat << EOF
- ! Usage: configure [options] [host]
- ! Options: [defaults in brackets after descriptions]
- ! Configuration:
- ! --cache-file=FILE cache test results in FILE
- ! --help print this message
- ! --no-create do not create output files
- ! --quiet, --silent do not print \`checking...' messages
- ! --version print the version of autoconf that created configure
- ! Directory and file names:
- ! --prefix=PREFIX install architecture-independent files in PREFIX
- ! [$ac_default_prefix]
- ! --exec-prefix=PREFIX install architecture-dependent files in PREFIX
- ! [same as prefix]
- ! --srcdir=DIR find the sources in DIR [configure dir or ..]
- ! --program-prefix=PREFIX prepend PREFIX to installed program names
- ! --program-suffix=SUFFIX append SUFFIX to installed program names
- ! --program-transform-name=PROGRAM run sed PROGRAM on installed program names
- ! Host type:
- ! --build=BUILD configure for building on BUILD [BUILD=HOST]
- ! --host=HOST configure for HOST [guessed]
- ! --target=TARGET configure for TARGET [TARGET=HOST]
- ! Features and packages:
- ! --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
- ! --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
- ! --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
- ! --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
- ! --x-includes=DIR X include files are in DIR
- ! --x-libraries=DIR X library files are in DIR
- ! --enable and --with options recognized:$ac_help
- EOF
- exit 0 ;;
-
- ***************
- *** 219,234 ****
- verbose=yes ;;
-
- -version | --version | --versio | --versi | --vers)
- ! echo "configure generated by autoconf version 2.0"
- exit 0 ;;
-
- -with-* | --with-*)
- ! ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
- # Reject names that are not valid shell variable names.
- ! if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
- { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
- fi
- ! ac_package=`echo $ac_package| sed 's/-/_/g'`
- case "$ac_option" in
- *=*) ;;
- *) ac_optarg=yes ;;
- --- 218,233 ----
- verbose=yes ;;
-
- -version | --version | --versio | --versi | --vers)
- ! echo "configure generated by autoconf version 2.1"
- exit 0 ;;
-
- -with-* | --with-*)
- ! ac_package=`/bin/echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
- # Reject names that are not valid shell variable names.
- ! if test -n "`/bin/echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
- { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
- fi
- ! ac_package=`/bin/echo $ac_package| sed 's/-/_/g'`
- case "$ac_option" in
- *=*) ;;
- *) ac_optarg=yes ;;
- ***************
- *** 236,247 ****
- eval "with_${ac_package}='$ac_optarg'" ;;
-
- -without-* | --without-*)
- ! ac_package=`echo $ac_option|sed -e 's/-*without-//'`
- # Reject names that are not valid shell variable names.
- ! if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
- { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
- fi
- ! ac_package=`echo $ac_package| sed 's/-/_/g'`
- eval "with_${ac_package}=no" ;;
-
- --x)
- --- 235,246 ----
- eval "with_${ac_package}='$ac_optarg'" ;;
-
- -without-* | --without-*)
- ! ac_package=`/bin/echo $ac_option|sed -e 's/-*without-//'`
- # Reject names that are not valid shell variable names.
- ! if test -n "`/bin/echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
- { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
- fi
- ! ac_package=`/bin/echo $ac_package| sed 's/-/_/g'`
- eval "with_${ac_package}=no" ;;
-
- --x)
- ***************
- *** 266,272 ****
- ;;
-
- *)
- ! if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
- echo "configure: warning: $ac_option: invalid host type" 1>&2
- fi
- if test "x$nonopt" != xNONE; then
- --- 265,271 ----
- ;;
-
- *)
- ! if test -n "`/bin/echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
- echo "configure: warning: $ac_option: invalid host type" 1>&2
- fi
- if test "x$nonopt" != xNONE; then
- ***************
- *** 279,285 ****
- done
-
- if test -n "$ac_prev"; then
- ! { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
- fi
-
- trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
- --- 278,284 ----
- done
-
- if test -n "$ac_prev"; then
- ! { echo "configure: error: missing argument to --`/bin/echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
- fi
-
- trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
- ***************
- *** 329,335 ****
- # confdefs.h avoids OS command line length limits that DEFS can exceed.
- rm -rf conftest* confdefs.h
- # AIX cpp loses on an empty file, so make sure it contains at least a newline.
- ! echo > confdefs.h
-
- # A filename unique to this package, relative to the directory that
- # configure is in, which we can look for to find out if srcdir is correct.
- --- 328,334 ----
- # confdefs.h avoids OS command line length limits that DEFS can exceed.
- rm -rf conftest* confdefs.h
- # AIX cpp loses on an empty file, so make sure it contains at least a newline.
- ! /bin/echo > confdefs.h
-
- # A filename unique to this package, relative to the directory that
- # configure is in, which we can look for to find out if srcdir is correct.
- ***************
- *** 340,346 ****
- ac_srcdir_defaulted=yes
- # Try the directory containing this script, then its parent.
- ac_prog=$0
- ! ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
- test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
- srcdir=$ac_confdir
- if test ! -r $srcdir/$ac_unique_file; then
- --- 339,345 ----
- ac_srcdir_defaulted=yes
- # Try the directory containing this script, then its parent.
- ac_prog=$0
- ! ac_confdir=`/bin/echo $ac_prog|sed 's%/[^/][^/]*$%%'`
- test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
- srcdir=$ac_confdir
- if test ! -r $srcdir/$ac_unique_file; then
- ***************
- *** 356,362 ****
- { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
- fi
- fi
- ! srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
-
- # Prefer explicitly selected file to automatically selected ones.
- if test -z "$CONFIG_SITE"; then
- --- 355,361 ----
- { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
- fi
- fi
- ! srcdir=`/bin/echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
-
- # Prefer explicitly selected file to automatically selected ones.
- if test -z "$CONFIG_SITE"; then
- ***************
- *** 460,466 ****
- else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
- fi
-
- ! echo $ac_n "checking host system type""... $ac_c" 1>&4
-
- host_alias=$host
- case "$host_alias" in
- --- 459,465 ----
- else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
- fi
-
- ! /bin/echo $ac_n "checking host system type""... $ac_c" 1>&4
-
- host_alias=$host
- case "$host_alias" in
- ***************
- *** 475,486 ****
- esac
-
- host=`$ac_config_sub $host_alias`
- ! host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
- ! host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
- ! host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
- ! echo "$ac_t""$host" 1>&4
-
- ! echo $ac_n "checking target system type""... $ac_c" 1>&4
-
- target_alias=$target
- case "$target_alias" in
- --- 474,485 ----
- esac
-
- host=`$ac_config_sub $host_alias`
- ! host_cpu=`/bin/echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
- ! host_vendor=`/bin/echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
- ! host_os=`/bin/echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
- ! /bin/echo "$ac_t""$host" 1>&4
-
- ! /bin/echo $ac_n "checking target system type""... $ac_c" 1>&4
-
- target_alias=$target
- case "$target_alias" in
- ***************
- *** 492,503 ****
- esac
-
- target=`$ac_config_sub $target_alias`
- ! target_cpu=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
- ! target_vendor=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
- ! target_os=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
- ! echo "$ac_t""$target" 1>&4
-
- ! echo $ac_n "checking build system type""... $ac_c" 1>&4
-
- build_alias=$build
- case "$build_alias" in
- --- 491,502 ----
- esac
-
- target=`$ac_config_sub $target_alias`
- ! target_cpu=`/bin/echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
- ! target_vendor=`/bin/echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
- ! target_os=`/bin/echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
- ! /bin/echo "$ac_t""$target" 1>&4
-
- ! /bin/echo $ac_n "checking build system type""... $ac_c" 1>&4
-
- build_alias=$build
- case "$build_alias" in
- ***************
- *** 509,518 ****
- esac
-
- build=`$ac_config_sub $build_alias`
- ! build_cpu=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
- ! build_vendor=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
- ! build_os=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
- ! echo "$ac_t""$build" 1>&4
-
- test "$host_alias" != "$target_alias" &&
- test "$program_prefix$program_suffix$program_transform_name" = \
- --- 508,517 ----
- esac
-
- build=`$ac_config_sub $build_alias`
- ! build_cpu=`/bin/echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
- ! build_vendor=`/bin/echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
- ! build_os=`/bin/echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
- ! /bin/echo "$ac_t""$build" 1>&4
-
- test "$host_alias" != "$target_alias" &&
- test "$program_prefix$program_suffix$program_transform_name" = \
- ***************
- *** 523,529 ****
- else
- # Double any \ or $.
- echo 's,\\,\\\\,g; s,\$,$$,g' > conftestsed
- ! program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
- rm -f conftestsed
- fi
- test "$program_prefix" != NONE &&
- --- 522,528 ----
- else
- # Double any \ or $.
- echo 's,\\,\\\\,g; s,\$,$$,g' > conftestsed
- ! program_transform_name="`/bin/echo $program_transform_name|sed -f conftestsed`"
- rm -f conftestsed
- fi
- test "$program_prefix" != NONE &&
- ***************
- *** 621,627 ****
- i960-*-vxworks5.*) obj_format=coff emulation=ic960 gas_target=ic960coff ;;
- i960-*-vxworks*) obj_format=bout ;;
-
- ! m68k-wrs-vxworks | m68k-ericsson-ose | m68k-*-sunos*)
- obj_format=aout emulation=sun3 ;;
- m68k-motorola-sysv) obj_format=coff gas_target=m68kcoff emulation=delta ;;
- m68k-bull-sysv3*) obj_format=coff gas_target=m68kcoff emulation=dpx2 ;;
- --- 620,626 ----
- i960-*-vxworks5.*) obj_format=coff emulation=ic960 gas_target=ic960coff ;;
- i960-*-vxworks*) obj_format=bout ;;
-
- ! m68k-wrs-vxworks | m68k-ericsson-ose | m68k-*-sunos* | m68*-cbm-amigados*)
- obj_format=aout emulation=sun3 ;;
- m68k-motorola-sysv) obj_format=coff gas_target=m68kcoff emulation=delta ;;
- m68k-bull-sysv3*) obj_format=coff gas_target=m68kcoff emulation=dpx2 ;;
- ***************
- *** 816,825 ****
- EOF
-
-
- ! echo $ac_n "checking for CC""... $ac_c" 1>&4
- test -z "$CC" && CC=`egrep '^CC *=' ../Makefile | tail -1 | sed 's/^CC *= *//'`
- test -z "$CC" && CC=cc
- ! echo "$ac_t""setting CC to $CC" 1>&4
-
- # Find out if we are using GNU C, under whatever name.
- cat > conftest.c <<EOF
- --- 815,824 ----
- EOF
-
-
- ! /bin/echo $ac_n "checking for CC""... $ac_c" 1>&4
- test -z "$CC" && CC=`egrep '^CC *=' ../Makefile | tail -1 | sed 's/^CC *= *//'`
- test -z "$CC" && CC=cc
- ! /bin/echo "$ac_t""setting CC to $CC" 1>&4
-
- # Find out if we are using GNU C, under whatever name.
- cat > conftest.c <<EOF
- ***************
- *** 845,859 ****
- # AFS /usr/afsws/bin/install, which mishandles nonexistent args
- # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
- # ./install, which can be erroneously created by make from ./install.sh.
- ! echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&4
- if test -z "$INSTALL"; then
- if eval "test \"`echo '${'ac_cv_path_install'+set}'`\" = set"; then
- ! echo $ac_n "(cached) $ac_c" 1>&4
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- for ac_dir in $PATH; do
- case "$ac_dir" in
- ! ''|.|/etc|/usr/sbin|/usr/etc|/sbin|/usr/afsws/bin|/usr/ucb) ;;
- *)
- # OSF1 and SCO ODT 3.0 have their own names for install.
- for ac_prog in ginstall installbsd scoinst install; do
- --- 844,858 ----
- # AFS /usr/afsws/bin/install, which mishandles nonexistent args
- # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
- # ./install, which can be erroneously created by make from ./install.sh.
- ! /bin/echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&4
- if test -z "$INSTALL"; then
- if eval "test \"`echo '${'ac_cv_path_install'+set}'`\" = set"; then
- ! /bin/echo $ac_n "(cached) $ac_c" 1>&4
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- for ac_dir in $PATH; do
- case "$ac_dir" in
- ! ''|.|/gnu/etc) ;;
- *)
- # OSF1 and SCO ODT 3.0 have their own names for install.
- for ac_prog in ginstall installbsd scoinst install; do
- ***************
- *** 878,884 ****
- fi
- INSTALL="$ac_cv_path_install"
- fi
- ! echo "$ac_t""$INSTALL" 1>&4
-
- # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
- # It thinks the first close brace ends the variable substitution.
- --- 877,883 ----
- fi
- INSTALL="$ac_cv_path_install"
- fi
- ! /bin/echo "$ac_t""$INSTALL" 1>&4
-
- # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
- # It thinks the first close brace ends the variable substitution.
- ***************
- *** 887,900 ****
- test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
-
-
- ! echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&4
- # On Suns, sometimes $CPP names a directory.
- if test -n "$CPP" && test -d "$CPP"; then
- CPP=
- fi
- if test -z "$CPP"; then
- if eval "test \"`echo '${'ac_cv_prog_CPP'+set}'`\" = set"; then
- ! echo $ac_n "(cached) $ac_c" 1>&4
- else
- # This must be in double quotes, not single quotes, because CPP may get
- # substituted into the Makefile and "${CC-cc}" will confuse make.
- --- 886,899 ----
- test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
-
-
- ! /bin/echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&4
- # On Suns, sometimes $CPP names a directory.
- if test -n "$CPP" && test -d "$CPP"; then
- CPP=
- fi
- if test -z "$CPP"; then
- if eval "test \"`echo '${'ac_cv_prog_CPP'+set}'`\" = set"; then
- ! /bin/echo $ac_n "(cached) $ac_c" 1>&4
- else
- # This must be in double quotes, not single quotes, because CPP may get
- # substituted into the Makefile and "${CC-cc}" will confuse make.
- ***************
- *** 902,908 ****
- # On the NeXT, cc -E runs the code through the compiler's parser,
- # not just through cpp.
- cat > conftest.$ac_ext <<EOF
- ! #line 906 "configure"
- #include "confdefs.h"
- #include <assert.h>
- Syntax Error
- --- 901,907 ----
- # On the NeXT, cc -E runs the code through the compiler's parser,
- # not just through cpp.
- cat > conftest.$ac_ext <<EOF
- ! #line 905 "configure"
- #include "confdefs.h"
- #include <assert.h>
- Syntax Error
- ***************
- *** 912,922 ****
- if test -z "$ac_err"; then
- :
- else
- ! echo "$ac_err" >&5
- rm -rf conftest*
- CPP="${CC-cc} -E -traditional-cpp"
- cat > conftest.$ac_ext <<EOF
- ! #line 920 "configure"
- #include "confdefs.h"
- #include <assert.h>
- Syntax Error
- --- 911,921 ----
- if test -z "$ac_err"; then
- :
- else
- ! /bin/echo "$ac_err" >&5
- rm -rf conftest*
- CPP="${CC-cc} -E -traditional-cpp"
- cat > conftest.$ac_ext <<EOF
- ! #line 919 "configure"
- #include "confdefs.h"
- #include <assert.h>
- Syntax Error
- ***************
- *** 926,932 ****
- if test -z "$ac_err"; then
- :
- else
- ! echo "$ac_err" >&5
- rm -rf conftest*
- CPP=/lib/cpp
- fi
- --- 925,931 ----
- if test -z "$ac_err"; then
- :
- else
- ! /bin/echo "$ac_err" >&5
- rm -rf conftest*
- CPP=/lib/cpp
- fi
- ***************
- *** 937,953 ****
- fi
- fi
- CPP="$ac_cv_prog_CPP"
- ! echo "$ac_t""$CPP" 1>&4
-
- for ac_hdr in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h
- do
- ! ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
- ! echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&4
- if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
- ! echo $ac_n "(cached) $ac_c" 1>&4
- else
- cat > conftest.$ac_ext <<EOF
- ! #line 951 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- --- 936,952 ----
- fi
- fi
- CPP="$ac_cv_prog_CPP"
- ! /bin/echo "$ac_t""$CPP" 1>&4
-
- for ac_hdr in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h
- do
- ! ac_safe=`/bin/echo "$ac_hdr" | tr './\055' '___'`
- ! /bin/echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&4
- if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
- ! /bin/echo $ac_n "(cached) $ac_c" 1>&4
- else
- cat > conftest.$ac_ext <<EOF
- ! #line 950 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ***************
- *** 957,984 ****
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- ! echo "$ac_err" >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- fi
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- ! echo "$ac_t""yes" 1>&4
- ! ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- ! echo "$ac_t""no" 1>&4
- fi
- done
-
-
- # Put this here so that autoconf's "cross-compiling" message doesn't confuse
- # people who are not cross-compiling but are compiling cross-assemblers.
- ! echo $ac_n "checking whether compiling a cross-assembler""... $ac_c" 1>&4
- if test "${host}" = "${target}"; then
- cross_gas=no
- else
- --- 956,983 ----
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- ! /bin/echo "$ac_err" >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- fi
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- ! /bin/echo "$ac_t""yes" 1>&4
- ! ac_tr_hdr=HAVE_`/bin/echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- ! /bin/echo "$ac_t""no" 1>&4
- fi
- done
-
-
- # Put this here so that autoconf's "cross-compiling" message doesn't confuse
- # people who are not cross-compiling but are compiling cross-assemblers.
- ! /bin/echo $ac_n "checking whether compiling a cross-assembler""... $ac_c" 1>&4
- if test "${host}" = "${target}"; then
- cross_gas=no
- else
- ***************
- *** 988,1005 ****
- EOF
-
- fi
- ! echo "$ac_t""$cross_gas" 1>&4
-
- # If we cannot run a trivial program, we must be cross compiling.
- ! echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&4
- if eval "test \"`echo '${'ac_cv_c_cross'+set}'`\" = set"; then
- ! echo $ac_n "(cached) $ac_c" 1>&4
- else
- if test "$cross_compiling" = yes; then
- ac_cv_cross=yes
- else
- cat > conftest.$ac_ext <<EOF
- ! #line 1003 "configure"
- #include "confdefs.h"
- main(){return(0);}
- EOF
- --- 987,1004 ----
- EOF
-
- fi
- ! /bin/echo "$ac_t""$cross_gas" 1>&4
-
- # If we cannot run a trivial program, we must be cross compiling.
- ! /bin/echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&4
- if eval "test \"`echo '${'ac_cv_c_cross'+set}'`\" = set"; then
- ! /bin/echo $ac_n "(cached) $ac_c" 1>&4
- else
- if test "$cross_compiling" = yes; then
- ac_cv_cross=yes
- else
- cat > conftest.$ac_ext <<EOF
- ! #line 1002 "configure"
- #include "confdefs.h"
- main(){return(0);}
- EOF
- ***************
- *** 1013,1028 ****
- rm -fr conftest*
- fi
- cross_compiling=$ac_cv_c_cross
- ! echo "$ac_t""$ac_cv_c_cross" 1>&4
-
- # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
- # for constant arguments. Useless!
- ! echo $ac_n "checking for working alloca.h""... $ac_c" 1>&4
- if eval "test \"`echo '${'ac_cv_header_alloca_h'+set}'`\" = set"; then
- ! echo $ac_n "(cached) $ac_c" 1>&4
- else
- cat > conftest.$ac_ext <<EOF
- ! #line 1026 "configure"
- #include "confdefs.h"
- #include <alloca.h>
- int main() { return 0; }
- --- 1012,1027 ----
- rm -fr conftest*
- fi
- cross_compiling=$ac_cv_c_cross
- ! /bin/echo "$ac_t""$ac_cv_c_cross" 1>&4
-
- # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
- # for constant arguments. Useless!
- ! /bin/echo $ac_n "checking for working alloca.h""... $ac_c" 1>&4
- if eval "test \"`echo '${'ac_cv_header_alloca_h'+set}'`\" = set"; then
- ! /bin/echo $ac_n "(cached) $ac_c" 1>&4
- else
- cat > conftest.$ac_ext <<EOF
- ! #line 1025 "configure"
- #include "confdefs.h"
- #include <alloca.h>
- int main() { return 0; }
- ***************
- *** 1040,1046 ****
- rm -f conftest*
-
- fi
- ! echo "$ac_t""$ac_cv_header_alloca_h" 1>&4
- if test $ac_cv_header_alloca_h = yes; then
- cat >> confdefs.h <<\EOF
- #define HAVE_ALLOCA_H 1
- --- 1039,1045 ----
- rm -f conftest*
-
- fi
- ! /bin/echo "$ac_t""$ac_cv_header_alloca_h" 1>&4
- if test $ac_cv_header_alloca_h = yes; then
- cat >> confdefs.h <<\EOF
- #define HAVE_ALLOCA_H 1
- ***************
- *** 1048,1059 ****
-
- fi
-
- ! echo $ac_n "checking for alloca""... $ac_c" 1>&4
- if eval "test \"`echo '${'ac_cv_func_alloca'+set}'`\" = set"; then
- ! echo $ac_n "(cached) $ac_c" 1>&4
- else
- cat > conftest.$ac_ext <<EOF
- ! #line 1057 "configure"
- #include "confdefs.h"
-
- #ifdef __GNUC__
- --- 1047,1058 ----
-
- fi
-
- ! /bin/echo $ac_n "checking for alloca""... $ac_c" 1>&4
- if eval "test \"`echo '${'ac_cv_func_alloca'+set}'`\" = set"; then
- ! /bin/echo $ac_n "(cached) $ac_c" 1>&4
- else
- cat > conftest.$ac_ext <<EOF
- ! #line 1056 "configure"
- #include "confdefs.h"
-
- #ifdef __GNUC__
- ***************
- *** 1087,1093 ****
- rm -f conftest*
-
- fi
- ! echo "$ac_t""$ac_cv_func_alloca" 1>&4
- if test $ac_cv_func_alloca = yes; then
- cat >> confdefs.h <<\EOF
- #define HAVE_ALLOCA 1
- --- 1086,1092 ----
- rm -f conftest*
-
- fi
- ! /bin/echo "$ac_t""$ac_cv_func_alloca" 1>&4
- if test $ac_cv_func_alloca = yes; then
- cat >> confdefs.h <<\EOF
- #define HAVE_ALLOCA 1
- ***************
- *** 1106,1117 ****
- EOF
-
-
- ! echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&4
- if eval "test \"`echo '${'ac_cv_os_cray'+set}'`\" = set"; then
- ! echo $ac_n "(cached) $ac_c" 1>&4
- else
- cat > conftest.$ac_ext <<EOF
- ! #line 1115 "configure"
- #include "confdefs.h"
- #if defined(CRAY) && ! defined(CRAY2)
- webecray
- --- 1105,1116 ----
- EOF
-
-
- ! /bin/echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&4
- if eval "test \"`echo '${'ac_cv_os_cray'+set}'`\" = set"; then
- ! /bin/echo $ac_n "(cached) $ac_c" 1>&4
- else
- cat > conftest.$ac_ext <<EOF
- ! #line 1114 "configure"
- #include "confdefs.h"
- #if defined(CRAY) && ! defined(CRAY2)
- webecray
- ***************
- *** 1131,1146 ****
- rm -f conftest*
-
- fi
- ! echo "$ac_t""$ac_cv_os_cray" 1>&4
- if test $ac_cv_os_cray = yes; then
- ! echo $ac_n "checking for _getb67""... $ac_c" 1>&4
- if eval "test \"`echo '${'ac_cv_func__getb67'+set}'`\" = set"; then
- ! echo $ac_n "(cached) $ac_c" 1>&4
- else
- cat > conftest.$ac_ext <<EOF
- ! #line 1142 "configure"
- #include "confdefs.h"
- #include <ctype.h> /* Arbitrary system header to define __stub macros. */
- int main() { return 0; }
- int t() {
-
- --- 1130,1148 ----
- rm -f conftest*
-
- fi
- ! /bin/echo "$ac_t""$ac_cv_os_cray" 1>&4
- if test $ac_cv_os_cray = yes; then
- ! /bin/echo $ac_n "checking for _getb67""... $ac_c" 1>&4
- if eval "test \"`echo '${'ac_cv_func__getb67'+set}'`\" = set"; then
- ! /bin/echo $ac_n "(cached) $ac_c" 1>&4
- else
- cat > conftest.$ac_ext <<EOF
- ! #line 1141 "configure"
- #include "confdefs.h"
- #include <ctype.h> /* Arbitrary system header to define __stub macros. */
- + /* Override any gcc2 internal prototype to avoid an error. */
- + char _getb67();
- +
- int main() { return 0; }
- int t() {
-
- ***************
- *** 1150,1157 ****
- #if defined (__stub__getb67) || defined (__stub____getb67)
- choke me
- #else
- ! /* Override any gcc2 internal prototype to avoid an error. */
- ! char _getb67(); _getb67();
- #endif
-
- ; return 0; }
- --- 1152,1158 ----
- #if defined (__stub__getb67) || defined (__stub____getb67)
- choke me
- #else
- ! _getb67();
- #endif
-
- ; return 0; }
- ***************
- *** 1167,1187 ****
-
- fi
- if eval "test \"`echo '$ac_cv_func_'_getb67`\" = yes"; then
- ! echo "$ac_t""yes" 1>&4
- cat >> confdefs.h <<\EOF
- #define CRAY_STACKSEG_END _getb67
- EOF
-
- else
- ! echo "$ac_t""no" 1>&4
- ! echo $ac_n "checking for GETB67""... $ac_c" 1>&4
- if eval "test \"`echo '${'ac_cv_func_GETB67'+set}'`\" = set"; then
- ! echo $ac_n "(cached) $ac_c" 1>&4
- else
- cat > conftest.$ac_ext <<EOF
- ! #line 1183 "configure"
- #include "confdefs.h"
- #include <ctype.h> /* Arbitrary system header to define __stub macros. */
- int main() { return 0; }
- int t() {
-
- --- 1168,1191 ----
-
- fi
- if eval "test \"`echo '$ac_cv_func_'_getb67`\" = yes"; then
- ! /bin/echo "$ac_t""yes" 1>&4
- cat >> confdefs.h <<\EOF
- #define CRAY_STACKSEG_END _getb67
- EOF
-
- else
- ! /bin/echo "$ac_t""no" 1>&4
- ! /bin/echo $ac_n "checking for GETB67""... $ac_c" 1>&4
- if eval "test \"`echo '${'ac_cv_func_GETB67'+set}'`\" = set"; then
- ! /bin/echo $ac_n "(cached) $ac_c" 1>&4
- else
- cat > conftest.$ac_ext <<EOF
- ! #line 1184 "configure"
- #include "confdefs.h"
- #include <ctype.h> /* Arbitrary system header to define __stub macros. */
- + /* Override any gcc2 internal prototype to avoid an error. */
- + char GETB67();
- +
- int main() { return 0; }
- int t() {
-
- ***************
- *** 1191,1198 ****
- #if defined (__stub_GETB67) || defined (__stub___GETB67)
- choke me
- #else
- ! /* Override any gcc2 internal prototype to avoid an error. */
- ! char GETB67(); GETB67();
- #endif
-
- ; return 0; }
- --- 1195,1201 ----
- #if defined (__stub_GETB67) || defined (__stub___GETB67)
- choke me
- #else
- ! GETB67();
- #endif
-
- ; return 0; }
- ***************
- *** 1208,1228 ****
-
- fi
- if eval "test \"`echo '$ac_cv_func_'GETB67`\" = yes"; then
- ! echo "$ac_t""yes" 1>&4
- cat >> confdefs.h <<\EOF
- #define CRAY_STACKSEG_END GETB67
- EOF
-
- else
- ! echo "$ac_t""no" 1>&4
- ! echo $ac_n "checking for getb67""... $ac_c" 1>&4
- if eval "test \"`echo '${'ac_cv_func_getb67'+set}'`\" = set"; then
- ! echo $ac_n "(cached) $ac_c" 1>&4
- else
- cat > conftest.$ac_ext <<EOF
- ! #line 1224 "configure"
- #include "confdefs.h"
- #include <ctype.h> /* Arbitrary system header to define __stub macros. */
- int main() { return 0; }
- int t() {
-
- --- 1211,1234 ----
-
- fi
- if eval "test \"`echo '$ac_cv_func_'GETB67`\" = yes"; then
- ! /bin/echo "$ac_t""yes" 1>&4
- cat >> confdefs.h <<\EOF
- #define CRAY_STACKSEG_END GETB67
- EOF
-
- else
- ! /bin/echo "$ac_t""no" 1>&4
- ! /bin/echo $ac_n "checking for getb67""... $ac_c" 1>&4
- if eval "test \"`echo '${'ac_cv_func_getb67'+set}'`\" = set"; then
- ! /bin/echo $ac_n "(cached) $ac_c" 1>&4
- else
- cat > conftest.$ac_ext <<EOF
- ! #line 1227 "configure"
- #include "confdefs.h"
- #include <ctype.h> /* Arbitrary system header to define __stub macros. */
- + /* Override any gcc2 internal prototype to avoid an error. */
- + char getb67();
- +
- int main() { return 0; }
- int t() {
-
- ***************
- *** 1232,1239 ****
- #if defined (__stub_getb67) || defined (__stub___getb67)
- choke me
- #else
- ! /* Override any gcc2 internal prototype to avoid an error. */
- ! char getb67(); getb67();
- #endif
-
- ; return 0; }
- --- 1238,1244 ----
- #if defined (__stub_getb67) || defined (__stub___getb67)
- choke me
- #else
- ! getb67();
- #endif
-
- ; return 0; }
- ***************
- *** 1249,1261 ****
-
- fi
- if eval "test \"`echo '$ac_cv_func_'getb67`\" = yes"; then
- ! echo "$ac_t""yes" 1>&4
- cat >> confdefs.h <<\EOF
- #define CRAY_STACKSEG_END getb67
- EOF
-
- else
- ! echo "$ac_t""no" 1>&4
- fi
-
- fi
- --- 1254,1266 ----
-
- fi
- if eval "test \"`echo '$ac_cv_func_'getb67`\" = yes"; then
- ! /bin/echo "$ac_t""yes" 1>&4
- cat >> confdefs.h <<\EOF
- #define CRAY_STACKSEG_END getb67
- EOF
-
- else
- ! /bin/echo "$ac_t""no" 1>&4
- fi
-
- fi
- ***************
- *** 1264,1278 ****
-
- fi
-
- ! echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&4
- if eval "test \"`echo '${'ac_cv_c_stack_direction'+set}'`\" = set"; then
- ! echo $ac_n "(cached) $ac_c" 1>&4
- else
- if test "$cross_compiling" = yes; then
- ac_cv_c_stack_direction=0
- else
- cat > conftest.$ac_ext <<EOF
- ! #line 1276 "configure"
- #include "confdefs.h"
- find_stack_direction ()
- {
- --- 1269,1283 ----
-
- fi
-
- ! /bin/echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&4
- if eval "test \"`echo '${'ac_cv_c_stack_direction'+set}'`\" = set"; then
- ! /bin/echo $ac_n "(cached) $ac_c" 1>&4
- else
- if test "$cross_compiling" = yes; then
- ac_cv_c_stack_direction=0
- else
- cat > conftest.$ac_ext <<EOF
- ! #line 1281 "configure"
- #include "confdefs.h"
- find_stack_direction ()
- {
- ***************
- *** 1300,1319 ****
- fi
- rm -fr conftest*
- fi
- ! echo "$ac_t""$ac_cv_c_stack_direction" 1>&4
- cat >> confdefs.h <<EOF
- #define STACK_DIRECTION $ac_cv_c_stack_direction
- EOF
-
- fi
-
- ! echo $ac_n "checking for inline""... $ac_c" 1>&4
- if eval "test \"`echo '${'ac_cv_c_inline'+set}'`\" = set"; then
- ! echo $ac_n "(cached) $ac_c" 1>&4
- else
- if test "$GCC" = yes; then
- cat > conftest.$ac_ext <<EOF
- ! #line 1317 "configure"
- #include "confdefs.h"
-
- int main() { return 0; }
- --- 1305,1324 ----
- fi
- rm -fr conftest*
- fi
- ! /bin/echo "$ac_t""$ac_cv_c_stack_direction" 1>&4
- cat >> confdefs.h <<EOF
- #define STACK_DIRECTION $ac_cv_c_stack_direction
- EOF
-
- fi
-
- ! /bin/echo $ac_n "checking for inline""... $ac_c" 1>&4
- if eval "test \"`echo '${'ac_cv_c_inline'+set}'`\" = set"; then
- ! /bin/echo $ac_n "(cached) $ac_c" 1>&4
- else
- if test "$GCC" = yes; then
- cat > conftest.$ac_ext <<EOF
- ! #line 1322 "configure"
- #include "confdefs.h"
-
- int main() { return 0; }
- ***************
- *** 1334,1340 ****
- ac_cv_c_inline=no
- fi
- fi
- ! echo "$ac_t""$ac_cv_c_inline" 1>&4
- if test $ac_cv_c_inline = no; then
- cat >> confdefs.h <<\EOF
- #define inline __inline
- --- 1339,1345 ----
- ac_cv_c_inline=no
- fi
- fi
- ! /bin/echo "$ac_t""$ac_cv_c_inline" 1>&4
- if test $ac_cv_c_inline = no; then
- cat >> confdefs.h <<\EOF
- #define inline __inline
- ***************
- *** 1346,1359 ****
- # VMS doesn't have unlink.
- for ac_func in unlink remove
- do
- ! echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
- if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
- ! echo $ac_n "(cached) $ac_c" 1>&4
- else
- cat > conftest.$ac_ext <<EOF
- ! #line 1355 "configure"
- #include "confdefs.h"
- #include <ctype.h> /* Arbitrary system header to define __stub macros. */
- int main() { return 0; }
- int t() {
-
- --- 1351,1367 ----
- # VMS doesn't have unlink.
- for ac_func in unlink remove
- do
- ! /bin/echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
- if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
- ! /bin/echo $ac_n "(cached) $ac_c" 1>&4
- else
- cat > conftest.$ac_ext <<EOF
- ! #line 1360 "configure"
- #include "confdefs.h"
- #include <ctype.h> /* Arbitrary system header to define __stub macros. */
- + /* Override any gcc2 internal prototype to avoid an error. */
- + char $ac_func();
- +
- int main() { return 0; }
- int t() {
-
- ***************
- *** 1363,1370 ****
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- ! /* Override any gcc2 internal prototype to avoid an error. */
- ! char $ac_func(); $ac_func();
- #endif
-
- ; return 0; }
- --- 1371,1377 ----
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- ! $ac_func();
- #endif
-
- ; return 0; }
- ***************
- *** 1380,1393 ****
-
- fi
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- ! echo "$ac_t""yes" 1>&4
- ! ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- break
- else
- ! echo "$ac_t""no" 1>&4
- fi
- done
-
- --- 1387,1400 ----
-
- fi
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- ! /bin/echo "$ac_t""yes" 1>&4
- ! ac_tr_func=HAVE_`/bin/echo $ac_func | tr '[a-z]' '[A-Z]'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
- break
- else
- ! /bin/echo "$ac_t""no" 1>&4
- fi
- done
-
- ***************
- *** 1395,1406 ****
- # Some non-ANSI preprocessors botch requoting inside strings. That's bad
- # enough, but on some of those systems, the assert macro relies on requoting
- # working properly!
- ! echo $ac_n "checking for working assert macro""... $ac_c" 1>&4
- if eval "test \"`echo '${'gas_cv_assert_ok'+set}'`\" = set"; then
- ! echo $ac_n "(cached) $ac_c" 1>&4
- else
- cat > conftest.$ac_ext <<EOF
- ! #line 1404 "configure"
- #include "confdefs.h"
- #include <assert.h>
- #include <stdio.h>
- --- 1402,1413 ----
- # Some non-ANSI preprocessors botch requoting inside strings. That's bad
- # enough, but on some of those systems, the assert macro relies on requoting
- # working properly!
- ! /bin/echo $ac_n "checking for working assert macro""... $ac_c" 1>&4
- if eval "test \"`echo '${'gas_cv_assert_ok'+set}'`\" = set"; then
- ! /bin/echo $ac_n "(cached) $ac_c" 1>&4
- else
- cat > conftest.$ac_ext <<EOF
- ! #line 1411 "configure"
- #include "confdefs.h"
- #include <assert.h>
- #include <stdio.h>
- ***************
- *** 1427,1433 ****
- rm -f conftest*
-
- fi
- ! echo "$ac_t""$gas_cv_assert_ok" 1>&4
- test $gas_cv_assert_ok = yes || cat >> confdefs.h <<\EOF
- #define BROKEN_ASSERT 1
- EOF
- --- 1434,1440 ----
- rm -f conftest*
-
- fi
- ! /bin/echo "$ac_t""$gas_cv_assert_ok" 1>&4
- test $gas_cv_assert_ok = yes || cat >> confdefs.h <<\EOF
- #define BROKEN_ASSERT 1
- EOF
- ***************
- *** 1452,1463 ****
- #endif
- "
-
- ! echo $ac_n "checking whether declaration is required for malloc""... $ac_c" 1>&4
- if eval "test \"`echo '${'gas_cv_decl_needed_malloc'+set}'`\" = set"; then
- ! echo $ac_n "(cached) $ac_c" 1>&4
- else
- cat > conftest.$ac_ext <<EOF
- ! #line 1461 "configure"
- #include "confdefs.h"
- $gas_test_headers
- int main() { return 0; }
- --- 1459,1470 ----
- #endif
- "
-
- ! /bin/echo $ac_n "checking whether declaration is required for malloc""... $ac_c" 1>&4
- if eval "test \"`echo '${'gas_cv_decl_needed_malloc'+set}'`\" = set"; then
- ! /bin/echo $ac_n "(cached) $ac_c" 1>&4
- else
- cat > conftest.$ac_ext <<EOF
- ! #line 1468 "configure"
- #include "confdefs.h"
- $gas_test_headers
- int main() { return 0; }
- ***************
- *** 1479,1485 ****
- rm -f conftest*
-
- fi
- ! echo "$ac_t""$gas_cv_decl_needed_malloc" 1>&4
- test $gas_cv_decl_needed_malloc = no || {
- cat >> confdefs.h <<\EOF
- #define NEED_DECLARATION_MALLOC 1
- --- 1486,1492 ----
- rm -f conftest*
-
- fi
- ! /bin/echo "$ac_t""$gas_cv_decl_needed_malloc" 1>&4
- test $gas_cv_decl_needed_malloc = no || {
- cat >> confdefs.h <<\EOF
- #define NEED_DECLARATION_MALLOC 1
- ***************
- *** 1488,1499 ****
- }
-
-
- ! echo $ac_n "checking whether declaration is required for free""... $ac_c" 1>&4
- if eval "test \"`echo '${'gas_cv_decl_needed_free'+set}'`\" = set"; then
- ! echo $ac_n "(cached) $ac_c" 1>&4
- else
- cat > conftest.$ac_ext <<EOF
- ! #line 1497 "configure"
- #include "confdefs.h"
- $gas_test_headers
- int main() { return 0; }
- --- 1495,1506 ----
- }
-
-
- ! /bin/echo $ac_n "checking whether declaration is required for free""... $ac_c" 1>&4
- if eval "test \"`echo '${'gas_cv_decl_needed_free'+set}'`\" = set"; then
- ! /bin/echo $ac_n "(cached) $ac_c" 1>&4
- else
- cat > conftest.$ac_ext <<EOF
- ! #line 1504 "configure"
- #include "confdefs.h"
- $gas_test_headers
- int main() { return 0; }
- ***************
- *** 1515,1521 ****
- rm -f conftest*
-
- fi
- ! echo "$ac_t""$gas_cv_decl_needed_free" 1>&4
- test $gas_cv_decl_needed_free = no || {
- cat >> confdefs.h <<\EOF
- #define NEED_DECLARATION_FREE 1
- --- 1522,1528 ----
- rm -f conftest*
-
- fi
- ! /bin/echo "$ac_t""$gas_cv_decl_needed_free" 1>&4
- test $gas_cv_decl_needed_free = no || {
- cat >> confdefs.h <<\EOF
- #define NEED_DECLARATION_FREE 1
- ***************
- *** 1527,1538 ****
- # Does errno.h declare errno, or do we have to add a separate declaration
- # for it?
-
- ! echo $ac_n "checking whether declaration is required for errno""... $ac_c" 1>&4
- if eval "test \"`echo '${'gas_cv_decl_needed_errno'+set}'`\" = set"; then
- ! echo $ac_n "(cached) $ac_c" 1>&4
- else
- cat > conftest.$ac_ext <<EOF
- ! #line 1536 "configure"
- #include "confdefs.h"
-
- #ifdef HAVE_ERRNO_H
- --- 1534,1545 ----
- # Does errno.h declare errno, or do we have to add a separate declaration
- # for it?
-
- ! /bin/echo $ac_n "checking whether declaration is required for errno""... $ac_c" 1>&4
- if eval "test \"`echo '${'gas_cv_decl_needed_errno'+set}'`\" = set"; then
- ! /bin/echo $ac_n "(cached) $ac_c" 1>&4
- else
- cat > conftest.$ac_ext <<EOF
- ! #line 1543 "configure"
- #include "confdefs.h"
-
- #ifdef HAVE_ERRNO_H
- ***************
- *** 1558,1564 ****
- rm -f conftest*
-
- fi
- ! echo "$ac_t""$gas_cv_decl_needed_errno" 1>&4
- test $gas_cv_decl_needed_errno = no || {
- cat >> confdefs.h <<\EOF
- #define NEED_DECLARATION_ERRNO 1
- --- 1565,1571 ----
- rm -f conftest*
-
- fi
- ! /bin/echo "$ac_t""$gas_cv_decl_needed_errno" 1>&4
- test $gas_cv_decl_needed_errno = no || {
- cat >> confdefs.h <<\EOF
- #define NEED_DECLARATION_ERRNO 1
- ***************
- *** 1618,1624 ****
- : ${CONFIG_STATUS=./config.status}
-
- echo creating $CONFIG_STATUS
- ! rm -f $CONFIG_STATUS
- cat > $CONFIG_STATUS <<EOF
- #!/bin/sh
- # Generated automatically by configure.
- --- 1625,1633 ----
- : ${CONFIG_STATUS=./config.status}
-
- echo creating $CONFIG_STATUS
- ! # Some systems, like AmigaDOS, won't allow you to remove a script that is
- ! # being executed, so just move it out of the way instead.
- ! if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
- cat > $CONFIG_STATUS <<EOF
- #!/bin/sh
- # Generated automatically by configure.
- ***************
- *** 1639,1645 ****
- echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
- exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
- -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
- ! echo "$CONFIG_STATUS generated by autoconf version 2.0"
- exit 0 ;;
- -help | --help | --hel | --he | --h)
- echo "\$ac_cs_usage"; exit 0 ;;
- --- 1648,1654 ----
- echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
- exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
- -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
- ! /bin/echo "$CONFIG_STATUS generated by autoconf version 2.1"
- exit 0 ;;
- -help | --help | --hel | --he | --h)
- echo "\$ac_cs_usage"; exit 0 ;;
- ***************
- *** 1703,1723 ****
- for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
- # Support "outfile[:infile]", defaulting infile="outfile.in".
- case "$ac_file" in
- ! *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
- ! ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
- *) ac_file_in="${ac_file}.in" ;;
- esac
-
- # Adjust relative srcdir, etc. for subdirectories.
-
- # Remove last slash and all that follows it. Not all systems have dirname.
- ! ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
- if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
- # The file is in a subdirectory.
- test ! -d "$ac_dir" && mkdir "$ac_dir"
- ac_dir_suffix="/$ac_dir"
- # A "../" for each directory in $ac_dir_suffix.
- ! ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
- else
- ac_dir_suffix= ac_dots=
- fi
- --- 1712,1732 ----
- for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
- # Support "outfile[:infile]", defaulting infile="outfile.in".
- case "$ac_file" in
- ! *:*) ac_file_in=`/bin/echo "$ac_file"|sed 's%.*:%%'`
- ! ac_file=`/bin/echo "$ac_file"|sed 's%:.*%%'` ;;
- *) ac_file_in="${ac_file}.in" ;;
- esac
-
- # Adjust relative srcdir, etc. for subdirectories.
-
- # Remove last slash and all that follows it. Not all systems have dirname.
- ! ac_dir=`/bin/echo $ac_file|sed 's%/[^/][^/]*$%%'`
- if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
- # The file is in a subdirectory.
- test ! -d "$ac_dir" && mkdir "$ac_dir"
- ac_dir_suffix="/$ac_dir"
- # A "../" for each directory in $ac_dir_suffix.
- ! ac_dots=`/bin/echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
- else
- ac_dir_suffix= ac_dots=
- fi
- ***************
- *** 1725,1731 ****
- case "$ac_given_srcdir" in
- .) srcdir=.
- if test -z "$ac_dots"; then top_srcdir=.
- ! else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
- /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
- *) # Relative path.
- srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
- --- 1734,1740 ----
- case "$ac_given_srcdir" in
- .) srcdir=.
- if test -z "$ac_dots"; then top_srcdir=.
- ! else top_srcdir=`/bin/echo $ac_dots|sed 's%/$%%'`; fi ;;
- /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
- *) # Relative path.
- srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
- ***************
- *** 1738,1744 ****
- esac
- echo creating "$ac_file"
- rm -f "$ac_file"
- ! configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
- case "$ac_file" in
- *Makefile*) ac_comsub="1i\\
- # $configure_input" ;;
- --- 1747,1753 ----
- esac
- echo creating "$ac_file"
- rm -f "$ac_file"
- ! configure_input="Generated automatically from `/bin/echo $ac_file_in|sed 's%.*/%%'` by configure."
- case "$ac_file" in
- *Makefile*) ac_comsub="1i\\
- # $configure_input" ;;
- ***************
- *** 1776,1783 ****
- for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
- # Support "outfile[:infile]", defaulting infile="outfile.in".
- case "$ac_file" in
- ! *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
- ! ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
- *) ac_file_in="${ac_file}.in" ;;
- esac
-
- --- 1785,1792 ----
- for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
- # Support "outfile[:infile]", defaulting infile="outfile.in".
- case "$ac_file" in
- ! *:*) ac_file_in=`/bin/echo "$ac_file"|sed 's%.*:%%'`
- ! ac_file=`/bin/echo "$ac_file"|sed 's%:.*%%'` ;;
- *) ac_file_in="${ac_file}.in" ;;
- esac
-
- ***************
- *** 1841,1847 ****
- cat conftest.in >> conftest.h
- rm -f conftest.in
- if cmp -s $ac_file conftest.h 2>/dev/null; then
- ! echo "$ac_file is unchanged"
- rm -f conftest.h
- else
- rm -f $ac_file
- --- 1850,1856 ----
- cat conftest.in >> conftest.h
- rm -f conftest.in
- if cmp -s $ac_file conftest.h 2>/dev/null; then
- ! /bin/echo "$ac_file is unchanged"
- rm -f conftest.h
- else
- rm -f $ac_file
- ***************
- *** 1873,1885 ****
-
- # Make relative symlinks.
- # Remove last slash and all that follows it. Not all systems have dirname.
- ! ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
- if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
- # The dest file is in a subdirectory.
- test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
- ac_dest_dir_suffix="/$ac_dest_dir"
- # A "../" for each directory in $ac_dest_dir_suffix.
- ! ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
- else
- ac_dest_dir_suffix= ac_dots=
- fi
- --- 1882,1894 ----
-
- # Make relative symlinks.
- # Remove last slash and all that follows it. Not all systems have dirname.
- ! ac_dest_dir=`/bin/echo $ac_dest|sed 's%/[^/][^/]*$%%'`
- if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
- # The dest file is in a subdirectory.
- test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
- ac_dest_dir_suffix="/$ac_dest_dir"
- # A "../" for each directory in $ac_dest_dir_suffix.
- ! ac_dots=`/bin/echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
- else
- ac_dest_dir_suffix= ac_dots=
- fi
- ***************
- *** 1890,1897 ****
- esac
-
- # Make a symlink if possible; otherwise try a hard link.
- ! if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
- ! ln $srcdir/$ac_source $ac_dest; then :
- else
- { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
- fi
- --- 1899,1908 ----
- esac
-
- # Make a symlink if possible; otherwise try a hard link.
- ! # On the Amiga, we instead try a hard link first and then
- ! # just do a cp, since symbolic links still have rough edges.
- ! if ln $ac_rel_source $ac_dest 2>/dev/null ||
- ! cp -p $srcdir/$ac_source $ac_dest; then :
- else
- { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
- fi
- diff -rc --new-file binutils-2.5.2/gas/configure.in /gnu/src/amiga/binutils-2.5.2/gas/configure.in
- *** binutils-2.5.2/gas/configure.in Tue Nov 1 23:17:54 1994
- --- /gnu/src/amiga/binutils-2.5.2/gas/configure.in Mon Nov 21 07:42:33 1994
- ***************
- *** 39,44 ****
- --- 39,45 ----
- m683??) cpu_type=m68k ;;
- changequote([,])dnl
- m8*) cpu_type=m88k ;;
- + m68*) cpu_type=m68k ;;
- mips*el) cpu_type=mips endian=little;;
- mips*) cpu_type=mips endian=big ;;
- powerpc*) cpu_type=ppc ;;
- ***************
- *** 109,115 ****
- i960-*-vxworks5.*) obj_format=coff emulation=ic960 gas_target=ic960coff ;;
- i960-*-vxworks*) obj_format=bout ;;
-
- ! m68k-wrs-vxworks | m68k-ericsson-ose | m68k-*-sunos*)
- obj_format=aout emulation=sun3 ;;
- m68k-motorola-sysv) obj_format=coff gas_target=m68kcoff emulation=delta ;;
- m68k-bull-sysv3*) obj_format=coff gas_target=m68kcoff emulation=dpx2 ;;
- --- 110,116 ----
- i960-*-vxworks5.*) obj_format=coff emulation=ic960 gas_target=ic960coff ;;
- i960-*-vxworks*) obj_format=bout ;;
-
- ! m68k-wrs-vxworks | m68k-ericsson-ose | m68k-*-sunos* | m68*-cbm-amigados*)
- obj_format=aout emulation=sun3 ;;
- m68k-motorola-sysv) obj_format=coff gas_target=m68kcoff emulation=delta ;;
- m68k-bull-sysv3*) obj_format=coff gas_target=m68kcoff emulation=dpx2 ;;
- diff -rc --new-file binutils-2.5.2/ld/Makefile.in /gnu/src/amiga/binutils-2.5.2/ld/Makefile.in
- *** binutils-2.5.2/ld/Makefile.in Wed Oct 19 18:36:47 1994
- --- /gnu/src/amiga/binutils-2.5.2/ld/Makefile.in Mon Nov 21 07:42:35 1994
- ***************
- *** 58,64 ****
- AR = ar
- AR_FLAGS = qv
- CC = cc
- ! CFLAGS = -g
- MAKEINFO = makeinfo
- TEXI2DVI = texi2dvi
- RANLIB = ranlib
- --- 58,64 ----
- AR = ar
- AR_FLAGS = qv
- CC = cc
- ! CFLAGS = -O2
- MAKEINFO = makeinfo
- TEXI2DVI = texi2dvi
- RANLIB = ranlib
- ***************
- *** 274,279 ****
- --- 274,282 ----
- GENSCRIPTS = $(SHELL) $(srcdir)/genscripts.sh ${srcdir} ${libdir} ${host_alias} ${target_alias} ${EMUL} "$(NATIVE_LIB_DIRS)"
- GEN_DEPENDS = $(srcdir)/genscripts.sh $(srcdir)/emultempl/stringify.sed
-
- + eamigados.c: $(srcdir)/emulparams/amigados.sh \
- + $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
- + ${GENSCRIPTS} amigados
- esun4.c: $(srcdir)/emulparams/sun4.sh \
- $(srcdir)/emultempl/sunos.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
- ${GENSCRIPTS} sun4
- ***************
- *** 440,446 ****
- ${GENSCRIPTS} netbsd532
-
- $(LD_PROG): $(OFILES) $(BFDLIB) $(LIBIBERTY)
- ! $(CC) $(CFLAGS) $(LDFLAGS) -o $(LD_PROG) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(EXTRALIBS)
-
- # The generated emulation files mostly have the same dependencies.
- $(EMULATION_OFILES): ../bfd/bfd.h ../bfd/sysdep.h $(INCDIR)/bfdlink.h \
- --- 443,449 ----
- ${GENSCRIPTS} netbsd532
-
- $(LD_PROG): $(OFILES) $(BFDLIB) $(LIBIBERTY)
- ! $(CC) $(CFLAGS) $(LDFLAGS) -o $(LD_PROG) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(EXTRALIBS) -lfl
-
- # The generated emulation files mostly have the same dependencies.
- $(EMULATION_OFILES): ../bfd/bfd.h ../bfd/sysdep.h $(INCDIR)/bfdlink.h \
- diff -rc --new-file binutils-2.5.2/ld/config/amigados.mh /gnu/src/amiga/binutils-2.5.2/ld/config/amigados.mh
- *** binutils-2.5.2/ld/config/amigados.mh Thu Jan 1 00:00:00 1970
- --- /gnu/src/amiga/binutils-2.5.2/ld/config/amigados.mh Thu Nov 10 15:58:30 1994
- ***************
- *** 0 ****
- --- 1,14 ----
- + # Host: Commodore Amiga running AmigaDOS.
- + NAT_FILE= nm-amigados.h
- + NATDEPFILES=
- + XDEPFILES=
- + XM_FILE= xm-amigados.h
- + REGEX=regex.o
- + REGEX1=regex.o
- + # Use GNU C compiler
- + CC = gcc
- + # Use GNU install
- + INSTALL = /bin/install -c
- + # Don't use the mmalloc library, there is no sbrk() or mmap().
- + MMALLOC=
- + MMALLOC_DISABLE = -DNO_MMALLOC
- diff -rc --new-file binutils-2.5.2/ld/config/amigados.mt /gnu/src/amiga/binutils-2.5.2/ld/config/amigados.mt
- *** binutils-2.5.2/ld/config/amigados.mt Thu Jan 1 00:00:00 1970
- --- /gnu/src/amiga/binutils-2.5.2/ld/config/amigados.mt Mon Nov 21 07:42:36 1994
- ***************
- *** 0 ****
- --- 1,5 ----
- + # Target: Commodore Amiga running AmigaDOS
- + TDEPFILES= m68k-pinsn.o exec.o m68k-tdep.o
- + TM_FILE= tm-amigados.h
- + EMUL=amigados
- + EMUL_EXTRA=sun3
- diff -rc --new-file binutils-2.5.2/ld/configure.in /gnu/src/amiga/binutils-2.5.2/ld/configure.in
- *** binutils-2.5.2/ld/configure.in Fri Oct 21 22:19:47 1994
- --- /gnu/src/amiga/binutils-2.5.2/ld/configure.in Thu Nov 10 15:58:32 1994
- ***************
- *** 94,99 ****
- --- 94,100 ----
- m68*-*-coff) ld_target=m68k-coff ;;
- m68*-*-hpux*) ld_target=hp300hpux ;;
- m68*-*-lynxos*) ld_target=m68k-lynx ;;
- + m68*-cbm-amigados*) ld_target=amigados ;;
- m68*-*-*)
- echo '***' "Unknown m68k target vendor for ld:" ${target_vendor} 1>&2
- exit 1 ;;
- diff -rc --new-file binutils-2.5.2/ld/emulparams/amigados.sh /gnu/src/amiga/binutils-2.5.2/ld/emulparams/amigados.sh
- *** binutils-2.5.2/ld/emulparams/amigados.sh Thu Jan 1 00:00:00 1970
- --- /gnu/src/amiga/binutils-2.5.2/ld/emulparams/amigados.sh Thu Nov 10 15:58:33 1994
- ***************
- *** 0 ****
- --- 1,7 ----
- + SCRIPT_NAME=aout
- + OUTPUT_FORMAT="amiga"
- + TEXT_START_ADDR=0x400
- + PAGE_SIZE=0x400
- + SEGMENT_SIZE=0x400
- + NONPAGED_TEXT_START_ADDR=0x400
- + ARCH=m68k
- diff -rc --new-file binutils-2.5.2/ld/ldmain.c /gnu/src/amiga/binutils-2.5.2/ld/ldmain.c
- *** binutils-2.5.2/ld/ldmain.c Wed Oct 26 05:23:55 1994
- --- /gnu/src/amiga/binutils-2.5.2/ld/ldmain.c Thu Nov 10 15:58:35 1994
- ***************
- *** 45,50 ****
- --- 45,54 ----
-
- #include <string.h>
-
- + #ifndef __amigados__
- + #define HAVE_SBRK
- + #endif
- +
- static char *get_emulation PARAMS ((int, char **));
- static void set_scripts_dir PARAMS ((void));
-
- ***************
- *** 319,331 ****
- --- 323,339 ----
- if (config.stats)
- {
- extern char **environ;
- + #ifdef HAVE_SBRK
- char *lim = (char *) sbrk (0);
- + #endif
- long run_time = get_run_time () - start_time;
-
- fprintf (stderr, "%s: total time in link: %ld.%06ld\n",
- program_name, run_time / 1000000, run_time % 1000000);
- + #ifdef HAVE_SBRK
- fprintf (stderr, "%s: data size %ld\n", program_name,
- (long) (lim - (char *) &environ));
- + #endif
- }
-
- /* Prevent remove_output from doing anything, after a successful link. */
- diff -rc --new-file binutils-2.5.2/libiberty/config/mh-amigados /gnu/src/amiga/binutils-2.5.2/libiberty/config/mh-amigados
- *** binutils-2.5.2/libiberty/config/mh-amigados Thu Jan 1 00:00:00 1970
- --- /gnu/src/amiga/binutils-2.5.2/libiberty/config/mh-amigados Thu Nov 10 15:58:35 1994
- ***************
- *** 0 ****
- --- 1,9 ----
- + # Host configuration for Commodore Amiga running AmigaDOS.
- + # We don't actually use libmmalloc.a, since there is no sbrk(),
- + # but this allows us to compile it (and then ignore it).
- +
- + CC=gcc
- + # We don't need -g yet, so do -O instead.
- + CFLAGS=-O
- + MMALLOC=
- + MMALLOC_DISABLE = -DNO_MMALLOC
- diff -rc --new-file binutils-2.5.2/libiberty/config.table /gnu/src/amiga/binutils-2.5.2/libiberty/config.table
- *** binutils-2.5.2/libiberty/config.table Mon Sep 5 10:52:49 1994
- --- /gnu/src/amiga/binutils-2.5.2/libiberty/config.table Thu Nov 10 15:58:37 1994
- ***************
- *** 22,27 ****
- --- 22,28 ----
- *-*-sysv4*) frag=mh-sysv4 ;;
- *-*-sysv*) frag=mh-sysv ;;
- *-*-go32) frag=mh-go32 ;;
- + *-*-amigados*) frag=mh-amigados ;;
- esac
-
- # xiberty sets xhost. Try to handle funky case of solaris 2 -> sun 4.
- diff -rc --new-file binutils-2.5.2/libiberty/xmalloc.c /gnu/src/amiga/binutils-2.5.2/libiberty/xmalloc.c
- *** binutils-2.5.2/libiberty/xmalloc.c Wed Sep 14 21:06:41 1994
- --- /gnu/src/amiga/binutils-2.5.2/libiberty/xmalloc.c Thu Nov 10 15:58:38 1994
- ***************
- *** 28,33 ****
- --- 28,37 ----
- #define size_t unsigned long
- #endif
-
- + #ifndef __amigados__
- + #define HAVE_SBRK
- + #endif
- +
- /* For systems with larger pointers than ints, these must be declared. */
- PTR malloc PARAMS ((size_t));
- PTR realloc PARAMS ((PTR, size_t));
- ***************
- *** 42,50 ****
- --- 46,58 ----
- xmalloc_set_program_name (s)
- const char *s;
- {
- + #ifdef HAVE_SBRK
- name = s;
- if (first_break == NULL)
- first_break = (char *) sbrk (0);
- + #else
- + return;
- + #endif
- }
-
- PTR
- ***************
- *** 58,63 ****
- --- 66,72 ----
- newmem = malloc (size);
- if (!newmem)
- {
- + #ifdef HAVE_SBRK
- extern char **environ;
- size_t allocated;
-
- ***************
- *** 69,74 ****
- --- 78,84 ----
- "\n%s%sCan not allocate %lu bytes after allocating %lu bytes\n",
- name, *name ? ": " : "",
- (unsigned long) size, (unsigned long) allocated);
- + #endif
- xexit (1);
- }
- return (newmem);
- ***************
- *** 89,94 ****
- --- 99,105 ----
- newmem = realloc (oldmem, size);
- if (!newmem)
- {
- + #ifdef HAVE_SBRK
- extern char **environ;
- size_t allocated;
-
- ***************
- *** 100,105 ****
- --- 111,117 ----
- "\n%s%sCan not reallocate %lu bytes after allocating %lu bytes\n",
- name, *name ? ": " : "",
- (unsigned long) size, (unsigned long) allocated);
- + #endif
- xexit (1);
- }
- return (newmem);
-