OSDN Git Service
law [Thu, 30 Aug 2001 20:15:05 +0000 (20:15 +0000)]
Thu Aug 30 12:05:13 2001 J"orn Rennecke <amylaar@redhat.com>
* tc-h8300.c (tc_crawl_symbol_chain, tc_headers_hook): Don't
define for BFD_ASSEMBLER.
(tc_reloc_mangle): Likewise.
(tc_gen_reloc): New function for BFD_ASSEMBLER.
More of Joern's patches with minor changes s/OBJ_ELF/BFD_ASSEMBLER/
duda [Thu, 30 Aug 2001 16:47:50 +0000 (16:47 +0000)]
* dumper.h: Update copyright notice.
* dumper.cc: Ditto.
* dumper.cc: (dumper::print_core_section_list): New function.
* dumper.h: (dumper::print_core_section_list): Declare it.
* dumper.cc (print_section_name): New function.
(dumper::collect_process_information): Augment debugging output.
Stop debugee processing if it posts double exception.
(usage): Fix typo in option name.
kseitz [Thu, 30 Aug 2001 16:36:13 +0000 (16:36 +0000)]
* README: Update documentation to reflect recent changes.
* browser.exp: Load the insight testsuite support library.
* c_variable.exp: Likewise.
* console.exp: Likewise.
* cpp_variable.exp: Likewise.
* srcwin.exp: Likewise.
kseitz [Thu, 30 Aug 2001 16:34:03 +0000 (16:34 +0000)]
* lib/gdb.exp: Move all insight-related functionality into
separate file.
* lib/insight-support.exp: New file.
hjl [Thu, 30 Aug 2001 16:02:39 +0000 (16:02 +0000)]
2001-08-30 H.J. Lu <hjl@gnu.org>
* Makefile.am (BFD32_BACKENDS): Add elf32-h8300.lo.
(BFD32_BACKENDS_CFILES): Add elf32-h8300.c.
* Makefile.in: Rebuild.
hjl [Thu, 30 Aug 2001 15:24:17 +0000 (15:24 +0000)]
2001-08-30 H.J. Lu <hjl@gnu.org>
* elf32-mips.c (mips_elf_calculate_relocation): Don't create
dynamic relocation for undefined weak symbols when creating
executables. Check h->root.root.type, instead of h->root.type.
cgf [Thu, 30 Aug 2001 13:37:23 +0000 (13:37 +0000)]
* include/winsock2.h: Remove "extra token" after #endif.
trix [Thu, 30 Aug 2001 12:48:35 +0000 (12:48 +0000)]
Fix for xty_ld symbols
nickc [Thu, 30 Aug 2001 12:19:49 +0000 (12:19 +0000)]
omitted in previous delta
corinna [Thu, 30 Aug 2001 08:21:09 +0000 (08:21 +0000)]
* select.cc (select_read): Add setting read_ready flag.
(select_write): Add setting write_ready flag.
earnie [Thu, 30 Aug 2001 04:29:48 +0000 (04:29 +0000)]
* config.guess: Remove the \r from the end of line.
* config.sub: Ditto.
* include/winnt.h: Allow anonymous struct in [U]LARGE_INTEGER
if __cplusplus as well as if _ANONYMOUS_STRUCT.
* config.guess: Add the MSYS system.
* config.sub: Ditto.
* include/winsock.h: Add the __INSIDE_MSYS__ protections.
* incldue/winsock2.h: Ditto.
law [Thu, 30 Aug 2001 02:15:57 +0000 (02:15 +0000)]
* elf32-h8300.c (h8_elf_howto_table): Add new PC relative
relocations.
(h8_reloc_map): Similarly.
(elf32_h8_final_link_relocate): Remove incorrect overflow tests.
Add support for PC relative relocations.
cagney [Thu, 30 Aug 2001 01:45:30 +0000 (01:45 +0000)]
Cleanups. Now passes!
law [Thu, 30 Aug 2001 00:08:12 +0000 (00:08 +0000)]
* elf32-h8300.c: Put all prototypes together.
(elf32_h8_info_to_howto): Parameter elf_reloc is used.
(elf32_h8_final_link_relocate): New function for linker.
(elf32_h8_relocate_section): Similarly.
(elf_backend_relocate_section): Define.
gdbadmin [Thu, 30 Aug 2001 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
fche [Wed, 29 Aug 2001 20:36:05 +0000 (20:36 +0000)]
* gdb/sid connect fix, etc.
2001-08-29 Frank Ch. Eigler <fche@redhat.com>
* config/sid.exp (sid_start): Never set sid verbosity; disable
expect_background {} that consumed its stdout; tolerate </dev/null.
Attempt to set endianness override in "sid" protocol mode. Cleanup.
jjohnstn [Wed, 29 Aug 2001 20:09:31 +0000 (20:09 +0000)]
2001-08-29 Joel Sherrill <joel@OARcorp.com>
* libc/include/sys/unistd.h: Prototype chroot() for RTEMS.
2001-08-29 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* libc/machine/i386/f_atan2.S, libc/machine/i386/f_atan2f.S,
libc/machine/i386/f_exp.c, libc/machine/i386/f_expf.c,
libc/machine/i386/f_frexp.S, libc/machine/i386/f_frexpf.S,
libc/machine/i386/f_ldexp.S, libc/machine/i386/f_ldexpf.S,
libc/machine/i386/f_log.S, libc/machine/i386/f_log10.S,
libc/machine/i386/f_log10f.S, libc/machine/i386/f_logf.S,
libc/machine/i386/f_pow.c, libc/machine/i386/f_powf.c,
libc/machine/i386/f_tan.S, libc/machine/i386/f_tanf.S:
Add conditional compilation to avoid HW FPU instructions
when compiled for soft-float.
dj [Wed, 29 Aug 2001 20:03:08 +0000 (20:03 +0000)]
merge from gcc
jjohnstn [Wed, 29 Aug 2001 19:55:20 +0000 (19:55 +0000)]
2001-08-29 Jeff Johnston <jjohnstn@redhat.com>
* Makefile.am: Add check for ln failing when creating libg.a
so that cp gets used as a backup.
* Makefile.in: Regenerated.
jjohnstn [Wed, 29 Aug 2001 19:47:42 +0000 (19:47 +0000)]
2001-08-29 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/sys/reent.h: Add include of <sys/_types.h>.
No longer include time.h. Add struct __tm to use for
_localtime_buf in the reentrant structure. Add a
_NULL definition to use in initializing the reentrant struct.
* libc/include/sys/config.h: For CYGWIN32 and RTEMS, change
the _READ_WRITE_RETURN_TYPE to _ssize_t which is found in
<sys/_types.h>.
* libc/include/sys/unistd.h: Include <sys/_types.h>.
* libc/time/lcltime.c (localtime): Cast the reentrant struct
_localtime_buf to be struct tm *.
kevinb [Wed, 29 Aug 2001 19:34:08 +0000 (19:34 +0000)]
Applied Daniel Jacobowitz's patch for reattaching in the presence of
remote SVR4 shared libraries.
law [Wed, 29 Aug 2001 18:56:49 +0000 (18:56 +0000)]
* tc-h8300.c: If OBJ_ELF, include elf/h8.h, and define
assorted coff relocations to the corresponding elf relocations.
* tc-h8300.h (TARGET_ARCH, TARGET_FORMAT): Define appropriately.
More of Joern's patches.
law [Wed, 29 Aug 2001 18:50:56 +0000 (18:50 +0000)]
* config/tc-h8300.c (h8300hmode): Record the machine type
if BFD_ASSEMBLER is defined.
(h8300smode, md_begin): Similarly.
pb [Wed, 29 Aug 2001 18:47:28 +0000 (18:47 +0000)]
2001-08-29 Joel Sherrill <joel@OARcorp.com>
* configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
default from coff to elf.
pb [Wed, 29 Aug 2001 18:46:31 +0000 (18:46 +0000)]
2001-08-29 Joel Sherrill <joel@OARcorp.com>
* configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
default from coff to elf.
pb [Wed, 29 Aug 2001 18:45:26 +0000 (18:45 +0000)]
2001-08-29 Joel Sherrill <joel@OARcorp.com>
* configure.in (i[3456]86-*-rtems*, m68*-*-rtems*): Change
default from coff to elf.
* configure: Regenerate.
law [Wed, 29 Aug 2001 18:45:18 +0000 (18:45 +0000)]
Fix brown-paper-bag thinko in last change.
law [Wed, 29 Aug 2001 18:11:19 +0000 (18:11 +0000)]
* lib/gas-defs.exp: (regexp_diff) At verbosity 3, also show
where mismatch occurs due to regexp mismatch.
Another patch from Joern.
law [Wed, 29 Aug 2001 17:44:38 +0000 (17:44 +0000)]
* configure.in: Add case for h8300-*-elf.
* configure: Regenerate.
Checking in parts of Joern's patch.
law [Wed, 29 Aug 2001 17:35:26 +0000 (17:35 +0000)]
* emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
ARCH specification.
* emulparams/h8300self.sh: Similarly.
law [Wed, 29 Aug 2001 17:24:40 +0000 (17:24 +0000)]
Fix typos in ChangeLog dates.
law [Wed, 29 Aug 2001 17:23:39 +0000 (17:23 +0000)]
* h8.h (EF_H8_MACH): New mask for encoded machine type.
(E_H8_MACH_H8300, E_H8_MACH_H8300H, E_H8_MACH_H8300S): New
machine types.
law [Wed, 29 Aug 2001 17:23:15 +0000 (17:23 +0000)]
* cpu-h8300.c (h8300_scan, compatible): Prototype.
(h8300_scan): Handle architecture:machine encodings typically
found in linker scripts.
* elf.c (prep_headers): Do not try to do H8 machine recognition
here.
* elf32-h8300.c: Add some missing prototypes.
(elf32_h8_mach, elf32_h8_final_write_processing): New functions.
(elf32_h8_object_p): Similarly.
nickc [Wed, 29 Aug 2001 17:18:52 +0000 (17:18 +0000)]
Add missing changelog entry
kseitz [Wed, 29 Aug 2001 15:26:38 +0000 (15:26 +0000)]
Add newline at end of file.
petert [Wed, 29 Aug 2001 15:19:38 +0000 (15:19 +0000)]
* MAINTAINERS: Include ARC Maintainer.
earnie [Wed, 29 Aug 2001 13:45:45 +0000 (13:45 +0000)]
* include\winnt.h: Allow anonymous (Xxx.LowPart) or
non-anonymous (Xxx.u.LowPart) access to HighPart and
LowPart of a LARGE_INTEGER or ULARGE_INTEGER.
* include/wingdi.h (HANGUL_CHARSET): Add define.
earnie [Wed, 29 Aug 2001 13:43:59 +0000 (13:43 +0000)]
* include/stdarg.h (va_list): Typedef as __builtin_va_list if
__GNUC__ >= 3.
* include/varargs.h (va_list): Ditto.
* include/stdio.h (va_list): Ditto.
amylaar [Wed, 29 Aug 2001 13:26:31 +0000 (13:26 +0000)]
* configure.host (h8300-*-elf*, h8500-*-elf*): New cases.
* libc/sys/h8300hms/crt1.c (__main): Don't reference __ctors /
__ctors_end.
* libc/sys/h8300hms/syscalls.c: Include errno.h.
(_unlink): New stub function.
amylaar [Wed, 29 Aug 2001 12:51:26 +0000 (12:51 +0000)]
* Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
eh8300self.o .
(eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
* configure.tgt (h8300-*-elf*): New case.
* emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
* emulparams/h8300self.sh: New file.
* Makefile.in: Regenerated.
amylaar [Wed, 29 Aug 2001 12:24:30 +0000 (12:24 +0000)]
Typo fix.
amylaar [Wed, 29 Aug 2001 12:22:25 +0000 (12:22 +0000)]
* doc/internals.texi (MD_PCREL_FROM_SECTION): Change
docuemntation to reflect reality.
bje [Wed, 29 Aug 2001 10:55:43 +0000 (10:55 +0000)]
2001-08-29 Ben Elliston <bje@redhat.com>
* stabs.c (stab_demangle_template): Initialise s4.
cgf [Wed, 29 Aug 2001 04:43:19 +0000 (04:43 +0000)]
* path.cc (path_conv::check): Avoid splitting off leading '/' in path component
when building a symlink.
amodra [Wed, 29 Aug 2001 03:39:47 +0000 (03:39 +0000)]
* targmatch.sed: Delete case statements.
* config.bfd <powerpc-*-aix* entry>: Select 64 bit xcoff for
aix4.3 and above.
amylaar [Wed, 29 Aug 2001 01:33:51 +0000 (01:33 +0000)]
* Makefile.am (elf32-h8300.lo): New target.
* config.bfd (h8300*-*-elf): New case.
* configure.in (bfd_elf32_h8300_vec): New case.
* elf.c (prep_headers): Add case for bfd_arch_h8300.
* reloc.c (BFD_RELOC_H8_DIR16A8): New relocation.
(BFD_RELOC_H8_DIR16R8, BFD_RELOC_H8_DIR24A8): Likewise.
(BFD_RELOC_H8_DIR24R8, BFD_RELOC_H8_DIR32A16): Likewise.
* targets.c (bfd_target bfd_elf32_h8300_vec): New extern declaration.
* elf32-h8300.c: New file.
* Makefile.in, bfd-in2.h, libbfd.h, configure: Regenerated.
cagney [Wed, 29 Aug 2001 00:51:14 +0000 (00:51 +0000)]
Fix comments on `struct frame_info'.
kseitz [Wed, 29 Aug 2001 00:23:30 +0000 (00:23 +0000)]
* library/bpwin.itb (bp_select): Use standard preferences
for selection fg & bg, not tixOption database.
* process.itb, tracedlg.tcl: Remove all traces of those
three evil little letters, "t", "i", "x".
kseitz [Wed, 29 Aug 2001 00:14:07 +0000 (00:14 +0000)]
* library/tracedlg.tcl (build_win): Use libgui's
Labelledframe instead of tixLabelFrame.
Use iwidgets::scrolledlistbox instead of tixScrolledListbox.
(edit): Check if there is a selection in the listbox
before proceeding.
Escape method callbacks before passing to ActionDlg.
* library/actiondlg.tcl (constructor): Use "gdb_reginfo"
gdbadmin [Wed, 29 Aug 2001 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***
kseitz [Tue, 28 Aug 2001 23:37:59 +0000 (23:37 +0000)]
* library/tdump.tcl (class TdumpWin): Inherit from GDBWin
and ManagedWin.
(constructor): Remove old itcl2 handling code and name the
window.
(build_win): Use iwidgets::scrolledtext instead of
tixScrolledText.
(twin): Remove unused variable. Use itk_component(stext)
instead.
(maxwidth): Remove unused variable.
(destructor): Remove unused method.
(config): Ditto.
kseitz [Tue, 28 Aug 2001 23:04:58 +0000 (23:04 +0000)]
* library/srcpref.itb (build_win): Use iwidgets::spinint
instead of tixControl.
jimb [Tue, 28 Aug 2001 22:49:55 +0000 (22:49 +0000)]
* gdbint.texinfo: Bring the HTML `top' menu into sync with the
info `top' menu.
corinna [Tue, 28 Aug 2001 22:48:23 +0000 (22:48 +0000)]
* resource.cc (getrlimit): Return actual values on RLIMIT_STACK.
kseitz [Tue, 28 Aug 2001 22:36:39 +0000 (22:36 +0000)]
* library/process.ith (top): Remove unused protected variable.
Use GDBWin::_top instead.
(lb): Remove unused variable.
(change_context): Remove parameter. It's not needed.
* library/process.itb (constructor): Don't set the variable
"top". It isn't needed. GDBWin has this information.
(buildwin): Get rid of tixScrolledListbox. Use
iwidgets::scrolledlistbox instead.
Loose the balloon help. It annoys more than helps.
(update): Use new scrolledlistbox component.
Split the list of threads BEFORE doing llength. Someone
shoot me if this has to be fixed one more time...
(change_context): Update definition and usage.
(cursor): Use GDBWin::_top instead of our own private copy.
amylaar [Tue, 28 Aug 2001 22:33:27 +0000 (22:33 +0000)]
* h8.h: New file.
kseitz [Tue, 28 Aug 2001 22:22:56 +0000 (22:22 +0000)]
* generic/gdbtk-cmds.c (gdb_disassemble_driver): We should be
looking for "thread", not "threads" to determine if we have
a multi-threaded child process.
kseitz [Tue, 28 Aug 2001 21:20:19 +0000 (21:20 +0000)]
* library/bpwin.itb (build_win): Get rid of tixScrolledWindow
and use iwidgets::scrolledframe until something better comes
along.
cgf [Tue, 28 Aug 2001 20:39:22 +0000 (20:39 +0000)]
oops
cgf [Tue, 28 Aug 2001 20:38:06 +0000 (20:38 +0000)]
* dir.cc (rmdir): Report ENOENT when file doesn't exist rather than ENOTDIR.
cgf [Tue, 28 Aug 2001 18:48:38 +0000 (18:48 +0000)]
* mount.cc (main): Issue correct warning for 'not enough arguments'.
aj [Tue, 28 Aug 2001 16:27:55 +0000 (16:27 +0000)]
* m68hc11-dis.c: Add missing prototypes.
(forgotten in last checkin)
nickc [Tue, 28 Aug 2001 09:35:15 +0000 (09:35 +0000)]
Add missing prototypes
mrg [Tue, 28 Aug 2001 05:47:28 +0000 (05:47 +0000)]
* ppc-opc.c (icbt): Order correctly.
gdbadmin [Tue, 28 Aug 2001 00:00:09 +0000 (00:00 +0000)]
*** empty log message ***
kettenis [Mon, 27 Aug 2001 22:39:55 +0000 (22:39 +0000)]
* event-top.c (async_stop_sig) [HAVE_SIGPROCMASK]: Some
gratuitious whitespace changes.
[!HAVE_SIGPROCMASK]: Call sigsetmask if HAVE_SIGSETMASK is defined.
* top.c: Remove redundant logic to define HAVE_SIGSETMASK.
(sigsetmask) Don't define macro.
(stop_sig) [HAVE_SIGPROCMASK]: Add bit of code snatched from
async_stop_sig from event-top.c.
[!HAVE_SIGPROCMASK]: Call sigsetmask if HAVE_SIGSETMASK is
defined.
* configure.in (AC_CHECK_FUNCS): Put functions in alphabetical
order. Add sigsetmask.
(AC_FUNC_VFORK, AC_FUNC_ALLOCA): Reorder such that they're in
alphabetical order.
* config/xm-aix4.h, config/alpha/xm-alphalinux.h,
config/i386/xm-cygwin.h, config/rs6000/xm-rs6000.h
(HAVE_SIGSETMASK): Remove.
* aclocal.m4, config.in, configure
dj [Mon, 27 Aug 2001 20:05:03 +0000 (20:05 +0000)]
merge from gcc
dj [Mon, 27 Aug 2001 20:04:44 +0000 (20:04 +0000)]
merge from gcc
jjohnstn [Mon, 27 Aug 2001 19:01:09 +0000 (19:01 +0000)]
2001-08-27 Jeff Johnston <jjohnstn@redhat.com>
* libltdl/ltdl.c (lt_dlinit): Initialize loaders to 0.
(lt_dlexit): Reset loaders to 0 after freeing all loaders.
ths [Mon, 27 Aug 2001 18:48:27 +0000 (18:48 +0000)]
* tc_mips.c (load_address): Reflect change to MAX_GPREL_OFFSET.
(macro): Reflect change to MAX_GPREL_OFFSET.
drow [Mon, 27 Aug 2001 18:04:37 +0000 (18:04 +0000)]
* elf32-i386.c: Add missing prototypes.
* elf32-ppc.c: Likewise.
* elf32-sh-lin.c: Likewise.
* elfarm-nabi.c: Likewise.
drow [Mon, 27 Aug 2001 17:36:31 +0000 (17:36 +0000)]
* elf32-i386.c (elf_i386_grok_prstatus): New function.
(elf_i386_grok_psinfo): New function.
(elf_backend_grok_prstatus): Define.
(elf_backend_grok_psinfo): Likewise.
* elf32-ppc.c (ppc_elf_grok_prstatus): New function.
(ppc_elf_grok_psinfo): New function.
(elf_backend_grok_prstatus): Define.
(elf_backend_grok_psinfo): Likewise.
* elf32-sh-lin.c (elf32_shlin_grok_prstatus): New function.
(elf32_shlin_grok_psinfo): New function.
(elf_backend_grok_prstatus): Define.
(elf_backend_grok_psinfo): Likewise.
* elfarm-nabi.c (elf32_arm_nabi_grok_prstatus): New function.
(elf32_arm_nabi_grok_psinfo): New function.
(elf_backend_grok_prstatus): Define.
(elf_backend_grok_psinfo): Likewise.
cgf [Mon, 27 Aug 2001 15:59:25 +0000 (15:59 +0000)]
* select.cc (cygwin_select): Ensure that arguments are zeroed on timeout.
(select_stuff::wait): Ditto.
hjl [Mon, 27 Aug 2001 15:40:38 +0000 (15:40 +0000)]
2001-08-27 H.J. Lu <hjl@gnu.org>
* elf32-mips.c (mips_elf_create_dynamic_relocation): Add more
sanity check.
(mips_elf_calculate_relocation): Create dynamic relocation for
symbols with weak definition or the ELF_LINK_HASH_DEF_REGULAR
bit is not set.
hjl [Mon, 27 Aug 2001 14:47:33 +0000 (14:47 +0000)]
2001-08-27 H.J. Lu <hjl@gnu.org>
* elf32-mips.c (_bfd_mips_elf_hide_symbol): Add prototype.
(_bfd_mips_elf_copy_indirect_symbol): Likewise.
(_bfd_elf32_mips_grok_prstatus): Likewise.
(_bfd_elf32_mips_grok_psinfo): Likewise.
(_bfd_mips_elf_hide_symbol): Make it static and cast to
`struct mips_elf_link_hash_entry *'.
(_bfd_mips_elf_copy_indirect_symbol): Make it static.
amodra [Mon, 27 Aug 2001 10:51:17 +0000 (10:51 +0000)]
* gas/macros/macros.exp: xfail powerpc-*-aix.
* gas/ppc/astest64.s: New.
* gas/ppc/astest64.d: New.
* gas/ppc/astest2_64.s: New.
* gas/ppc/astest2_64.d: New.
* gas/ppc/test1elf.asm: New.
* gas/ppc/test1xcoff.asm: New.
* gas/ppc/generate.sh: New. Generate new files below from above .asm
* gas/ppc/test1elf32.s: New.
* gas/ppc/test1elf32.d: New.
* gas/ppc/test1elf64.s: New.
* gas/ppc/test1elf64.d: New.
* gas/ppc/test1xcoff32.s: New.
* gas/ppc/test1xcoff32.d: New.
* gas/ppc/ppc.exp: Run new tests.
* gas/ppc/simpshft.s: Tweak align now that we get nops.
amodra [Mon, 27 Aug 2001 10:49:54 +0000 (10:49 +0000)]
* ld-checks/checks.exp: .lcomm is incompatible with ppc coff.
* ld-scripts/cross1.t: Add .toc section.
* ld-scripts/cross2.t: Likewise.
* ld-scripts/phdrs.exp: powerpc64 is 64 bit.
* ld-srec/srec.exp: xfail powerpc64
amodra [Mon, 27 Aug 2001 10:45:54 +0000 (10:45 +0000)]
* Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
(eelf64ppc.c, eelf64lppc.c): Add make targets.
Run "make dep-am"
* Makefile.in: Regenerate.
* configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
entries to correct alphabetical position.
* emulparams/elf64ppc.sh: New.
* emulparams/elf64lppc.sh: New.
amodra [Mon, 27 Aug 2001 10:42:09 +0000 (10:42 +0000)]
* configure.in: Recognise powerpc*le*, not just powerpcle*.
* configure: Regenerate.
* config/tc-ppc.c (PPC_LO, PPC_HI, PPC_HA, PPC_HIGHER,
PPC_HIGHERA, PPC_HIGHEST, PPC_HIGHESTA, SEX16): New macros.
(md_assemble): Use them.
(ppc_machine): Support stub for ELF64 as well as XCOFF.
(md_pseudo_table): Add "llong", "quad".
(md_parse_option): Match default_cpu of powerpc*.
(ppc_arch): Likewise.
(ppc_subseg_align): Only for OBJ_XCOFF.
(ppc_target_format): Return elf64-powerpc strings for 64 bit ELF.
(md_begin): Select PPC_OPCODE_64 for 64 bit.
(ppc_insert_operand): Don't bother testing 'file' before calling
as_bad_where. Use as_bad_where for operand->insert errors.
(mapping): Add ELF64 relocation modifiers.
(ppc_elf_suffix): Replace symbol on BFD_RELOC_PPC64_TOC reloc
expressions with abs_symbol.
(ppc_elf_cons): Correct offset for little endian targets.
(ppc_elf_frob_symbol): New.
(md_assemble): Add support for 64 bit ELF relocs.
(ppc_tc): Ensure 8 byte alignment when 64 bit.
(ppc_is_toc_sym): Only define for OBJ_XCOFF and OBJ_ELF. Match
".toc" section for 64 bit ELF.
(ppc_fix_adjustable): New. Macro body moved from tc-ppc.h.
(md_apply_fix3): Silence warning with ATTRIBUTE_UNUSED. Only do
the ppc_is_toc_sym check for OBJ_XCOFF and OBJ_ELF. For 64 bit,
use BFD_RELOC_PPC64_TOC16_DS instead of BFD_RELOC_PPC_TOC16.
Expand on comments, error message. Add support for 64 bit relocs,
and use PPC_HI etc. macros.
* config/tc-ppc.h (MAX_MEM_FOR_RS_ALIGN_CODE): Define.
(HANDLE_ALIGN): Define to generate nops in code sections rather
than zeros.
(TC_FORCE_RELOCATION): Force for BFD_RELOC_PPC64_TOC.
(ELF_TC_SPECIAL_SECTIONS): Add 64 bit ELF sections.
(tc_fix_adjustable): Move body of macro to tc-ppc.c.
(ppc_fix_adjustable): Declare.
(tc_frob_symbol): Define.
(ppc_elf_frob_symbol): Declare.
amodra [Mon, 27 Aug 2001 10:38:40 +0000 (10:38 +0000)]
* binutils-all/readelf.s-64: Adjust offsets for powerpc64. Don't
use constructs like [45][08] when all combinations are not valid.
Instead use (48|50) to explicitly state which values are correct.
nickc [Mon, 27 Aug 2001 10:35:20 +0000 (10:35 +0000)]
Add missing prototypes
amodra [Mon, 27 Aug 2001 10:33:19 +0000 (10:33 +0000)]
* readelf.c (dump_relocations): Recognise EM_PPC64.
amodra [Mon, 27 Aug 2001 10:27:48 +0000 (10:27 +0000)]
* ppc-opc.c (DS): Add PPC_OPERAND_DS flag.
(LS): Define.
(insert_ds): Complain if not a multiple of 4.
(XSYNC): Define.
(XSYNC_MASK): Define.
(powerpc_opcodes): Add "slbmte", "lwsync", "ptesync", "slbmfev",
"slbmfee". Modify "sync" to use XSYNC_MASK and LS.
amodra [Mon, 27 Aug 2001 10:26:57 +0000 (10:26 +0000)]
* ppc.h (PPC_OPERAND_DS): Define.
amodra [Mon, 27 Aug 2001 10:26:34 +0000 (10:26 +0000)]
* ppc.h: Add relocs from the 64-bit PowerPC ELF ABI revision 1.2.
amodra [Mon, 27 Aug 2001 10:22:03 +0000 (10:22 +0000)]
* config.bfd: Add powerpc64 target. Add powerpc64 vectors to
targ64_selvecs for 32 bit powerpc targets.
* Makefile.am (BFD64_BACKENDS): Add elf64-ppc.lo.
(BFD64_BACKENDS_CFILES): Add elf64-ppc.c.
Run "make dep-am".
* Makefile.in: Regenerate.
* configure.in: Add elf64_powerpc vecs.
* configure: Regenerate.
* cpu-powerpc.c: Default to bfd_mach_ppc_620 entry for 64 bit.
* elf.c (prep_headers): EM_PPC64 for 64 bit ppc elf target.
* targets.c: Add bfd_elf64_powerpc_vec and bfd_elf64_powerpcle_vec.
* elf64-ppc.c: New file.
* reloc.c: Add powerpc64 relocs.
* libbfd.h: Regenerate.
* bfd-in2.h: Regenerate.
schwab [Mon, 27 Aug 2001 09:16:09 +0000 (09:16 +0000)]
* elf32-m68k.c (elf32_m68k_check_relocs): Set DF_TEXTREL if the
reloc is against read-only section.
(elf32_m68k_size_dynamic_sections): Use DF_TEXTREL flag instead of
looking up section names for DT_TEXTREL.
(elf32_m68k_reloc_type_class): New function.
(elf_backend_reloc_type_class): Define.
aj [Mon, 27 Aug 2001 09:08:38 +0000 (09:08 +0000)]
* xcoff.h (struct __rtinit): Make proper prototype for rtl.
aj [Mon, 27 Aug 2001 08:59:06 +0000 (08:59 +0000)]
* elf64-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
reloc is against read-only section.
(elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
looking up section names for DT_TEXTREL.
(elf_s390_reloc_type_class): New.
(elf_backend_reloc_type_class): Define.
* elf32-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
reloc is against read-only section.
(elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
looking up section names for DT_TEXTREL.
(elf_s390_reloc_type_class): New.
(elf_backend_reloc_type_class): Define.
* elf32-ppc.c (ppc_elf_check_relocs): Set DF_TEXTREL if the reloc
is against read-only section.
(ppc_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
looking up section names for DT_TEXTREL.
(ppc_elf_reloc_type_class): New.
(elf_backend_reloc_type_class): Define.
nickc [Mon, 27 Aug 2001 08:52:50 +0000 (08:52 +0000)]
Declare BSIZE as static
cagney [Mon, 27 Aug 2001 02:22:14 +0000 (02:22 +0000)]
From 2001-06-29 Andrew Cagney <
ac131313@redhat.com>:
* config/powerpc/nbsd.mh (XM_FILE): Delete.
gdbadmin [Mon, 27 Aug 2001 00:00:05 +0000 (00:00 +0000)]
*** empty log message ***
cagney [Sun, 26 Aug 2001 18:46:10 +0000 (18:46 +0000)]
* doublest.h (HOST_FLOAT_FORMAT): Delete macro.
(HOST_DOUBLE_FORMAT): Delete macro.
aj [Sun, 26 Aug 2001 18:03:19 +0000 (18:03 +0000)]
* elf32-cris.c (cris_elf_check_relocs): Set DF_TEXTREL if the
reloc is against read-only section.
(elf_cris_size_dynamic_sections): Use DF_TEXTREL flag instead of
looking up section names for DT_TEXTREL.
(elf_cris_reloc_type_class): New.
(elf_backend_reloc_type_class): Define.
* elf32-sh.c (sh_elf_check_relocs): Set DF_TEXTREL if the reloc is
against read-only section.
(elf_backend_reloc_type_class): Define.
(sh_elf_reloc_type_class): New.
(sh_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
looking up section names for DT_TEXTREL.
* elf32-arm.h (elf32_arm_check_relocs): Set DF_TEXTREL if the
reloc is against read-only section.
(elf32_arm_size_dynamic_sections): Use DF_TEXTREL flag instead of
looking up section names for DT_TEXTREL.
(elf32_arm_reloc_type_class): New.
aj [Sun, 26 Aug 2001 14:04:42 +0000 (14:04 +0000)]
* h8500-opc.h: Add default initializers to h8500_table to shut up
GCC warnings.
ths [Sun, 26 Aug 2001 13:04:34 +0000 (13:04 +0000)]
* readelf.c (get_machine_flags): Add detection of EF_MIPS_32BITMODE.
aj [Sun, 26 Aug 2001 11:47:38 +0000 (11:47 +0000)]
For include/opcode:
* d30v.h: Fix declaration of reg_name_cnt.
* d10v.h: Fix declaration of d10v_reg_name_cnt.
* arc.h: Add prototypes from opcodes/arc-opc.c.
For opcodes:
* tic54x-dis.c: Add unused attributes where needed.
* z8k-dis.c (output_instr): Add unused attribute.
* h8300-dis.c: Add missing prototypes.
(bfd_h8_disassemble): Make static.
* cris-dis.c: Add missing prototype.
* h8500-dis.c: Likewise.
* m68hc11-dis.c: Likewise.
* pj-dis.c: Likewise.
* tic54x-dis.c: Likewise.
* v850-dis.c: Likewise.
* vax-dis.c: Likewise.
* w65-dis.c: Likewise.
* z8k-dis.c: Likewise.
* d10v-dis.c: Add missing prototype.
(dis_long): Remove unused variable.
(dis_2_short): Likewise.
* sh-dis.c: Add missing prototypes.
* v850-opc.c: Likewise.
Add unused attributes where needed.
* ns32k-dis.c: Add missing prototypes.
(bit_extract_simple): Remove unused variable.
aj [Sun, 26 Aug 2001 11:46:03 +0000 (11:46 +0000)]
* oasys.c: Add missing prototypes.
* elf64-alpha.c (elf64_alpha_size_dynamic_sections): Add unused
attribute for parameter.
* elf.c (_bfd_elf_reloc_type_class): Likewise.
* versados.c (get_4): Make static.
(get_10): Make static.
Add missing prototypes.
(process_esd): Fix call to versados_new_symbol.
aj [Sun, 26 Aug 2001 11:44:51 +0000 (11:44 +0000)]
* config/tc-s390.c: Add missing prototypes
(md_gather_operands): Make static.
ths [Sun, 26 Aug 2001 10:42:12 +0000 (10:42 +0000)]
* tc_mips.h (MAX_GPREL_OFFSET): Change it to the maximum allowed
value, not the word beyond maximum.
* tc_mips.c (macro_build_lui): Code cleanup.
(macro): Reflect change to MAX_GPREL_OFFSET.
(mips_ip): Check explicitly against S_EX_NONE.
(my_get_SmallExpression): parse for %gp_rel, not %gprel.
(md_apply_fix): Code cleanup.