This is the mail archive of the
binutils-cvs@sourceware.cygnus.com
mailing list for the binutils project.
src/ fd/ChangeLog fd/Makefile.am fd/Makefile.i ...
- To: binutils-cvs at sourceware dot cygnus dot com
- Subject: src/ fd/ChangeLog fd/Makefile.am fd/Makefile.i ...
- From: cpopetz at sourceware dot cygnus dot com
- Date: 26 Apr 2000 15:09:44 -0000
CVSROOT: /cvs/src
Module name: src
Changes by: cpopetz@sourceware.cygnus.com 00/04/26 08:09:44
Modified files:
bfd : ChangeLog Makefile.am Makefile.in coff-rs6000.c
coff-tic54x.c coffcode.h coffgen.c coffswap.h
config.bfd configure configure.in cpu-powerpc.c
libcoff.h reloc.c targets.c xcofflink.c
gas : ChangeLog as.c
gas/config : obj-coff.c tc-ppc.c tc-ppc.h
include : ChangeLog
opcodes : ChangeLog configure configure.in disassemble.c
Added files:
bfd : coff64-rs6000.c
include/coff : rs6k64.h
Log message:
Add XCOFF64 support.
bfd:
* Makefile.am (coff64-rs6000.lo): New rule.
* Makefile.in: Regenerate.
* coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
xcoff_is_local_label_name, xcoff_rtype2howto,
xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
(NO_COFF_SYMBOLS): Define.
(xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
internally.
(MINUS_ONE): New macro.
(xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
relocation.
(coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
coff_SWAP_aux_out): Map to the new functions.
* coff64-rs6000.c: New file.
* libcoff.h (bfd_coff_backend_data): Add new fields
_bfd_coff_force_symnames_in_strings and
_bfd_coff_debug_string_prefix_length.
(bfd_coff_force_symnames_in_strings,
bfd_coff_debug_string_prefix_length): New macros for above fields.
* coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
of using coff_swap_sym_in directly.
(FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
(coff_set_flags) Set magic for XCOFF64.
(coff_compute_section_file_positions): Add symbol name length to
string section length if bfd_coff_debug_string_prefix_length is
true.
(coff_write_object_contents): Don't do reloc overflow for XCOFF64.
(coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
using coff_swap_lineno_in directly.
(bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
and _bfd_coff_debug_string_prefix_length fields.
* coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
symbol names into strings table when
bfd_coff_force_symnames_in_strings is true.
* coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
SET_RELOC_VADDR): New macros.
(coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
(coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
code.
(coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
changes within RS6000COFF_C specific code.
(coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
* reloc.c (bfd_perform_relocation, bfd_install_relocation):
Extend existing hack on target name.
* xcofflink.c (XCOFF_XVECP): Extend existing hack on
target name.
* coff-tic54x.c (ticof): Keep up to date with new fields
in bfd_coff_backend_data.
* config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
targ_selvecs to include rs6000coff64_vec for rs6000.
* configure.in: Add rs6000coff64_vec case.
* cpu-powerpc.c: New bfd_arch_info_type.
gas:
* as.c (parse_args): Allow md_parse_option to override -a listing
option.
* config/obj-coff.c (add_lineno): Change type of offset parameter
from "int" to "bfd_vma."
* config/tc-ppc.c (md_pseudo_table): Add "llong" and "machine."
(ppc_mach, ppc_subseg_align, ppc_target_format): New.
(ppc_change_csect): Align correctly for XCOFF64.
(ppc_machine): New function, which discards "ppc_machine" line.
(ppc_tc): Cons for 8 when code is 64 bit.
(md_apply_fix3): Don't check operand->insert. Handle 64 bit
relocations.
(md_parse_option): Handle -a64 and -a32.
(ppc_xcoff64): New.
* config/tc-ppc.h (TARGET_MACH): Define.
(TARGET_FORMAT): Move to function.
(SUB_SEGMENT_ALIGN): Use ppc_subseg_align.
include:
* include/coff/rs6k64.h: New file.
opcodes:
* configure.in: Add bfd_powerpc_64_arch.
* disassemble.c (disassembler): Use print_insn_big_powerpc for
64 bit code.
Patches:
http://sourceware.cygnus.com/cgi-bin/cvsweb.cgi/src/bfd/coff64-rs6000.c.diff?cvsroot=src&r1=NONE&r2=1.1
http://sourceware.cygnus.com/cgi-bin/cvsweb.cgi/src/bfd/ChangeLog.diff?cvsroot=src&r1=1.401&r2=1.402
http://sourceware.cygnus.com/cgi-bin/cvsweb.cgi/src/bfd/Makefile.am.diff?cvsroot=src&r1=1.24&r2=1.25
http://sourceware.cygnus.com/cgi-bin/cvsweb.cgi/src/bfd/Makefile.in.diff?cvsroot=src&r1=1.26&r2=1.27
http://sourceware.cygnus.com/cgi-bin/cvsweb.cgi/src/bfd/coff-rs6000.c.diff?cvsroot=src&r1=1.6&r2=1.7
http://sourceware.cygnus.com/cgi-bin/cvsweb.cgi/src/bfd/coff-tic54x.c.diff?cvsroot=src&r1=1.4&r2=1.5
http://sourceware.cygnus.com/cgi-bin/cvsweb.cgi/src/bfd/coffcode.h.diff?cvsroot=src&r1=1.38&r2=1.39
http://sourceware.cygnus.com/cgi-bin/cvsweb.cgi/src/bfd/coffgen.c.diff?cvsroot=src&r1=1.12&r2=1.13
http://sourceware.cygnus.com/cgi-bin/cvsweb.cgi/src/bfd/coffswap.h.diff?cvsroot=src&r1=1.6&r2=1.7
http://sourceware.cygnus.com/cgi-bin/cvsweb.cgi/src/bfd/config.bfd.diff?cvsroot=src&r1=1.27&r2=1.28
http://sourceware.cygnus.com/cgi-bin/cvsweb.cgi/src/bfd/configure.diff?cvsroot=src&r1=1.26&r2=1.27
http://sourceware.cygnus.com/cgi-bin/cvsweb.cgi/src/bfd/configure.in.diff?cvsroot=src&r1=1.21&r2=1.22
http://sourceware.cygnus.com/cgi-bin/cvsweb.cgi/src/bfd/cpu-powerpc.c.diff?cvsroot=src&r1=1.1.1.1&r2=1.2
http://sourceware.cygnus.com/cgi-bin/cvsweb.cgi/src/bfd/libcoff.h.diff?cvsroot=src&r1=1.8&r2=1.9
http://sourceware.cygnus.com/cgi-bin/cvsweb.cgi/src/bfd/reloc.c.diff?cvsroot=src&r1=1.21&r2=1.22
http://sourceware.cygnus.com/cgi-bin/cvsweb.cgi/src/bfd/targets.c.diff?cvsroot=src&r1=1.18&r2=1.19
http://sourceware.cygnus.com/cgi-bin/cvsweb.cgi/src/bfd/xcofflink.c.diff?cvsroot=src&r1=1.4&r2=1.5
http://sourceware.cygnus.com/cgi-bin/cvsweb.cgi/src/gas/ChangeLog.diff?cvsroot=src&r1=1.338&r2=1.339
http://sourceware.cygnus.com/cgi-bin/cvsweb.cgi/src/gas/as.c.diff?cvsroot=src&r1=1.9&r2=1.10
http://sourceware.cygnus.com/cgi-bin/cvsweb.cgi/src/gas/config/obj-coff.c.diff?cvsroot=src&r1=1.22&r2=1.23
http://sourceware.cygnus.com/cgi-bin/cvsweb.cgi/src/gas/config/tc-ppc.c.diff?cvsroot=src&r1=1.9&r2=1.10
http://sourceware.cygnus.com/cgi-bin/cvsweb.cgi/src/gas/config/tc-ppc.h.diff?cvsroot=src&r1=1.5&r2=1.6
http://sourceware.cygnus.com/cgi-bin/cvsweb.cgi/src/include/ChangeLog.diff?cvsroot=src&r1=1.29&r2=1.30
http://sourceware.cygnus.com/cgi-bin/cvsweb.cgi/src/include/coff/rs6k64.h.diff?cvsroot=src&r1=NONE&r2=1.1
http://sourceware.cygnus.com/cgi-bin/cvsweb.cgi/src/opcodes/ChangeLog.diff?cvsroot=src&r1=1.118&r2=1.119
http://sourceware.cygnus.com/cgi-bin/cvsweb.cgi/src/opcodes/configure.diff?cvsroot=src&r1=1.8&r2=1.9
http://sourceware.cygnus.com/cgi-bin/cvsweb.cgi/src/opcodes/configure.in.diff?cvsroot=src&r1=1.7&r2=1.8
http://sourceware.cygnus.com/cgi-bin/cvsweb.cgi/src/opcodes/disassemble.c.diff?cvsroot=src&r1=1.10&r2=1.11