Changeset 100


Ignore:
Timestamp:
May 7, 2003, 5:00:11 PM (22 years ago)
Author:
bird
Message:

review. Added some comments and #ifs.

Location:
trunk/src/binutils
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/binutils/bfd/aoutx.h

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r99 r100  
    42684268              symsec = NULL;
    42694269            }
     4270#ifdef EMX
    42704271          else if ((type == (N_IMP1 | N_EXT))
    4271                 || (type == (N_IMP2 | N_EXT)))
     4272                   || (type == (N_IMP2 | N_EXT)))
    42724273            symsec = bfd_abs_section_ptr;
     4274#endif
    42734275          else if (IS_STAB(type))
    42744276            {
  • trunk/src/binutils/bfd/bfd-in2.h

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r99 r100  
    30763076void
    30773077bfd_set_reloc PARAMS ((bfd *abfd, asection *sec, arelent **rel, unsigned int count)
    3078    
     3078
    30793079    );
    30803080
  • trunk/src/binutils/bfd/host-aout.c

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r99 r100  
    3636
    3737   in the ./hosts/h-systemname.h file.  */
     38
     39#ifndef __EMX__ /* r=bird: Code was initially removed. Is this __EMX__ or EMX
     40                 * and why don't we include it? anything to do with sysdep.h? */
     41#ifdef TRAD_HEADER
     42#include TRAD_HEADER
     43#endif
     44#endif /* !__EMX__ */
    3845
    3946#ifdef                  HOST_PAGE_SIZE
  • trunk/src/binutils/bfd/sysdep.h

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r99 r100  
    2727#include "config.h"
    2828
     29#ifdef __EMX__ /* r=bird: hmm seen this before. */
    2930#ifdef TRAD_HEADER
    3031#include TRAD_HEADER
    3132#endif
     33#endif /* __EMX__ */
    3234
    3335#ifdef HAVE_STDDEF_H
  • trunk/src/binutils/bfd/trad-core.c

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r99 r100  
    4444#include <sys/user.h>           /* After a.out.h  */
    4545
     46#ifndef __EMX__ /* r=bird: Code was initially removed. Is this __EMX__ or EMX
     47                 * and why don't we include it? anything to do with sysdep.h? */
     48#ifdef TRAD_HEADER
     49#include TRAD_HEADER
     50#endif
     51#endif /* !__EMX__ */
     52
    4653  struct trad_core_struct
    4754    {
    4855      asection *data_section;
    49 #ifdef __EMX__
     56#ifdef __EMX__ /* r=bird: Isn't this a EMX (target) thing?  */
    5057      asection *heap_section;
    5158#endif /* __EMX__ */
     
    5764#define core_upage(bfd) (&((bfd)->tdata.trad_core_data->u))
    5865#define core_datasec(bfd) ((bfd)->tdata.trad_core_data->data_section)
    59 #ifdef __EMX__
     66#ifdef __EMX__ /* r=bird: Isn't this a EMX (target) thing?  */
    6067#define core_heapsec(bfd) ((bfd)->tdata.trad_core_data->heap_section)
    6168#endif /* __EMX__ */
     
    99106
    100107  /* Sanity check perhaps??? */
    101 #ifdef __EMX__
     108#ifdef __EMX__                          /* r=bird: Target (EMX) as well? */
    102109  if (u.u_magic != UMAGIC)
    103110    return 0;
  • trunk/src/binutils/ld/ldctor.c

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r99 r100  
    363363              if (e->name != NULL)
    364364                minfo ("%T\n", e->name);
    365               else if (e->section->owner)
     365#ifdef __EMX__ /* r=bird: Is this workaround for a crash something? */
     366              else if (e->section->owner != NULL)
    366367                minfo ("%G\n", e->section->owner, e->section, e->value);
    367368              else
    368369                minfo ("*unknown*\n");
     370#else
     371              else
     372                minfo ("%G\n", e->section->owner, e->section, e->value);
     373#endif
    369374            }
    370375
  • trunk/src/binutils/ld/ldemul.c

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r99 r100  
    305305}
    306306
     307/* Added by the EMX/OS2 port */
    307308void
    308309ldemul_finish_link (char *filename)
  • trunk/src/binutils/ld/ldemul.h

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r99 r100  
    140140    PARAMS ((char *, struct lang_input_statement_struct *));
    141141
    142   /* Perform final action(s) on output file */
     142  /* Perform final action(s) on output file
     143     Note: Added by the EMX/OS2 port, so keep it at the end! */
    143144  void (*finish_link) PARAMS ((char *));
    144145
  • trunk/src/binutils/ld/ldfile.c

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r99 r100  
    240240           arch = arch->next)
    241241        {
    242 #if defined (__EMX__)
     242#if defined (__EMX__) /* Target feature really, but no target define to test on. */
    243243          found = ldfile_open_file_search (arch->name, entry, "", ".a");
    244244          if (found)
  • trunk/src/binutils/ld/ldmain.c

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r99 r100  
    406406        einfo (_("%F%B: final close failed: %E\n"), output_bfd);
    407407
    408       /* Perform the final actions on output file */
     408      /* Perform the final actions on output file
     409       * (Added by the EMX/OS2 port) */
    409410      ldemul_finish_link (output_filename);
    410411
Note: See TracChangeset for help on using the changeset viewer.