Ian Lance Taylor [Tue, 18 Jun 1996 18:51:14 +0000 (18:51 +0000)]
Tue Jun 18 14:24:12 1996 Klaus Kaempf (kkaempf@progis.de)
* config.sub: Recognize -openvms.
* configure.in (alpha*-*-*vms*): Set noconfigdirs.
* make-all.com, setup.com: New files.
Ian Lance Taylor [Tue, 18 Jun 1996 17:56:53 +0000 (17:56 +0000)]
* coff-h8300.c (h8300_reloc16_extra_cases): Make name a const
pointer.
(h8300_bfd_link_add_symbols): Likewise.
J.T. Conklin [Mon, 17 Jun 1996 22:55:02 +0000 (22:55 +0000)]
* doc/as.texinfo: Reorder chapter of machine dependent options so
that it is sorted by chip name.
* doc/as.texinfo: Use consistant spelling of Vax.
* doc/c-vax.texi: Likewise.
Fred Fish [Mon, 17 Jun 1996 22:37:34 +0000 (22:37 +0000)]
* Makefile.in (DVIPS): New define, set to dvips.
(dvi): Add stabs.dvi.
(ps): New target.
(all-doc): Depend on info, dvi, and ps targets.
(STAGESTUFF): Add *.ps and *.dvi files.
(clean-info, clean-dvi): Remove.
(mostlyclean): Does not depend upon clean-info or clean-dvi,
rules completely rewritten.
(maintainer-clean): Remove clean-info and clean-dvi
dependencies and put their actions in the rules.
(gdb.ps): New target
(gdb.dvi, gdbgui.dvi, gdbint.dvi, stabs.dvi): Remove
intermediate TeX files, whether they have 2 or 3 character
extensions.
(gdbint.ps): Add target and rules.
(gdb-internals): Delete unused target.
(Makefile): Depends upon config.status also.
Jeff Law [Mon, 17 Jun 1996 18:31:51 +0000 (18:31 +0000)]
* config/tc-hppa.c (md_pseudo_table): Add ".begin_try" and ".end_try"
pseudo ops.
(tc_gen_reloc, SOM version): Handle R_BEGIN_TRY and R_END_TRY.
(md_apply_fix): Likewise.
(pa_try): New function.
(hppa_force_relocation): Force relocs for BEGIN_TRY and END_TRY.
More PA exception handling crud.
Jeff Law [Mon, 17 Jun 1996 18:25:09 +0000 (18:25 +0000)]
* som.h (R_HPPA_BEGIN_TRY, R_HPPA_END_TRY): Define.
* som.c (som_write_fixups): Handle R_BEGIN_TRY and R_END_TRY.
gunk for EH on the PA.
Ian Lance Taylor [Mon, 17 Jun 1996 16:54:39 +0000 (16:54 +0000)]
* elf32-mips.c (mips_elf_relocate_section): Don't create a reloc
for R_MIPS_REL32 and R_MIPS_32 relocs if no dynamic sections were
created.
(mips_elf_check_relocs): Only create .rel.dyn for R_MIPS_REL32 and
R_MIPS_32 relocs if creating a shared library.
Ian Lance Taylor [Mon, 17 Jun 1996 16:48:48 +0000 (16:48 +0000)]
* dlltool.c (make_one_lib_file): Use BFD_RELOC_RVA rather than
BFD_RELOC_32 in IDATA7.
PR 9877.
Jeff Law [Mon, 17 Jun 1996 05:59:01 +0000 (05:59 +0000)]
* config/tc-hppa.c (md_pseudo_table): Add ".level" pseudo op.
(pa_level): New function.
hpux10 gunk.
Jeff Law [Sun, 16 Jun 1996 22:22:51 +0000 (22:22 +0000)]
* somsolib.c (som_solib_create_inferior_hook): Handle tracking
of shl_load calls for hpux10.
Just something that needed fixing.
Geoffrey Noer [Sun, 16 Jun 1996 01:39:26 +0000 (01:39 +0000)]
cygwin32 changes
Geoffrey Noer [Sun, 16 Jun 1996 00:18:38 +0000 (00:18 +0000)]
enable_gdbtk=no for cygwin32-hosted toolchains
Ian Lance Taylor [Sat, 15 Jun 1996 03:07:16 +0000 (03:07 +0000)]
* listing.c (listing_newline): Don't do anything if listing is 0.
Tom Tromey [Thu, 13 Jun 1996 18:44:33 +0000 (18:44 +0000)]
* config.in: Regenerated.
* acconfig.h (HAVE_THREAD_DB_LIB): Added entry.
* configure: Regenerated.
* aclocal.m4 (CY_AC_PATH_TCLH, CY_AC_PATH_TKH): Use odd names to
avoid name clashes with SunOS headers.
Ian Lance Taylor [Thu, 13 Jun 1996 18:07:39 +0000 (18:07 +0000)]
* cofflink.c (_bfd_coff_final_link): Handle long section names.
* coffcode.h (coff_write_object_contents): If there are long
section names, always set the f_symptr field, even if there are no
symbols.
* peicode.h (coff_swap_filehdr_in): Don't clear the f_symptr field
if there are no symbols.
Ian Lance Taylor [Thu, 13 Jun 1996 17:40:58 +0000 (17:40 +0000)]
* coffgen.c (make_a_section_from_file): Check return value of
_bfd_coff_read_string_table.
(coff_real_object_p): Check return value of
make_a_section_from_file.
(_bfd_coff_read_string_table): Check that there are some symbols
before trying to read the string table size.
Ian Lance Taylor [Thu, 13 Jun 1996 01:10:46 +0000 (01:10 +0000)]
* write.c (adjust_reloc_syms): Don't set sy_used_in_reloc for an
absolute symbol unless TC_FORCE_RELOCATION returns true.
Ian Lance Taylor [Thu, 13 Jun 1996 00:16:39 +0000 (00:16 +0000)]
* xcofflink.c (xcoff_link_add_symbols): When considering whether
to replace a symbol in a dynamic object with a symbol from another
dynamic object, do the replacement if the existing symbol is
global linkage code.
PR 9860.
Also fix a couple of comment typos and indentation problems.
Ian Lance Taylor [Wed, 12 Jun 1996 22:05:32 +0000 (22:05 +0000)]
* xcofflink.c (_bfd_ppc_xcoff_relocate_section): Check explicitly
for _ptrgl, and treat it as global linkage code.
PR 9860.
Ian Lance Taylor [Wed, 12 Jun 1996 18:59:47 +0000 (18:59 +0000)]
* nm.c (struct get_relocs_info): Define.
(line_numbers): New static variable.
(long_options): Add "line-numbers".
(usage): Mention -l and --line-numbers.
(main): Handle -l.
(print_symbol): Print line numbers if requested.
(get_relocs): New static function.
* binutils.texi, nm.1: Document -l/--line-numbers.
Ian Lance Taylor [Wed, 12 Jun 1996 18:18:23 +0000 (18:18 +0000)]
* aoutx.h (NAME(aout,find_nearest_line)): Notice if we find a
filename or N_SO symbol past the offset, and use it to indicate
that there is no line number or function when appropriate.
Ian Lance Taylor [Wed, 12 Jun 1996 03:14:14 +0000 (03:14 +0000)]
* objdump.c (dump_reloc_set): Add sec parameter. Change all
callers. If with_line_numbers is set, display line numbers of
relocation entries.
* binutils.texi, objdump.1: Document -l with -r.
Fred Fish [Wed, 12 Jun 1996 03:10:51 +0000 (03:10 +0000)]
From Michael Snyder <Michael_Snyder@next.com>:
* bcache.c (print_bcache_statistics): Avoid divide-by-zero
exception if one or more objfile has no symbols, such as when
a dynamic library has been stripped.
Ian Lance Taylor [Tue, 11 Jun 1996 22:25:55 +0000 (22:25 +0000)]
* xcofflink.c (xcoff_build_ldsyms): Set XCOFF_DEF_REGULAR for a
common symbol defined by the linker. Don't export function code
even if export_defineds is set.
PR 9856.
Stu Grossman [Tue, 11 Jun 1996 19:21:42 +0000 (19:21 +0000)]
* Makefile.in (INTERNAL_LDFLAGS): Add in flags from configure.
* configure configure.in: Only make sol-thread.o for native.
Also, switch to dlopened libthread_db.so.1.
* sol-thread.c: Switch to using dlopen to get the thread_db
library.
Fred Fish [Tue, 11 Jun 1996 00:35:19 +0000 (00:35 +0000)]
* config/sparc/{xm-sun4sol2.h,xm-sun4os4.h} (MMAP_BASE_ADDRESS):
Change from 0xE0000000 to 0xC0000000.
PR 9792
Ian Lance Taylor [Mon, 10 Jun 1996 23:32:34 +0000 (23:32 +0000)]
* config/tc-m68k.c (m68k_ip): Accept ABSL for 'O', so that `bfextu
d0{24:1},d0' works without an immediate prefix on the bit numbers.
(md_begin): Add digits to alt_notend_table.
(md_parse_option): Make s a const pointer.
Ian Lance Taylor [Mon, 10 Jun 1996 21:07:57 +0000 (21:07 +0000)]
* config/tc-sparc.c (md_pseudo_table): Add "empty".
(s_empty): New static function.
Ian Lance Taylor [Mon, 10 Jun 1996 19:29:51 +0000 (19:29 +0000)]
* gas/all/cofftag.s, gas/all/cofftag.d: New test for COFF enum tag
with the same name as a global variable.
* gas/all/gas.exp: Run cofftag test for any COFF target.
Ian Lance Taylor [Mon, 10 Jun 1996 19:29:25 +0000 (19:29 +0000)]
* config/obj-coff.c (struct filename_list): Only define if not
BFD_ASSEMBLER.
(filename_list_head, filename_list_tail): Likewise.
(c_section_symbol): Remove unused BFD_ASSEMBLER version.
(obj_coff_endef, BFD_ASSEMBLER version): Don't set the debugging
flag for C_MOS, C_MOE, C_MOU, or C_EOS symbols, since they should
have a section of N_ABS rather than N_DEBUG. If we do a merge,
remove the new symbol from the list.
(obj_coff_endef, both versions): Call tag_insert even if there is
an old symbol with the same name, if the old symbol does not
happen to be a tag.
(coff_frob_symbol): Check SF_GET_TAG, C_EOF, and C_FILE outside of
the SF_GET_DEBUG condition. Don't call SA_SET_SYM_ENDNDX with a
symbol that will be moved to the end of the symbol list.
(coff_adjust_section_syms): Always call section_symbol for .text,
.data, and .bss.
(coff_frob_section): Likewise. Also, remove unused variable
strname.
Michael Meissner [Mon, 10 Jun 1996 18:54:38 +0000 (18:54 +0000)]
Add .lcomm directive
Ian Lance Taylor [Mon, 10 Jun 1996 16:29:54 +0000 (16:29 +0000)]
* config/tc-ns32k.c (convert_iif): Call frag_grow rather than
manipulating frags directly.
(md_number_to_field): Adjust mem_ptr correctly if ENDIAN is
defined.
Ian Lance Taylor [Mon, 10 Jun 1996 16:15:05 +0000 (16:15 +0000)]
* app.c (do_scrub_chars): If '/' is LINE_COMMENT_START, check
whether the next character is '*' before checking whether we are
at the start of a line. Permit LINE_COMMENT_START to start a
comment in state 1 (seen some whitespace) as well, to match the
documentation.
Ian Lance Taylor [Mon, 10 Jun 1996 15:51:26 +0000 (15:51 +0000)]
* gasp.c (do_align): Permit a fill value for .align.
Jeff Law [Sun, 9 Jun 1996 22:40:13 +0000 (22:40 +0000)]
Opps.
Jeff Law [Sun, 9 Jun 1996 22:38:09 +0000 (22:38 +0000)]
* coff-h8300.c (h8300_reloc16_estimate): Fix many minor spacing
problems.
(h8300_reloc16_estimate, cases R_JMP1, R_JMP2): Adjust "dot"
correctly for the two variants. Allow relaxing if the target
is 128 bytes away since after relaxation it'll be 126 bytes away.
(h8300_reloc16_estimate, case R_PCRWORD): Correctly adjust
"dot" and "value". Allow relaxing if the target is 128 bytes
away since after relaxation it'll be 126 bytes away.
* reloc16.c (bfd_coff_reloc16_relax_section): Keep relaxing
the given section until nothing changes.
Improving corner case relaxing for jmp:16->bra:8, jmp:24->bra:8 and
bCC:16->bCC:8.
Re-relax a section if something changes; more relaxing opportunities
may be available.
Jim Wilson [Sat, 8 Jun 1996 03:52:13 +0000 (03:52 +0000)]
Kill r16/rce/acp stuff.
Jim Wilson [Sat, 8 Jun 1996 03:45:18 +0000 (03:45 +0000)]
Kill r16/rce/acp stuff.
Jim Wilson [Sat, 8 Jun 1996 03:18:15 +0000 (03:18 +0000)]
Kill r16/rce/acp stuff.
Jim Wilson [Sat, 8 Jun 1996 03:06:36 +0000 (03:06 +0000)]
Kill r16/rce/acp stuff.
Per Bothner [Sat, 8 Jun 1996 01:26:46 +0000 (01:26 +0000)]
* config.guess (i?86-ncr-sysv*): Emit minor release numbers.
Recognize the NCR 4850 machine and NCR Pentium-based platforms.
Per Bothner [Sat, 8 Jun 1996 01:13:04 +0000 (01:13 +0000)]
* config.guess: Combine mips-mips-riscos cases, and use cpp to
distinguish sysv/svr4/bsd variants.
Based on a patch from Harlan Stenn <harlan@clark.net>.
Tom Tromey [Fri, 7 Jun 1996 21:30:04 +0000 (21:30 +0000)]
* configure.in: Added copyright notice.
* move-if-change: Added copyright notice.
Ian Lance Taylor [Fri, 7 Jun 1996 15:29:36 +0000 (15:29 +0000)]
* emultempl/sunos.em: Include libiberty.h.
(gld${EMULATION_NAME}_set_symbols): New static function to add
LD_LIBRARY_PATH to the list of search directories.
(ld_${EMULATION_NAME}_emulation): Add new set_symbols routine.
Ian Lance Taylor [Thu, 6 Jun 1996 23:57:18 +0000 (23:57 +0000)]
* ieee.c (ieee_write_object_contents): Put a timestamp in the file
to keep the HP emulator database happy.
PR 9493.
Michael Meissner [Thu, 6 Jun 1996 23:30:06 +0000 (23:30 +0000)]
do not build tk under Solaris Powerpc
Michael Meissner [Thu, 6 Jun 1996 21:11:52 +0000 (21:11 +0000)]
Add missing file for solaris on powerpc
Michael Meissner [Thu, 6 Jun 1996 20:45:30 +0000 (20:45 +0000)]
Do not build pieces needing shared libs on PPC Solaris
Ian Lance Taylor [Thu, 6 Jun 1996 19:51:04 +0000 (19:51 +0000)]
Thu Jun 6 15:24:45 1996 Richard Henderson <rth@tamu.edu>
* ecoff.c (_bfd_ecoff_new_section_hook): Remove the _PDATA
alignment hack--we can get the lnnoptr info another way without
suddenly increasing the alignment requirements. Set the flags for
the _PDATA section.
(ecoff_compute_section_file_positions): Do so.
Ian Lance Taylor [Thu, 6 Jun 1996 19:14:16 +0000 (19:14 +0000)]
* README: Add notes on how to build if you don't have ar.
Tom Tromey [Thu, 6 Jun 1996 16:34:49 +0000 (16:34 +0000)]
.Sanitize cleanups for IDK
Ian Lance Taylor [Thu, 6 Jun 1996 16:31:03 +0000 (16:31 +0000)]
* gas/m68k/all.exp: Pass -m68020 when assembling the disperr.s
test.
Ian Lance Taylor [Thu, 6 Jun 1996 16:23:04 +0000 (16:23 +0000)]
* emulparams/elf32bmip.sh (OTHER_GOT_SYMBOLS): Use ALIGN(16)
rather than . when computing _gp value. From Per Fogelstrom.
* emulparams/elf32lmip.sh (OTHER_GOT_SYMBOLS): Likewise.
Ian Lance Taylor [Thu, 6 Jun 1996 16:07:23 +0000 (16:07 +0000)]
* ldmain.c (main): Don't close and unlink the file on error, since
remove_output will do it anyhow.
* ldlang.c (open_output): Set boolean variable to true, not 1.
Ian Lance Taylor [Thu, 6 Jun 1996 15:30:28 +0000 (15:30 +0000)]
* config.bfd: Recognize powerpc-*-linux* and powerpcle-*-linux*.
From Kevin Buettner <kev@primenet.com>.
Gordon Irlam [Wed, 5 Jun 1996 19:38:35 +0000 (19:38 +0000)]
Remove cygnus local comments from install-sh and install.sh.
Michael Meissner [Wed, 5 Jun 1996 16:02:54 +0000 (16:02 +0000)]
Latest changes from Andrew
Jackie Smith Cashion [Wed, 5 Jun 1996 15:11:10 +0000 (15:11 +0000)]
Wed Jun 5 01:52:57 1996 James G. Smith <jsmith@cygnus.co.uk>
* configure.in (configdirs): Force 4100 builds to use 4300 GDB
target.
* configure: Rebuild.
* config/mips/vr4300el.mt (SIM_OBS): Include simulator in
little-endian builds.
Jackie Smith Cashion [Wed, 5 Jun 1996 08:16:16 +0000 (08:16 +0000)]
Wed Jun 5 08:28:13 1996 James G. Smith <jsmith@cygnus.co.uk>
* configure.in: Define @SIMCONF@ depending on mips target.
* configure: Rebuild.
* Makefile.in (run): Add @SIMCONF@ to control simulator
construction.
* gencode.c: Change LOADDRMASK to 64bit memory model only.
* interp.c: Remove some debugging, provide more detailed error
messages, update memory accesses to use LOADDRMASK.
Per Bothner [Wed, 5 Jun 1996 03:48:09 +0000 (03:48 +0000)]
* config.guess: Merge with FSF:
Mon Jun 3 08:49:14 1996 Karl Heuer <kwzh@gnu.ai.mit.edu>
* config.guess (*:Linux:*:*): Add guess for sparc-unknown-linux.
Fri May 24 18:34:53 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* config.guess (AViiON:dgux:*:*): Fix typo in recognizing mc88110.
Fri Apr 12 20:03:59 1996 Per Bothner <bothner@spiff.gnu.ai.mit.edu>
* config.guess: Combine two OSF1 rules.
Also recognize field test versions. From mjr@zk3.dec.com.
* config.guess (dgux): Use /usr/bin/uname rather than uname,
because GNU uname does not support -p. From pmr@pajato.com.
Gordon Irlam [Wed, 5 Jun 1996 01:24:52 +0000 (01:24 +0000)]
Add install.sh copyright terms from X11R5.
Ian Lance Taylor [Tue, 4 Jun 1996 23:37:13 +0000 (23:37 +0000)]
* ldcref.c: New file.
* ld.h (add_cref, output_cref): Declare.
* ldmain.c (main): Initialize notice_all field. If it is set at
end of link, call output_cref.
(notice): Rename from notice_ysym. Check notice_all.
* ldmisc.c (finfo): Make globally visible.
* ldmisc.h (finfo): Declare.
* lexsup.c (OPTION_CREF): Define.
(ld_options): Add "cref".
(parse_args): Handle OPTION_CREF.
* Makefile.in: Rebuild dependencies.
(CFILES): Add ldcref.c.
(OFILES): Add ldcref.o.
* ld.texinfo, ld.1: Document --cref.
Ian Lance Taylor [Tue, 4 Jun 1996 23:11:00 +0000 (23:11 +0000)]
* linker.c (_bfd_generic_link_add_one_symbol): If notice_all is
set, always call the notice callback.
* VERSION: Increment for bfdlink.h change.
Tom Tromey [Tue, 4 Jun 1996 22:16:01 +0000 (22:16 +0000)]
* Makefile.in (install): Don't check to see if tooldir exists.
Make $(tooldir) and $(tooldir)/bin.
Tom Tromey [Tue, 4 Jun 1996 21:35:58 +0000 (21:35 +0000)]
* Makefile.in (MAKEDIRS): Removed $(tooldir).
Michael Meissner [Tue, 4 Jun 1996 15:02:47 +0000 (15:02 +0000)]
Do not turn on -mregnames by default
Michael Meissner [Tue, 4 Jun 1996 13:27:31 +0000 (13:27 +0000)]
Build psim on ppc SVR4, Solaris, and Elf targets.
Michael Meissner [Mon, 3 Jun 1996 21:40:45 +0000 (21:40 +0000)]
Make main an int function, not void
Ian Lance Taylor [Mon, 3 Jun 1996 21:13:41 +0000 (21:13 +0000)]
* coff-sh.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Set to 4.
(sh_relax_delete_bytes): Correct handling of differently sized
trailing alignment reloc.
Michael Meissner [Mon, 3 Jun 1996 20:26:09 +0000 (20:26 +0000)]
Abort if we find the program has an .interp section
Ian Lance Taylor [Mon, 3 Jun 1996 20:20:11 +0000 (20:20 +0000)]
* bfd-in.h: Use #error if BFD_HOST_64_BIT can not be defined.
* bfd-in2.h: Rebuild.
* configure.in: Warn if there is no known 64 bit type.
* configure: Rebuild.
Michael Meissner [Mon, 3 Jun 1996 19:10:25 +0000 (19:10 +0000)]
Add time, gettimeofday, and getrusage system call support
Jeff Law [Mon, 3 Jun 1996 17:59:03 +0000 (17:59 +0000)]
* inftarg.c (child_thread_alive): Protect declaration with
#ifndef CHILD_THREAD_ALIVE.
Fixes net buglet.
Jeff Law [Mon, 3 Jun 1996 17:49:28 +0000 (17:49 +0000)]
* source.c (find_source_lines): Check the time on the symtab's bfd if
it exists, else check the time on the exec_bfd.
Fixes net buglet reported by Michael Snyder @ NeXT.
Ian Lance Taylor [Mon, 3 Jun 1996 16:34:24 +0000 (16:34 +0000)]
* Makefile.in (end.h): Use explicit ./ when running end.
Ian Lance Taylor [Mon, 3 Jun 1996 15:58:45 +0000 (15:58 +0000)]
* configure.in: Add calls to AC_CONFIG_HEADER, AC_CHECK_HEADERS,
AC_CHECK_LIB, and AC_CHECK_FUNCS. Change AC_OUTPUT to set
stamp-h.
* configure: Rebuild.
* config.in: New file, generated by autoheader.
* interp.c: Include "config.h". Include <stdlib.h>, <string.h>,
and <strings.h> if they exist. Replace #ifdef sun with #ifdef
HAVE_ANINT and HAVE_AINT, as appropriate.
* Makefile.in (run): Use @LIBS@ rather than -lm.
(interp.o): Depend upon config.h.
(Makefile): Just rebuild Makefile.
(clean): Remove stamp-h.
(mostlyclean): Make the same as clean, not as distclean.
(config.h, stamp-h): New targets.
Ian Lance Taylor [Mon, 3 Jun 1996 15:36:04 +0000 (15:36 +0000)]
* config/tc-mips.c (mips_ip): Don't call as_warn if we are setting
insn_error. Don't put the string "ERROR" in insn_error. Set
insn_error rather than calling as_warn for an unsupported opcode.
Ian Lance Taylor [Mon, 3 Jun 1996 15:17:34 +0000 (15:17 +0000)]
* Makefile.in: Rebuild dependencies.
(BFD32_BACKENDS): Add ppcboot.o.
(BFD32_BACKENDS_CFILES): Add ppcboot.c.
Ian Lance Taylor [Mon, 3 Jun 1996 15:04:14 +0000 (15:04 +0000)]
* elf32-mips.c (mips_elf_size_dynamic_sections): Initialize c.
From Per Fogelstrom <per.fogelstrom@mailbox200.swipnet.se>.
Michael Meissner [Sun, 2 Jun 1996 15:40:16 +0000 (15:40 +0000)]
Add Solaris and Linux emulations
Ian Lance Taylor [Sun, 2 Jun 1996 01:55:28 +0000 (01:55 +0000)]
* config/tc-mips.c (md_parse_option): Check for a 64 bit format
before permitting -64.
* output-file.c (output_file_create): Remove duplicate
bfd_perror.
Ian Lance Taylor [Sun, 2 Jun 1996 01:51:55 +0000 (01:51 +0000)]
* elf64-mips.c (bfd_mips_elf64_swap_reginfo_in)
(bfd_mips_elf64_swap_reginfo_out): Move from here...
* elf32-mips.c (bfd_mips_elf64_swap_reginfo_in)
(bfd_mips_elf64_swap_reginfo_out): ...to here.
Ian Lance Taylor [Fri, 31 May 1996 21:46:14 +0000 (21:46 +0000)]
* config/tc-mips.c (md_begin): If -64, create a .MIPS.options
section rather than a .reginfo section.
(mips_elf_final_processing): If -64, write out 64 bit RegInfo
information.
Ian Lance Taylor [Fri, 31 May 1996 21:43:35 +0000 (21:43 +0000)]
* elf64-mips.c: Improve reloc special_functions and handling of
SHT_MIPS_OPTIONS section.
* elf32-mips.c (_bfd_mips_elf_hi16_reloc): Rename from
mips_elf_hi16_reloc and make globally visible.
(_bfd_mips_elf_lo16_reloc): Rename from mips_elf_lo16_reloc and
make globally visible.
(_bfd_mips_elf_got16_reloc): Rename from mips_elf_got16_reloc and
make globally visible.
(_bfd_mips_elf_gprel16_reloc): Rename from mips_elf_gprel16_reloc
and make globally visible.
(gprel16_with_gp): Check howto->src_mask before using value in
insn.
(_bfd_mips_elf_gprel32_reloc): Rename from mips_elf_gprel32_reloc
and make globally visible.
(gprel32_with_gp): Check howto->src_mask before fetching value.
(bfd_mips_elf_swap_options_in): New function.
(bfd_mips_elf_swap_options_out): New function.
(_bfd_mips_elf_set_private_flags): Rename from
mips_elf_set_private_flags and make globally visible.
(_bfd_mips_elf_copy_private_bfd_data): Rename from
mips_elf_copy_private_bfd_data and make globally visible.
(_bfd_mips_elf_merge_private_bfd_data): Rename from
mips_elf_merge_private_bfd_data and make globally visible.
(_bfd_mips_elf_section_from_shdr): Accept .MIPS.options as a name
for a SHT_MIPS_OPTIONS section.
(mips_elf32_section_from_shdr): Handle SHT_MIPS_OPTIONS section.
(_bfd_mips_elf_fake_sections): Consider .MIPS.options to be the
name of a SHT_MIPS_OPTIONS section.
(_bfd_mips_elf_set_section_contents): New function.
(mips_elf32_section_processing): Set the GP value in a
SHT_MIPS_OPTIONS section.
(_bfd_mips_elf_find_nearest_line): Rename from
mips_elf_find_nearest_line and make globally visible.
(bfd_elf32_set_section_contents): Define.
* elf-bfd.h (_bfd_mips_elf_hi16_reloc): Declare.
(_bfd_mips_elf_lo16_reloc): Declare.
(_bfd_mips_elf_gprel16_reloc): Declare.
(_bfd_mips_elf_got16_reloc): Declare.
(_bfd_mips_elf_gprel32_reloc): Declare.
(_bfd_mips_elf_set_private_flags): Declare.
(_bfd_mips_elf_copy_private_bfd_data): Declare.
(_bfd_mips_elf_merge_private_bfd_data): Declare.
(_bfd_mips_elf_find_nearest_line): Declare.
(_bfd_mips_elf_set_section_contents): Declare.
Ian Lance Taylor [Fri, 31 May 1996 18:12:22 +0000 (18:12 +0000)]
* elf32-hppa.c (elf32_hppa_info_to_howto): Rename from
elf_info_to_howto.
(elf_info_to_howto): Define.
* elf32-sparc.c (elf32_sparc_info_to_howto): Rename from
elf_info_to_howto.
(elf_info_to_howto): Define.
* elf64-sparc.c (sparc64_elf_info_to_howto): Rename from
elf_info_to_howto.
(elf_info_to_howto): Define.
Ian Lance Taylor [Fri, 31 May 1996 18:10:44 +0000 (18:10 +0000)]
* nm.c (filter_symbols): Check for BSF_WEAK as well as
BSF_GLOBAL.
* objcopy.c (filter_symbols): Likewise.
Jeff Law [Fri, 31 May 1996 17:11:51 +0000 (17:11 +0000)]
Keep abug.exp
Ian Lance Taylor [Fri, 31 May 1996 16:43:12 +0000 (16:43 +0000)]
* emultempl/pe.em (sort_sections): Don't assume that a
wild_statement has a section name.
Ian Lance Taylor [Fri, 31 May 1996 05:10:20 +0000 (05:10 +0000)]
* config/tc-mips.c (load_register): If mips_isa < 3, permit a 32
bit value with the high bit set.
Michael Meissner [Fri, 31 May 1996 01:16:10 +0000 (01:16 +0000)]
Make ! a comment only under Solaris; Add .rdata/.rodata pseduo ops
Ian Lance Taylor [Thu, 30 May 1996 23:08:47 +0000 (23:08 +0000)]
* config/tc-mips.c (mips_64): New static variable.
(mips_target_format): If mips_64, return elf64 targets rather than
elf32 ones.
(md_longopts): Add "32" and "64".
(md_parse_option): Handle -32 and -64.
(md_show_usage): Mention -32 and -64.
(cons_fix_new_mips): If mips_64, don't convert an 8 byte reloc to
a 4 byte one.
Ian Lance Taylor [Thu, 30 May 1996 23:04:52 +0000 (23:04 +0000)]
* read.c (s_lcomm): Set section flags for .sbss section.
Ian Lance Taylor [Thu, 30 May 1996 22:33:51 +0000 (22:33 +0000)]
* elf64-mips.c: Extensive additions to provide better support for
writing files and for gas.
* elf32-mips.c (_bfd_mips_elf_object_p): New function, broken out
of mips_elf_object_p.
(mips_elf32_object_p): Rename from mips_elf_object_p; call
_bfd_mips_elf_object_p.
(_bfd_mips_elf_final_write_processing): Rename from
mips_elf_final_write_processing and make globally visible.
(_bfd_mips_elf_fake_sections): Rename from
mips_elf_fake_sections and make globally visible.
(_bfd_mips_elf_section_from_bfd_section): Rename from
mips_elf_section_from_bfd_section and make globally visible.
(_bfd_mips_elf_section_processing): New function, broken out of
mips_elf_section_processing.
(mips_elf32_section_processing): Rename from
mips_elf_section_processing; call
_bfd_mips_elf_section_processing.
(_bfd_mips_elf_symbol_processing): Rename from
mips_elf_symbol_processing and make globally visible.
(_bfd_mips_elf_read_ecoff_info): Rename from
mips_elf_read_ecoff_info and make globally visible.
(mips_elf32_ecoff_debug_swap): Rename from
mips_elf_ecoff_debug_swap.
* elf.c (_bfd_elf_symbol_from_bfd_symbol): Use asymbol rather than
struct symbol_cache_entry.
(_bfd_elf_validate_reloc): New function, moved in from
elfcode.h:validate_reloc.
* elfcode.h (validate_reloc): Remove; moved into elf.c and renamed
to _bfd_elf_validate_reloc. Change all callers.
* elf-bfd.h (bfd_section_from_shdr): Declare.
(_bfd_elf_symbol_from_bfd_symbol): Declare.
(_bfd_elf_validate_reloc): Declare.
(_bfd_mips_elf_object_p): Declare.
(_bfd_mips_elf_fake_sections): Declare.
(_bfd_mips_elf_section_from_bfd_section): Declare.
(_bfd_mips_elf_section_processing): Declare.
(_bfd_mips_elf_symbol_processing): Declare.
(_bfd_mips_elf_read_ecoff_info): Declare.
(_bfd_mips_elf_final_write_processing): Declare.
* elfxx-target.h (bfd_elfNN_get_reloc_upper_bound): Don't define
if already defined.
Michael Meissner [Thu, 30 May 1996 19:22:16 +0000 (19:22 +0000)]
Make ! a comment character
Jeff Law [Thu, 30 May 1996 17:38:32 +0000 (17:38 +0000)]
* gdb.base/callfuncs.exp: Finish last change -- make sure the
prototype information ends up in the compiler info file.
Mark Alexander [Thu, 30 May 1996 16:58:48 +0000 (16:58 +0000)]
* dsrec.c (make_srec): Fix calculation of address size
to allow addresses less than 0x100.
Ian Lance Taylor [Thu, 30 May 1996 16:43:11 +0000 (16:43 +0000)]
* elf32-mips.c (mips_elf_object_p): Handle E_MIPS_ARCH_4.
(mips_elf_final_write_processing): Likewise.
Ian Lance Taylor [Thu, 30 May 1996 16:36:27 +0000 (16:36 +0000)]
* mips.h (E_MIPS_ARCH_4): Define.
Michael Meissner [Thu, 30 May 1996 14:40:22 +0000 (14:40 +0000)]
Make 4 argument .stabd into .stabn on PowerPC Solaris
Wilfried Moser [Thu, 30 May 1996 11:26:24 +0000 (11:26 +0000)]
* ch-exp.c (ch_lex): In case of LOC_TYPEDEF call calculate_array_length.