aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
1996-05-29 64-bit MIPS ELF ABI objdump support:Ian Lance Taylor11-96/+1817
* elf64-mips.c: New file. * Makefile.in: Rebuild dependencies. (BFD64_BACKENDS): Add elf64-mips.o. (BFD64_BACKENDS_CFILES): Add elf64-mips.c. * config.bfd (mips*el-*-elf*) Add bfd_elf64_bigmips_vec and bfd_elf64_littlemips_vec to targ_selvecs. (mips*-*-elf*): Likewise. * confingure.in: Add bfd_elf64_bigmips_vec and bfd_elf64_littlemips_vec to vector switch. * configure: Rebuild. * elf32-mips.c (_bfd_mips_elf_section_from_shdr): New function, broken out of mips_elf_section_from_shdr. (mips_elf32_section_from_shdr): Rename from mips_elf_section_from_shdr. Call new function. (elf_backend_section_from_shdr): Update name of renamed function. * elf-bfd.h (struct elf_size_info): Change second parameter of write_out_phdrs to be const. Likewise for second parameter of swap_symbol_out. (struct bfd_elf_section_data): Add rel_hdr2 field. (bfd_elf32_swap_symbol_in): Change second parameter to be const. (bfd_elf32_swap_symbol_out): Likewise. (bfd_elf32_swap_reloc_in): Likewise. (bfd_elf32_swap_reloc_out): Likewise. (bfd_elf32_swap_reloca_in): Likewise. (bfd_elf32_swap_reloca_out): Likewise. (bfd_elf32_swap_phdr_in): Likewise. (bfd_elf32_swap_phdr_out): Likewise. (bfd_elf32_swap_dyn_in): Likewise. (bfd_elf32_swap_dyn_out): Likewise. (bfd_elf32_slurp_symbol_table): Declare. (bfd_elf32_write_shdrs_and_ehdr): Declare. (bfd_elf32_write_out_phdrs): Declare. (bfd_elf64_swap_symbol_in): Change second parameter to be const. (bfd_elf64_swap_symbol_out): Likewise. (bfd_elf64_swap_reloc_in): Likewise. (bfd_elf64_swap_reloc_out): Likewise. (bfd_elf64_swap_reloca_in): Likewise. (bfd_elf64_swap_reloca_out): Likewise. (bfd_elf64_swap_phdr_in): Likewise. (bfd_elf64_swap_phdr_out): Likewise. (bfd_elf64_swap_dyn_in): Likewise. (bfd_elf64_swap_dyn_out): Likewise. (bfd_elf64_slurp_symbol_table): Declare. (bfd_elf64_write_shdrs_and_ehdr): Declare. (bfd_elf64_write_out_phdrs): Declare. (_bfd_mips_elf_section_from_shdr): Declare. * elf.c (bfd_section_from_shdr): Remove assertion requiring SHT_REL/SHT_RELA to match use_rela_p. If there is already a reloc section for the section, add the new one to rel_hdr2. Increment reloc_count rather than setting it. * elfcode.h (elf_slurp_symbol_table): Define name as macro. Remove static declaration. (elf_write_shdrs_and_ehdr): Define name as macro. (elf_write_out_phdrs): Likewise. (elf_swap_ehdr_in, elf_swap_ehdr_out): Declare. (elf_swap_shdr_in, elf_swap_shdr_out): Declare. (elf_swap_symbol_in): Change second parameter to be const. (elf_swap_symbol_out): Likewise. (elf_swap_ehdr_in, elf_swap_ehdr_out): Likewise. (elf_swap_shdr_in, elf_swap_shdr_out): Likewise. (elf_swap_phdr_in, elf_swap_phdr_out): Likewise. (elf_swap_reloc_in, elf_swap_reloc_out): Likewise. (elf_swap_reloca_in, elf_swap_reloca_out): Likewise. (elf_write_out_phdrs): Rename from write_out_phdrs. Change second parameter to be const. Make non-static. (elf_write_shdrs_and_ehdr): Rename from write_shdrs_and_ehdr. Make non-static. (elf_slurp_symbol_table): Make non-static. (NAME(_bfd_elf,size_info)): Update names of renamed functions. * elfxx-target.h (elf_info_to_howto): Define if not defined. (elf_backend_size_info): Likewise. (elfNN_bed): Use elf_backend_size_info. * targets.c (bfd_elf64_bigmips_vec): Declare. (bfd_elf64_littlemips_vec): Declare. (bfd_target_vector): Add bfd_elf64_bigmips_vec and bfd_elf64_littlemips_vec if BFD64 is defined.
1996-05-29 * scripttempl/elfmips.sc: Quote test -z argument.Ian Lance Taylor2-2/+4
1996-05-29 * mips.h (Elf64_Mips_External_Rel): Define.Ian Lance Taylor2-4/+180
(Elf64_Mips_Internal_Rel): Define. (Elf64_Mips_External_Rela, Elf64_Mips_Internal_Rela): Define. (RSS_*): Define.
1996-05-29 * ld.texinfo: Clarify the CONSTRUCTORS command.Ian Lance Taylor2-12/+58
1996-05-28Removed EINVAL reference in remote-mips.c, and put a hardcoded 22 in itsGeoffrey Noer2-1/+8
place which reflects what the boards return.
1996-05-28 * configure: Regenerated.Tom Tromey3-161/+165
* aclocal.m4 (CY_AC_PATH_TCLH): Don't use AC_TRY_RUN. (CY_AC_PATH_TKH): Don't use AC_TRY_RUN.
1996-05-28 * coff-sh.c (sh_relax_delete_bytes): Insert nop instructions, notIan Lance Taylor2-11/+1170
zeroes, in alignment holes.
1996-05-28 * mpw-README: Document GCCIncludes.Stan Shebs1-0/+4
1996-05-28 * config/tc-z8k.c (md_apply_fix): Handle fx_r_type of 0, asIan Lance Taylor1-0/+3
created by emit_expr.
1996-05-28 * symbols.c (symbol_create): If bfd_make_empty_symbol fails, callIan Lance Taylor2-22/+61
as_perror rather than assert.
1996-05-28 * configure: Rebuild with autoconf 2.10.Ian Lance Taylor2-33/+49
1996-05-28 * aoutx.h (NAME(aout,find_nearest_line)): Make room for theIan Lance Taylor2-1/+22
potential leading underscore in the allocated buffer.
1996-05-26 * configure.in (alpha-*-linux*): Set enable_shared to yes.Fred Fish2-1/+10
1996-05-26 * sysdep-linux.h: New file.Fred Fish3-0/+34
* display.c: Add include of "sysdep.h" to get HAVE_VARARGS_H. * configure.in: Change pattern i[345]86-*-linux* into *-*-linux* to support non-x86 based Linux platforms.
1996-05-26Update with new/changed files.Fred Fish1-1/+6
1996-05-26Forgot to include in last checking.Fred Fish4-0/+190
1996-05-26 Changes from: David Mosberger-Tang <davidm@azstarnet.com>Fred Fish12-62/+246
* NEWS: Add Alpha Linux as a new native configuration. * mdebugread.c (parse_symbol): When we find a malloc() symbol with return type VOID, assume no debugging info is available for that object file and patch the return value into VOID *. Otherwise, operations requiring an implicit call to malloc() will fail. * infrun.c (wait_for_inferior): The criterion to detect entering a sigtramp handler is now: (a) the current pc is inside a sigtramp handler, (b) the previous pc is not in a sigtramp handler, and (c) the current stack pointer is "inner" than the old one. Condition (c) is new to avoid mistaking a return from a signal handler into sigtramp as a new sigtramp invocation. * dcache.c (struct dcache_block): Declare addr as CORE_ADDR. An int may not be big enough to hold an address. (dcache_hit): Ditto. (dcache_peek_byte): Fix indentation. * configure.in (alpha-*-linux*): Add target. * configure: Rebuild * config/alpha/tm-alpha.h (PROC_DESC_IS_DYN_SIGTRAMP): New macro. (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto. (DYNAMIC_SIGTRAMP_OFFSET): Ditto. (SIGCONTEXT_ADDR): Ditto. (FRAME_PAST_SIGTRAMP_FRAME): Ditto. * config/alpha/alpha-linux.mh: New file. * config/alpha/alpha-linux.mt: Ditto. * config/alpha/nm-linux.h: Ditto. * config/alpha/tm-alphalinux.h: Ditto. * config/alpha/xm-alphalinux.h: Ditto. * config/alpha/xm-alphaosf.h: Renamed from xm-alpha.h. * config/alpha/alpha-osf1.mh (XM_FILE): Change from xm-alpha.h to xm-alphaosf.h. * config/alpha/alpha-osf2.mh: Ditto. * blockframe.c (find_pc_partial_function): Pass PC to SIGTRAMP_START and SIGTRAMP_END macros for the benefit of systems that detect sigtramp code via designated code sequences (as is the case for Linux/Alpha, for example). * config/i386/tm-i386bsd.h: Change SIGTRAMP_START and SIGTRAMP_END to ignore new PC argument. * config/m68k/tm-hp300bsd.h: Ditto. * config/vax/tm-vax.h: Ditto. * alpha-tdep.c (alpha_linux_sigtramp_offset): New function. (alpha_osf_skip_sigtramp_frame): Ditto. (push_sigtramp_desc): Ditto. (alpha_find_saved_regs): Use SIGCONTEXT_ADDR macro to extract sigcontext address from frame. (alpha_saved_pc_after_call): When in sigtramp, use alpha_frame_saved_pc() instead of read-register(). (after_prologue): When inside a dynamically generated sigtramp function, there is no prologue, so return address of first instruction. (alpha_in_prologue): Fix typo in comment. (find_proc_desc): Use macro DYNAMIC_SIGTRAMP_OFFSET to determine whether we're inside a dynamicaly generated sigtramp function. If so, create and push and appropriate procedure descriptor. (alpha_frame_chain): Use macro FRAME_PAST_SIGTRAMP_FRAME to obtain the frame past a sigtramp frame (if the current frame is indeed a sigtramp function). (init_extra_frame_info): Don't read next frame register off of stack-pointer when inside a dynamiccaly generated sigtramp. (alpha_pop_frame): Also unlink and destroy procedure descriptors created for dynamically generated sigtramp functions. * alpha-nat.c: When compiling under Linux, include <asm/reg.h> and <alpha/ptrace.h> instead of <machine/reg.h>
1996-05-25 * config/tc-mips.c (mips_ip): Mark sections created to holdIan Lance Taylor2-32/+54
floating point information as read only.
1996-05-24Add better defaults for AIX3, AIX4Michael Meissner2-3/+22
1996-05-24More changes for GO32 canadian cross buildsMichael Meissner2-0/+3
1996-05-24More changes for GO32 canadian cross buildsMichael Meissner5-46/+402
1996-05-24Do not put small common symbols into .sbss if ld -rMichael Meissner2-1/+8
1996-05-24Allow psim to be built on go32Michael Meissner2-1/+21
1996-05-23 * emultempl/aix.em (gld${EMULATION_NAME}_read_file): InitializeIan Lance Taylor1-0/+5
file, not impfile. PR 9759.
1996-05-23Add .skip as a synonym for .spaceMichael Meissner2-61/+84
1996-05-23Allow bogus .stabd with 4 arguments for PowerPC SolarisMichael Meissner2-17/+77
1996-05-23 * h8300-tdep.c (IS_PUSH): Refine.Jeff Law2-12/+49
(IS_MOVE_FP, IS_MOV_SP_FP): Accept H8/300H varaints. (IS_SUB4_SP, IS_SUBL_SP): New macros. (h8300_skip_prologue): Handle H8/300H prologue code sequences. (examine_prologue): Handle addresses from 0x010000 to 0xffffff when in H8/300H mode. Get the return pointer's address correctly for the H8/300H. Handle H8/300H prolouge code sequences. Avoiding major breakage on the H8/300H, and on the eval board. Jeez, did anyone even try to debug H8/300H code with gdb in the past?!?
1996-05-23 * symfile.c (generic_load): Print the starting addressJeff Law1-0/+5
of the file just loaded. For informational purposes.
1996-05-23 * gdb.base/callfuncs.exp: Remove the compiler info file prior toFred Fish2-11/+49
attempting to regenerate it. Eliminate use of a temporary file and just generate the info file directly. Source it immediately, for consistency of use. * gdb.base/corefile.exp: Ditto * gdb.base/exprs.exp: Ditto. * gdb.base/funcargs.exp: Ditto. * gdb.base/langs.exp: Ditto. * gdb.base/list.exp: Ditto. * gdb.base/mips_pro.exp: Ditto. * gdb.base/nodebug.exp: Ditto. * gdb.base/opaque.exp: Ditto. * gdb.base/ptype.exp: Ditto. * gdb.base/scope.exp: Ditto. * gdb.base/setvar.exp: Ditto. * gdb.base/signals.exp: Ditto. * gdb.base/whatis.exp: Ditto. * gdb.c++/templates.exp: Ditto. * gdb.c++/virtfunc.exp: Ditto. * gdb.c++/virtfunc.exp: Use contents of gcc_compiled to decide whether or not to add -lstdc++ to the compile command line args.
1996-05-23 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Warn aboutIan Lance Taylor1-0/+17
undefined symbols when creating a shared library. PR 9751.
1996-05-23Silence warnings from Solaris PowerPC ccMichael Meissner1-1/+20
1996-05-23 * mpw-make.sed: Edit @THREAD_DB_OBS@ out of makefile.Stan Shebs2-3/+24
1996-05-23 * compile.c (sim_resume): Correctly handle divu.Jeff Law2-23/+67
More bugfixing. HMSE
1996-05-22 * ldlang.c (wild_doit): Don't copy over SEC_LINK_{ONCE,DUPLICATES}David Edelsohn2-191/+212
if final link. * emultempl/pe.em (sfunc): Renamed to sort_by_file_name. (sort_by_section_name, sort_sections_1): New functions. (sort_sections): Only sort by file name sections in .idata. Add "Grouped Sections" support. (gld${EMULATION_NAME}_place_orphan): Rewrite to support Grouped Sections. (gld${EMULATION_NAME}_place_section): Delete. * scripttempl/pe.sc (.text,.data,.rdata): Add *(.foo\$). (.CRT,.rsrc): Rewrite to use Grouped Section support.
1996-05-22 * configure.in: Only built erc32 simulator on Unix hosts as itRob Savoye3-35/+532
uses pseudo ttys. * configure: Regenerated with autoconf 2.8.
1996-05-21 * mpw-eppcmac.c: Update to reflect changes to aix.em.Stan Shebs1-11/+47
1996-05-21 * dsrec.c (load_srec): Add WAITACK parameter, for machinesMark Alexander5-4/+21
like EST visionICE that send back an ACK after each S-record. * monitor.c (monitor_wait_srec_ack): New function. (monitor_load): Pass monitor_wait_srec_ack to load_srec if the monitor's MO_SREC_ACK flag is set. * monitor.h: Define MO_SREC_ACK flag. * remote-est.c (est_cmds): Add MO_SREC_ACK flag. * sh3-rom.c (sh3_load): Accomodate change in load_srec prototype. * srec.h: Add WAITACK parameter to load_srec prototype.
1996-05-20Changes to configure.in notedGeoffrey Noer1-0/+8
1996-05-20Configure and build make for *-*-cygwin32 targetsGeoffrey Noer1-6/+3
1996-05-20 * config/sparc/sparclite.mt: Add the sparc simulator.Rob Savoye2-1/+7
1996-05-20 Sanitize support for the ESA sparc simulator.Rob Savoye2-0/+53
1996-05-20 * func.c(bfd_load): Don't try to print the filename if the pfbd isRob Savoye1-0/+1
NULL. * interf.c(sim_load): Pass the whole string, not just the first byte.
1996-05-20 New sparc simulator from the ESA.Rob Savoye20-0/+4802
1996-05-20 * defs.h (read_command_lines, query_hook): Update prototypes.Fred Fish5-33/+241
(readline_begin_hook, readline_hook, readline_end_hook): Declare. * breakpoint.c (commands_command): Build message in temporary buffer and pass that, as well as tty control flag, to read_command_lines. * top.c (readline_begin_hook, readline_hook, readline_end_hook): Define here. (command_loop): Check for non-NULL instream before looping. (command_line_input): Use readline_hook when appropriate, to get user input from a GUI window. (read_next_line): Also build prompt if getting user input from a GUI. (recurse_read_control_structure): Fix typo in comment. (read_command_lines): Use passed in prompt and tty flag to decide how to build message. Use readline_begin_hook when appropriate, to set up a GUI interaction window. Just return head, whether NULL or not, after using readline_end_hook to complete GUI interaction. (define_command, document_command): Build message in a temporary buffer and pass it to read_command_lines, along with tty flag. * gdbtk.c (gdbtk_readline_begin, gdbtk_readline, gdbtk_readline_end): New functions. (tk_command_loop): Set instream to NULL to enable Tk user interaction. (gdbtk_init): Set readline_begin_hook, readline_hook, and readline_end_hook. * gdbtk.tcl (gdbtk_tcl_readline_begin, gdbtk_tcl_readline, gdbtk_tcl_readline_end): New functions. (tclsh): Pack scroll bar on right side of window, not left. PR 9385
1996-05-20 * ldlang.c (dprint_statement): Stop printing at end of list.David Edelsohn1-0/+4
1996-05-18 Support for --force-exe-suffixSteve Chamberlain1-0/+9
* ld.h (args_type): Add force_exe_suffix. * ld.texinfo: Add documentation. * ldmain.c (main): Add support for option. * lexsup.c (OPTION_FORCE_EXE_SUFFIX): New. (ld_options, parse_args): Add support for option.
1996-05-18 * blockframe.c (frameless_look_for_prologue):Peter Schauer2-0/+15
Add FUNCTION_START_OFFSET only if func_start is non-zero. * minsyms.c (lookup_minimal_symbol_by_pc): Return NULL if pc is not in a known section. * stack.c (print_frame_info): Remove check for fi->pc in known section, now handled by lookup_minimal_symbol_by_pc.
1996-05-18 * gdbtk.tcl (create_command_window): Change a misspelled "get"Fred Fish2-5/+23
to the intended "cget". (delete_line): Fix so it deletes the current line at the insertion cursor.
1996-05-17move stub.c up to main dirStan Shebs2-1556/+4
1996-05-17keep sh-stub.cStan Shebs1-0/+1