diff options
author | Ken Raeburn <raeburn@cygnus> | 1992-06-16 12:04:03 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@cygnus> | 1992-06-16 12:04:03 +0000 |
commit | ce07dd7c0cc9034fd9aac351d34a99b1452c0203 (patch) | |
tree | 1178d85f82390429d19d2f3b233b3bdf72e5b32e /bfd/coffcode.h | |
parent | 41729eb4b085f5e524678a9c0b4d4a6516ad4e6a (diff) | |
download | gdb-ce07dd7c0cc9034fd9aac351d34a99b1452c0203.zip gdb-ce07dd7c0cc9034fd9aac351d34a99b1452c0203.tar.gz gdb-ce07dd7c0cc9034fd9aac351d34a99b1452c0203.tar.bz2 |
[time to file a PR on cvs...]
Various changes to get linker working again for a.out:
* don't set/adjust section file positions or vmas more than once
* use correct page size and segment size when calculating them
* deal with some variations in a.out implementations
Tested on sun4 and sun4->sun3 so far, will be testing further but
needed to get wider exposure&testing. See ChangeLog for details.
Also:
* coffcode.h (coff_write_relocs): Write out swapped reloc, not
pre-swapped version.
* hosts/sparc.h (abort, exit): Hide these names if compiling with
gcc version 2, to avoid warnings.
Diffstat (limited to 'bfd/coffcode.h')
-rw-r--r-- | bfd/coffcode.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bfd/coffcode.h b/bfd/coffcode.h index 09a4744..cceb596 100644 --- a/bfd/coffcode.h +++ b/bfd/coffcode.h @@ -391,6 +391,10 @@ DEFUN(styp_to_sec_flags, (styp_flags), { sec_flags = SEC_ALLOC; } + else if (styp_flags & STYP_INFO) + { + sec_flags = SEC_NEVER_LOAD; + } else { sec_flags = SEC_ALLOC | SEC_LOAD; @@ -1820,7 +1824,7 @@ DEFUN(coff_write_relocs,(abfd), n.r_type = q->howto->type; #endif coff_swap_reloc_out(abfd, &n, &dst); - bfd_write((PTR) &n, 1, RELSZ, abfd); + bfd_write((PTR) &dst, 1, RELSZ, abfd); } } } |