aboutsummaryrefslogtreecommitdiff
path: root/bfd/ecoff.c
AgeCommit message (Expand)AuthorFilesLines
2003-12-02Rename bfd_link_hash_entry field "next" -> "und_next".Alan Modra1-6/+6
2003-11-30 * ChangeLog: Fix typos.Kazu Hirata1-1/+1
2003-11-04 * aout-adobe.c (aout_adobe_set_section_contents): Constify location.Alan Modra1-1/+1
2003-10-31Index: sim/frv/ChangeLogAndrew Cagney1-2/+2
2003-10-16Index: doc/ChangeLogAndrew Cagney1-1/+1
2003-06-29Convert to C90 and a few tweaks.Alan Modra1-2/+2
2003-06-25Correct spelling of "relocatable".Alan Modra1-5/+5
2003-06-08 * elf64-ppc.c: Move TARGET_LITTLE_SYM and other macros used byAlan Modra1-2/+4
2003-02-04bfdAlan Modra1-2/+6
2002-11-30s/boolean/bfd_boolean/ s/true/TRUE/ s/false/FALSE/. SimplifyAlan Modra1-226/+237
2002-10-11Fix numerous occurrences ofAlan Modra1-7/+5
2002-09-19Fix error reading ECOFF information: 'ioptMax' refers to the actual *size*Nick Clifton1-1/+3
2002-09-02 * ecoff.c (_bfd_ecoff_set_arch_mach_hook): Don't use hard-codedAlan Modra1-6/+6
2002-07-30 * aoutx.h (some_aout_object_p): Clean up tdata properly on error.Alan Modra1-17/+14
2002-06-25Set BSF_FUNCTION for symbols of type stProc and stStaticProc.Nick Clifton1-99/+78
2002-06-25 * aout-adobe.c: Don't compare against "true" or "false.Alan Modra1-15/+12
2002-06-07Replace bfd_alloc/bfd_malloc + memset with bfd_zalloc/bfd_zmallocAlan Modra1-2/+1
2002-04-042002-04-04 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz1-1/+1
2002-03-28 * linker.c (link_action): Ignore duplicate warning syms.Alan Modra1-4/+11
2001-10-10 * aout-encap.c: Fix comment typos.Kazu Hirata1-1/+1
2001-09-29 * section.c (struct sec): Remove kept_section.Alan Modra1-2/+2
2001-09-18Touches most files in bfd/, so likely will be blamed for everything..Alan Modra1-150/+158
2001-06-15Chnage styp_flags_to_sec_flags() to a boolean functionNick Clifton1-19/+11
2001-05-17Add a flag to asection, linker_has_input, and use it to reliablyAlan Modra1-6/+8
2001-05-07 * ecoff.c (bfd_debug_section): Fix initialization.Alan Modra1-6/+6
2001-03-08Update copyright noticesNick Clifton1-1/+1
2001-02-14Fix initialisation of asection structureNick Clifton1-15/+21
2000-11-222000-11-21 Kazu Hirata <kazu@hxi.com>Kazu Hirata1-43/+36
1999-09-10 * ecoff.c (bfd_debug_section): Update initialization for newIan Lance Taylor1-4/+16
1999-07-12 * Many files: Changes to avoid gcc warnings: Add ATTRIBUTE_UNUSEDIan Lance Taylor1-10/+15
1999-05-11 * ecoff.c (_bfd_ecoff_write_armap): give the symtab element aDJ Delorie1-0/+7
1999-05-0319990502 sourceware importbinu_ss_19990502Richard Henderson1-0/+4825
("select"); exit (1); } if (!i) { fprintf (stderr, "read: Timeout\n"); return -1; } if ((i = read (sock, c, 1)) < 1) { if (!i && sock == debugsock) { fprintf (stderr, "Connection with debugger severed.\n"); /* This shouldn't be necessary for a detached armulator, but the armulator cannot be cold started a second time, so this is probably preferable to locking up. */ return -1; fprintf (stderr, "Waiting for connection from debugger..."); debugsock = accept (sockethandle, &isa, &i); if (debugsock < 0) { /* Now we are in serious trouble... */ perror ("accept"); return -1; } fprintf (stderr, " done.\nConnection Established.\n"); sock = debugsock; goto retry; } perror ("read"); return -1; } #ifdef DEBUG if (sock == debugsock) fprintf (stderr, "<%02x ", *c); #endif return 0; } /****************************************************************/ /* Read an individual character. */ /* It waits until there is a character available. Returns -1 if */ /* an error occurs. */ /****************************************************************/ int MYread_charwait (int sock, unsigned char *c) { int i; fd_set readfds; struct sockaddr_in isa; retry: FD_ZERO (&readfds); FD_SET (sock, &readfds); i = select (nfds, &readfds, (fd_set *) 0, (fd_set *) 0, (struct timeval *) 0); if (i < 0) { perror ("select"); exit (-1); } if ((i = read (sock, c, 1)) < 1) { if (!i && sock == debugsock) { fprintf (stderr, "Connection with debugger severed.\n"); return -1; fprintf (stderr, "Waiting for connection from debugger..."); debugsock = accept (sockethandle, &isa, &i); if (debugsock < 0) { /* Now we are in serious trouble... */ perror ("accept"); return -1; } fprintf (stderr, " done.\nConnection Established.\n"); sock = debugsock; goto retry; } perror ("read"); return -1; } #ifdef DEBUG if (sock == debugsock) fprintf (stderr, "<%02x ", *c); #endif return 0; } void MYwrite_char (int sock, unsigned char c) { if (write (sock, &c, 1) < 1) perror ("write"); #ifdef DEBUG if (sock == debugsock) fprintf (stderr, ">%02x ", c); #endif } int MYread_word (int sock, ARMword * here) { unsigned char a, b, c, d; if (MYread_char (sock, &a) < 0) return -1; if (MYread_char (sock, &b) < 0) return -1; if (MYread_char (sock, &c) < 0) return -1; if (MYread_char (sock, &d) < 0) return -1; *here = a | b << 8 | c << 16 | d << 24; return 0; } void MYwrite_word (int sock, ARMword i) { MYwrite_char (sock, i & 0xff); MYwrite_char (sock, (i & 0xff00) >> 8); MYwrite_char (sock, (i & 0xff0000) >> 16); MYwrite_char (sock, (i & 0xff000000) >> 24); } void MYwrite_string (int sock, char *s) { int i; for (i = 0; MYwrite_char (sock, s[i]), s[i]; i++); } int MYread_FPword (int sock, char *putinhere) { int i; for (i = 0; i < 16; i++) if (MYread_char (sock, &putinhere[i]) < 0) return -1; return 0; } void MYwrite_FPword (int sock, char *fromhere) { int i; for (i = 0; i < 16; i++) MYwrite_char (sock, fromhere[i]); } /* Takes n bytes from source and those n bytes */ /* down to dest */ int passon (int source, int dest, int n) { char *p; int i; p = (char *) malloc (n); if (!p) { perror ("Out of memory\n"); exit (1); } if (n) { for (i = 0; i < n; i++) if (MYread_char (source, &p[i]) < 0) return -1; #ifdef DEBUG if (dest == debugsock) for (i = 0; i < n; i++) fprintf (stderr, ")%02x ", (unsigned char) p[i]); #endif write (dest, p, n); } free (p); return 0; }