Changeset 86

Timestamp:
May 3, 2003, 11:45:43 PM (23 years ago)
Author:
bird
Message:

Applied the original 2.11.2 diff.

Location:
trunk/src/binutils
Files:
8 added
37 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/binutils/bfd/acinclude.m4

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r85 r86  
    44case "${host}" in
    55changequote(,)dnl
    6 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
     6*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
    77changequote([,])dnl
    88  AC_DEFINE(USE_BINARY_FOPEN, 1, [Use b modifier when opening binary files?]) ;;
  • trunk/src/binutils/bfd/aoutx.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r85 r86  
    270270
    271271#define TABLE_SIZE(TABLE)       (sizeof (TABLE)/sizeof (TABLE[0]))
     272
     273
     274
     275
    272276
    273277reloc_howto_type *
     
    13761380  flagword visible;
    13771381
    1378   if ((cache_ptr->type & N_STAB) != 0
     1382  if (
    13791383      || cache_ptr->type == N_FN)
    13801384    {
     
    16151619      cache_ptr->symbol.flags = BSF_WEAK;
    16161620      break;
     1621
     1622
     1623
     1624
     1625
     1626
     1627
     1628
     1629
     1630
     1631
     1632
    16171633    }
    16181634
     
    31493165         below.  */
    31503166      if (((type & N_EXT) == 0
    3151            || (type & N_STAB) != 0
     3167           ||
    31523168           || type == N_FN)
    31533169          && type != N_WEAKA
     
    31803196          || type == (N_BSS | N_EXT)
    31813197          || type == (N_ABS | N_EXT)
    3182           || type == (N_INDR | N_EXT))
     3198          || type == (N_INDR | N_EXT)
     3199#if defined (EMX)
     3200          || type == (N_IMP1 | N_EXT)
     3201#endif
     3202         )
    31833203        {
    31843204          /* This object file defines this symbol.  We must link it
     
    33533373
    33543374      /* Ignore debugging symbols.  */
    3355       if ((type & N_STAB) != 0)
     3375      if ()
    33563376        continue;
    33573377
     
    34733493          flags = BSF_WEAK;
    34743494          break;
     3495
     3496
     3497
     3498
     3499
     3500
     3501
     3502
     3503
     3504
     3505
    34753506        }
    34763507
     
    41894220              break;
    41904221            case strip_debugger:
    4191               if ((type & N_STAB) != 0)
     4222              if ()
    41924223                skip = true;
    41934224              break;
     
    42374268              symsec = NULL;
    42384269            }
    4239           else if ((type & N_STAB) != 0)
     4270          else if ((type == (N_IMP1 | N_EXT))
     4271                || (type == (N_IMP2 | N_EXT)))
     4272            symsec = bfd_abs_section_ptr;
     4273          else if (IS_STAB(type))
    42404274            {
    42414275              val = GET_WORD (input_bfd, sym->e_value);
     
    43544388                  break;
    43554389                case discard_l:
    4356                   if ((type & N_STAB) == 0
     4390                  if (
    43574391                      && bfd_is_local_label_name (input_bfd, name))
    43584392                    skip = true;
     
    48644898              h = sym_hashes[r_index];
    48654899              if (h != (struct aout_link_hash_entry *) NULL
     4900
     4901
     4902
     4903
     4904
    48664905                  && (h->root.type == bfd_link_hash_defined
    48674906                      || h->root.type == bfd_link_hash_defweak))
  • trunk/src/binutils/bfd/archive.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r85 r86  
    19141914                       flags & BSF_WEAK ||
    19151915                       flags & BSF_INDIRECT ||
     1916
     1917
     1918
    19161919                       bfd_is_com_section (sec))
    19171920                      && ! bfd_is_und_section (sec))
  • trunk/src/binutils/bfd/bfd-in2.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r85 r86  
    28032803#define BSF_DEBUGGING_RELOC 0x20000
    28042804
     2805
     2806
     2807
     2808
     2809
     2810
    28052811  flagword flags;
    28062812
  • trunk/src/binutils/bfd/config.bfd

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r85 r86  
    915915    targ_selvecs=ieee_vec
    916916    ;;
     917
     918
     919
     920
     921
     922
     923
    917924# END OF targmatch.h
    918925  *)
  • trunk/src/binutils/bfd/configure.in

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r85 r86  
    219219  i[3456]86-*-isc*)     COREFILE=trad-core.lo ;;
    220220  i[3456]86-*-aix*)     COREFILE=aix386-core.lo ;;
    221 changequote([,])dnl
     221  i[3456]86-*-os2*)
     222changequote([,])dnl
     223        COREFILE=trad-core.lo
     224        AC_DEFINE(TRAD_HEADER,"hosts/i386emx.h")
     225        ;;
    222226  i860-*-mach3* | i860-*-osf1*)
    223227        COREFILE=trad-core.lo
     
    589593    i386netbsd_vec)             tb="$tb i386netbsd.lo aout32.lo" ;;
    590594    i386os9k_vec)               tb="$tb i386os9k.lo aout32.lo" ;;
     595
    591596    i860coff_vec)               tb="$tb coff-i860.lo cofflink.lo" ;;
    592597    icoff_big_vec)              tb="$tb coff-i960.lo cofflink.lo" ;;
  • trunk/src/binutils/bfd/host-aout.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r85 r86  
    3636
    3737   in the ./hosts/h-systemname.h file.  */
    38 
    39 #ifdef TRAD_HEADER
    40 #include TRAD_HEADER
    41 #endif
    4238
    4339#ifdef                  HOST_PAGE_SIZE
  • trunk/src/binutils/bfd/libaout.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r85 r86  
    186186{
    187187    long a_info;                /* Magic number and flags, packed */
     188
     189
     190
    188191    bfd_vma a_text;             /* length of text, in bytes  */
    189192    bfd_vma a_data;             /* length of data, in bytes  */
  • trunk/src/binutils/bfd/syms.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r85 r86  
    289289.#define BSF_DEBUGGING_RELOC 0x20000
    290290.
     291
     292
     293
     294
     295
     296
    291297.  flagword flags;
    292298.
     
    459465            ? (type & BSF_GLOBAL) ? '!' : 'l'
    460466            : (type & BSF_GLOBAL) ? 'g' : ' '),
     467
     468
     469
     470
    461471           (type & BSF_WEAK) ? 'w' : ' ',
    462472           (type & BSF_CONSTRUCTOR) ? 'C' : ' ',
     
    602612        return 'W';
    603613    }
     614
     615
     616
     617
     618
     619
    604620  if (!(symbol->flags & (BSF_GLOBAL | BSF_LOCAL)))
    605621    return '?';
  • trunk/src/binutils/bfd/sysdep.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r85 r86  
    2626
    2727#include "config.h"
     28
     29
     30
     31
    2832
    2933#ifdef HAVE_STDDEF_H
  • trunk/src/binutils/bfd/targets.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r85 r86  
    586586extern const bfd_target i386bsd_vec;
    587587extern const bfd_target i386coff_vec;
     588
    588589extern const bfd_target i386dynix_vec;
    589590extern const bfd_target i386freebsd_vec;
  • trunk/src/binutils/bfd/trad-core.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r85 r86  
    4444#include <sys/user.h>           /* After a.out.h  */
    4545
    46 #ifdef TRAD_HEADER
    47 #include TRAD_HEADER
    48 #endif
    49 
    5046  struct trad_core_struct
    5147    {
    5248      asection *data_section;
     49
     50
     51
    5352      asection *stack_section;
    5453      asection *reg_section;
     
    5857#define core_upage(bfd) (&((bfd)->tdata.trad_core_data->u))
    5958#define core_datasec(bfd) ((bfd)->tdata.trad_core_data->data_section)
     59
     60
     61
    6062#define core_stacksec(bfd) ((bfd)->tdata.trad_core_data->stack_section)
    6163#define core_regsec(bfd) ((bfd)->tdata.trad_core_data->reg_section)
     
    9799
    98100  /* Sanity check perhaps??? */
     101
     102
     103
     104
    99105  if (u.u_dsize > 0x1000000)    /* Remember, it's in pages...  */
    100106    {
     
    145151#endif
    146152  }
     153
    147154
    148155  /* OK, we believe you.  You're a core file (sure, sure).  */
     
    171178  if (core_regsec (abfd) == NULL)
    172179    return NULL;
     180
     181
     182
     183
     184
    173185
    174186  core_stacksec (abfd)->name = ".stack";
    175187  core_datasec (abfd)->name = ".data";
     188
     189
     190
    176191  core_regsec (abfd)->name = ".reg";
    177192
     
    179194  core_datasec (abfd)->flags = SEC_ALLOC + SEC_LOAD + SEC_HAS_CONTENTS;
    180195  core_regsec (abfd)->flags = SEC_HAS_CONTENTS;
    181 
     196#ifdef EMX
     197  core_heapsec (abfd)->flags = SEC_ALLOC + SEC_LOAD + SEC_HAS_CONTENTS;
     198#endif /* EMX */
     199
     200#ifdef EMX
     201  core_datasec (abfd)->_raw_size =  u.u_data_end - u.u_data_base;
     202  core_heapsec (abfd)->_raw_size = u.u_heap_brk - u.u_heap_base;
     203  core_stacksec (abfd)->_raw_size = u.u_stack_end - u.u_stack_low;
     204  core_regsec (abfd)->_raw_size = sizeof (struct user);
     205#else /* not EMX */
    182206  core_datasec (abfd)->_raw_size =  NBPG * u.u_dsize
    183207#ifdef TRAD_CORE_DSIZE_INCLUDES_TSIZE
     
    187211  core_stacksec (abfd)->_raw_size = NBPG * u.u_ssize;
    188212  core_regsec (abfd)->_raw_size = NBPG * UPAGES; /* Larger than sizeof struct u */
     213
    189214
    190215  /* What a hack... we'd like to steal it from the exec file,
    191216     since the upage does not seem to provide it.  FIXME.  */
     217
     218
     219
     220
     221
    192222#ifdef HOST_DATA_START_ADDR
    193223  core_datasec (abfd)->vma = HOST_DATA_START_ADDR;
     
    201231  core_stacksec (abfd)->vma = HOST_STACK_END_ADDR - (NBPG * u.u_ssize);
    202232#endif
     233
    203234
    204235  /* This is tricky.  As the "register section", we give them the entire
     
    218249  core_regsec (abfd)->vma = - (bfd_vma) u.u_ar0;
    219250
     251
     252
     253
     254
     255
    220256  core_datasec (abfd)->filepos = NBPG * UPAGES;
    221257  core_stacksec (abfd)->filepos = (NBPG * UPAGES) + NBPG * u.u_dsize
     
    224260#endif
    225261      ;
     262
     263
    226264  core_regsec (abfd)->filepos = 0; /* Register segment is the upage */
    227265
     
    229267  core_stacksec (abfd)->alignment_power = 2;
    230268  core_datasec (abfd)->alignment_power = 2;
     269
     270
     271
    231272  core_regsec (abfd)->alignment_power = 2;
    232273
    233274  abfd->sections = core_stacksec (abfd);
    234275  core_stacksec (abfd)->next = core_datasec (abfd);
     276
     277
     278
     279
     280
    235281  core_datasec (abfd)->next = core_regsec (abfd);
    236282  abfd->section_count = 3;
     283
    237284
    238285  return abfd->xvec;
  • trunk/src/binutils/binutils/addr2line.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r85 r86  
    211211          if (base_names && filename != NULL)
    212212            {
     213
    213214              char *h;
    214215
     
    216217              if (h != NULL)
    217218                filename = h + 1;
     219
     220
     221
    218222            }
    219223
     
    286290  textdomain (PACKAGE);
    287291
     292
     293
     294
    288295  program_name = *argv;
     296
    289297  xmalloc_set_program_name (program_name);
    290298
  • trunk/src/binutils/binutils/ar.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r85 r86  
    385385  textdomain (PACKAGE);
    386386
     387
     388
     389
     390
     391
    387392  program_name = argv[0];
     393
    388394  xmalloc_set_program_name (program_name);
    389395
     
    573579          full_pathname = true;
    574580          break;
     581
     582
     583
     584
     585
    575586        default:
    576587          /* xgettext:c-format */
  • trunk/src/binutils/binutils/bucomm.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r85 r86  
    217217  static char template[] = "stXXXXXX";
    218218  char *tmpname;
     219
     220
     221
     222
     223
     224
     225
    219226  char *slash = strrchr (filename, '/');
     227
    220228
    221229#ifdef HAVE_DOS_BASED_FILE_SYSTEM
  • trunk/src/binutils/binutils/nm.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r85 r86  
    406406  textdomain (PACKAGE);
    407407
     408
     409
     410
     411
     412
    408413  program_name = *argv;
     414
    409415  xmalloc_set_program_name (program_name);
    410416
  • trunk/src/binutils/binutils/objdump.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r85 r86  
    28262826  textdomain (PACKAGE);
    28272827
     2828
     2829
     2830
     2831
     2832
    28282833  program_name = *argv;
     2834
    28292835  xmalloc_set_program_name (program_name);
    28302836
  • trunk/src/binutils/binutils/rename.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r85 r86  
    156156  exists = lstat (to, &s) == 0;
    157157
    158 #if defined (_WIN32) && !defined (__CYGWIN32__)
     158#if 2__)
    159159  /* Win32, unlike unix, will not erase `to' in `rename(from, to)' but
    160160     fail instead.  Also, chown is not present.  */
  • trunk/src/binutils/binutils/size.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r85 r86  
    119119  textdomain (PACKAGE);
    120120
     121
     122
     123
     124
     125
    121126  program_name = *argv;
     127
    122128  xmalloc_set_program_name (program_name);
    123129
  • trunk/src/binutils/binutils/strings.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r85 r86  
    152152  textdomain (PACKAGE);
    153153
     154
     155
     156
    154157  program_name = argv[0];
     158
    155159  xmalloc_set_program_name (program_name);
    156160  string_min = -1;
  • trunk/src/binutils/configure.in

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r85 r86  
    217217  *-windows*)
    218218    host_makefile_frag="${host_makefile_frag} config/mh-windows"
     219
     220
     221
    219222    ;;
    220223  vax-*-ultrix2*)
  • trunk/src/binutils/gas/as.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r85 r86  
    110110
    111111static struct itbl_file_list *itbl_files;
     112
     113
     114
     115
     116
     117
     118
    112119
    113120
     
    780787  int keep_it;
    781788
     789
     790
     791
     792
     793
     794
     795
    782796  start_time = get_run_time ();
    783797
     
    801815#endif
    802816
     817
     818
     819
    803820  myname = argv[0];
     821
    804822  xmalloc_set_program_name (myname);
    805823
     
    827845  subsegs_begin ();
    828846  parse_args (&argc, &argv);
     847
     848
     849
     850
     851
     852
     853
     854
     855
     856
     857
     858
     859
     860
     861
     862
     863
     864
     865
     866
     867
     868
     869
    829870  read_begin ();
    830871  input_scrub_begin ();
     
    928969  if (!keep_it)
    929970    unlink (out_file_name);
     971
     972
     973
     974
     975
     976
     977
     978
     979
     980
     981
     982
     983
     984
     985
     986
     987
     988
     989
     990
     991
     992
     993
    930994
    931995  input_scrub_end ();
  • trunk/src/binutils/gas/config/tc-i386.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r85 r86  
    45094509  {"64", no_argument, NULL, OPTION_64},
    45104510#endif
     4511
     4512
     4513
     4514
     4515
     4516
    45114517  {NULL, no_argument, NULL, 0}
    45124518};
    45134519size_t md_longopts_size = sizeof (md_longopts);
     4520
     4521
     4522
     4523
     4524
    45144525
    45154526int
     
    45654576      default_arch = "i386";
    45664577      break;
     4578
     4579
     4580
     4581
     4582
     4583
     4584
     4585
     4586
     4587
    45674588
    45684589    default:
  • trunk/src/binutils/gas/config/tc-i386.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r85 r86  
    9494#ifdef TE_DYNIX
    9595#define AOUT_TARGET_FORMAT      "a.out-i386-dynix"
     96
     97
     98
    9699#endif
    97100#ifndef AOUT_TARGET_FORMAT
  • trunk/src/binutils/gas/configure.in

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r85 r86  
    280280      i386-*-mingw32*)      fmt=coff em=pe bfd_gas=yes ;;
    281281      i386-*-*nt*)          fmt=coff em=pe bfd_gas=yes ;;
     282
    282283      i386-*-vxworks*)      fmt=aout ;;
    283284      i386-*-chaos)         fmt=elf ;;
  • trunk/src/binutils/gas/write.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r85 r86  
    857857
    858858#ifdef BFD_ASSEMBLER
     859
     860
     861
    859862        /* We can never adjust a reloc against a weak symbol.  If we
    860863           did, and the weak symbol was overridden by a real symbol
     
    866869            goto done;
    867870          }
     871
    868872#endif
    869873
  • trunk/src/binutils/gprof/gmon.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r85 r86  
    7070/*
    7171 * Histogram counters are unsigned shorts:
     72
    7273 */
     74
     75
     76
    7377#define HISTCOUNTER unsigned short
     78
    7479
    7580/*
  • trunk/src/binutils/gprof/hertz.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r85 r86  
    33
    44#include "gprof.h"
     5
     6
     7
     8
    59
    610#define HZ_WRONG 0              /* impossible clock frequency */
  • trunk/src/binutils/include/aout/aout64.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r85 r86  
    323323#define N_WEAKD 0x10            /* Weak data symbol.  */
    324324#define N_WEAKB 0x11            /* Weak bss symbol.  */
     325
     326
     327
     328
    325329
    326330/* Relocations
  • trunk/src/binutils/ld/Makefile.in

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r85 r86  
    13171317  $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
    13181318        ${GENSCRIPTS} i386pe_posix "$(tdir_i386pe_posix)"
     1319
     1320
     1321
    13191322elnk960.c: $(srcdir)/emulparams/lnk960.sh \
    13201323  $(srcdir)/emultempl/lnk960.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
  • trunk/src/binutils/ld/configure.host

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r85 r86  
    223223  ;;
    224224
     225
     226
     227
    225228esac
  • trunk/src/binutils/ld/configure.tgt

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r85 r86  
    171171i[3456]86-*-interix*)   targ_emul=i386pe_posix;
    172172                        targ_extra_ofiles="deffilep.o pe-dll.o" ;;
     173
    173174i[3456]86-*-beospe*)    targ_emul=i386beos ;;
    174175i[3456]86-*-beos*)      targ_emul=elf_i386_be ;;
  • trunk/src/binutils/ld/ldctor.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r85 r86  
    363363              if (e->name != NULL)
    364364                minfo ("%T\n", e->name);
    365               else
     365              else
    366366                minfo ("%G\n", e->section->owner, e->section, e->value);
     367
     368
    367369            }
    368370
  • trunk/src/binutils/ld/ldemul.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r85 r86  
    304304  return 0;
    305305}
     306
     307
     308
     309
     310
     311
     312
  • trunk/src/binutils/ld/ldemul.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r85 r86  
    140140    PARAMS ((char *, struct lang_input_statement_struct *));
    141141
     142
     143
     144
    142145} ld_emulation_xfer_type;
    143146
  • trunk/src/binutils/ld/ldfile.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r85 r86  
    240240           arch = arch->next)
    241241        {
     242
     243
     244
     245
     246
    242247          found = ldfile_open_file_search (arch->name, entry, "lib", ".a");
    243248          if (found)
  • trunk/src/binutils/ld/ldmain.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r85 r86  
    174174  textdomain (PACKAGE);
    175175
     176
     177
     178
     179
    176180  program_name = argv[0];
     181
    177182  xmalloc_set_program_name (program_name);
    178183
     
    400405      if (! bfd_close (output_bfd))
    401406        einfo (_("%F%B: final close failed: %E\n"), output_bfd);
     407
     408
     409
    402410
    403411      /* If the --force-exe-suffix is enabled, and we're making an
Note: See TracChangeset for help on using the changeset viewer.