Ken Raeburn [Tue, 31 Oct 1995 02:01:13 +0000 (02:01 +0000)]
Put the "some mentions of sanitize..." check *after* the GM sanitization,
and make it a fatal error.
Ian Lance Taylor [Mon, 30 Oct 1995 23:58:15 +0000 (23:58 +0000)]
* configure.in: Build the linker on AIX.
Ian Lance Taylor [Mon, 30 Oct 1995 23:53:16 +0000 (23:53 +0000)]
* xcofflink.c (struct xcoff_final_link_info): Add new line_filepos
field.
(xcoff_find_reloc): New static function.
(xcoff_link_add_symbols): Use it.
(_bfd_xcoff_bfd_final_link): Set finfo.line_filepos.
(xcoff_link_input_bfd): Handle C_BINCL and C_EINCL. Don't
relocate the value of C_DECL.
Ian Lance Taylor [Mon, 30 Oct 1995 23:30:24 +0000 (23:30 +0000)]
* listing.c (listing_newline): Don't create a frag in the absolute
section.
Per Bothner [Mon, 30 Oct 1995 20:57:41 +0000 (20:57 +0000)]
* Makefile.in (CC_FOR_TARGET, CXX_FOR_TARGET): Add $(TARGET_SUBDIR)
where needed.
David Edelsohn [Mon, 30 Oct 1995 20:47:56 +0000 (20:47 +0000)]
* Makefile.in (all-gcc): Fix typo.
Ian Lance Taylor [Mon, 30 Oct 1995 19:56:30 +0000 (19:56 +0000)]
* elf.c (elf_fake_sections): Remove bogus BFD_ASSERT.
PR 8293.
Ian Lance Taylor [Mon, 30 Oct 1995 19:34:02 +0000 (19:34 +0000)]
* objdump.c (objdump_print_value): New static function.
(objdump_print_address): Use it. If we need the right section for
the symbol, and we can't find it, print an offset from the section
rather than using a symbol from some other section.
PR 8251.
Fred Fish [Mon, 30 Oct 1995 03:15:12 +0000 (03:15 +0000)]
* pr-5016.exp: xfail "whatis i" for sparc-sun-sunos4*, same as linux.
Fred Fish [Sun, 29 Oct 1995 20:31:03 +0000 (20:31 +0000)]
* gdb.stabs/ecoff.sed: Remove comment lines except for first one.
IRIX 4.0 /bin/sed chokes on them, though they work fine elsewhere.
Fred Fish [Sun, 29 Oct 1995 19:28:08 +0000 (19:28 +0000)]
* monitor.c: Include gnu-regex.h rather than system regex.h.
Steve Chamberlain [Sun, 29 Oct 1995 06:58:26 +0000 (06:58 +0000)]
Sat Oct 28 23:51:48 1995 steve chamberlain <sac@slash.cygnus.com>
* defs.h: Test on name __WIN32__ rather than WIN32.
* inflow.c (new_tty): Likewise
* terminal.h: Likewise.
* utils.c (initialize_utils): Likewise.
* win32-nat.c (child_create_inferiror): Print error code when failing.
* config/i386/win32.mh (XM_CLIBS): Need -lkernel32.
Per Bothner [Sat, 28 Oct 1995 17:26:38 +0000 (17:26 +0000)]
* Makefile.in ($(CHECK_TARGET_MODULES)): Fix typo.
Peter Schauer [Sat, 28 Oct 1995 11:57:02 +0000 (11:57 +0000)]
* symtab.h (enum address_class): Add LOC_UNRESOLVED for
a location whose address has to be resolved via the minimal
symbol table.
* buildsym.c (finish_block), findvar.c (symbol_read_needs_frame,
read_var_value), printcmd.c (address_info),
symmisc.c (print_symbol, print_partial_symbol): Handle
LOC_UNRESOLVED.
* stabsread.c (scan_file_globals): Change unresolved LOC_STATIC
symbols to LOC_UNRESOLVED. Remove rt_common_objfile lookup
kludge, global common symbols are now handled by LOC_UNRESOLVED.
(scan_file_globals_1): Move code back to scan_file_globals,
delete.
Steve Chamberlain [Sat, 28 Oct 1995 08:35:43 +0000 (08:35 +0000)]
Thu Oct 26 10:23:14 1995 steve chamberlain <sac@slash.cygnus.com>
* dlltool.c (no_idata4, no_idata5): New.
(arm_jtab): Use correct encoding of jump instruction.
(usage, main, make_head, make_tail): Act on no_idata4, no_idata5.
Steve Chamberlain [Sat, 28 Oct 1995 08:30:37 +0000 (08:30 +0000)]
Sat Oct 28 01:25:34 1995 steve chamberlain <sac@slash.cygnus.com>
* cofflink.c (_bfd_coff_generic_relocate_section): Make
callback decide what goes in .relocs.
* pe[i]-i386.c (TARGET_UNDERSCORE): Define.
* peicode.h (pe_mkobject_hook): Only copy aouthdr if
there is one.
Steve Chamberlain [Sat, 28 Oct 1995 07:26:10 +0000 (07:26 +0000)]
Sat Oct 28 00:10:03 1995 steve chamberlain <sac@slash.cygnus.com>
* emultempl/pe.em (gld_${EMULATION_NAME}_parse_args):
Don't hang if last option is unrecognised.
(gld_${EMULATION_NAME}_set_symbols): Insert created
symbols into ABS output section.
Per Bothner [Sat, 28 Oct 1995 06:28:42 +0000 (06:28 +0000)]
* configure.in: Rename libFOO to target-libFOO, and xiberty
to target-xiberty, to provide more flexibility.
(target_subdir): Define. Create if cross.
Set TARGET_SUBDIR in Makefile to ${target_subdir}.
* Makefile.in: Rename all-libFOO -> all-target-libFOO, all-xiberty
-> all-target-libiberty, configure-libFOO -> configure-target-libFOO,
check-libFOO -> check-target-libFOO, etc.
($(DO_X)): Iterate over TARGET_CONFIGDIRS after SUBDIRS.
($(CONFIGURE_TARGET_MODULES), $(CHECK_TARGET_MODULES),
$(ALL_TARGET_MODULES), $(INSTALL_TARGET_MODULES)): Update accordingly.
(configure-target-XXX): Depend on $(ALL_GCC), not all-gcc, to
allow ALL_GCC="" to only configure.
(DEVO_SUPPORT): Add cfg-ml-com.in and cfg-ml-pos.in.
(ETC_SUPPORT, ETC_SUPPORT_PFX): Merge; update 'taz' accordingly.
(LIBGXX_SUPPORT_DIRS): Remove xiberty.
Ken Raeburn [Sat, 28 Oct 1995 05:55:18 +0000 (05:55 +0000)]
* Makefile.in (taz): Build "info" in etc explicitly.
Ian Lance Taylor [Sat, 28 Oct 1995 05:55:00 +0000 (05:55 +0000)]
* ld-scripts/script.t: Put .pr in .text, and .rw in .data, for
convenience when testing XCOFF.
Ian Lance Taylor [Sat, 28 Oct 1995 05:51:49 +0000 (05:51 +0000)]
* xcofflink.c (xcoff_link_add_symbols): Handle csects in the
absolute section.
Ian Lance Taylor [Sat, 28 Oct 1995 05:50:14 +0000 (05:50 +0000)]
* config/tc-ppc.c (md_pseudo_table): Add "data" and "text".
(ppc_csect): Move most of the code to ppc_change_csect, and call
it.
(ppc_change_csect): New static function, taken from ppc_csect.
(ppc_section): New static function.
(ppc_saw_abs): New static varable.
(ppc_frob_symbol): Create aux entry for absolute symbols. Warn if
a symbol has no csect.
(ppc_adjust_symtab): New function.
* config/tc-ppc.h (tc_adjust_symtab): Define if OBJ_XCOFF.
(ppc_adjust_symtab): Declare if OBJ_XCOFF.
Ian Lance Taylor [Sat, 28 Oct 1995 05:05:46 +0000 (05:05 +0000)]
* symbols.c (symbol_find_or_make): Change name to be const.
* symbols.h (symbol_find_or_make): Update declaration.
Niklas Hallqvist [Sat, 28 Oct 1995 01:40:02 +0000 (01:40 +0000)]
* Makefile.in (ALL_EMULATIONS): Added support for the NetBSD
m68k4k arch.
(em68k4knbsd.c): New rule.
* configure.tgt: Added support for the NetBSD m68k4k arch.
* genscripts.sh, ldint.texinfo,
emulparams/{a29k,armaoutb,armaoutl,coff_sparc,ebmon29k,gld960,
gld960coff,go32,h8300,h8300h,h8500,h8500b,h8500c,h8500m,h8500s,
hp300bsd,hp3hpux,hppaelf.sh,i386aout,i386bsd,i386coff,i386go32,
i386linux,i386lynx,i386nbsd,lnk960,m68kaout,m68kcoff,m68klynx,
m88kbcs,mipsbig,mipsbsd,mipsidt,mipsidtl,mipslit,news,ns32knbsd,
pc532machaout,rce,riscix,sa29200,sh,shl,sparclynx,sparcnbsd,
st2000,sun3,sun4,vanilla,vax,vsta,w65,z8001,z8002}.sh: Changed
PAGE_SIZE to TARGET_PAGE_SIZE.
* emulparams/m68knbsd.h: Ditto.
(TEXT_START_ADDR, NONPAGED_TEXT_START_ADDR): We have 8K pagesize.
(EXECUTABLE_SYMBOLS): Hardcode __DYNAMIC to zero for the time
being.
* emulparams/m68k4knbsd.sh: New file.
* scripttempl/aout.sc: Expand EXECUTABLE_SYMBOLS if relocating.
Niklas Hallqvist [Sat, 28 Oct 1995 01:01:52 +0000 (01:01 +0000)]
* m68k4knetbsd.c: New file.
* hosts/mipsnbsd.h: New file.
Niklas Hallqvist [Sat, 28 Oct 1995 00:58:22 +0000 (00:58 +0000)]
Initial revision
Niklas Hallqvist [Sat, 28 Oct 1995 00:45:51 +0000 (00:45 +0000)]
* PORTING, aout-arm.c, aout-encap.c, aout-rce.c, aout-target.h,
aoutx.h, gen-aout.c, host-aout.c, hp300bsd.c, i386aout.c
i386bsd.c, i386dynix.c, i386linux.c, i386lynx.c, i386mach3.c,
i386netbsd.c, m68klynx.c, m88kmach3.c, mipsbsd.c, newsos3.c,
ns32knetbsd.c, pc532-mach.c, riscix.c, sparclynx.c, sparcnetbsd.c:
Change PAGE_SIZE to TARGET_PAGE_SIZE.
* m68knetbsd.c: Ditto as well as add support for the m68k4k object
format.
* netbsd.h: Double ditto (incl. m68k4k support). NetBSD's text
segments includes the a.out header. See to that the magic number
*always* is big-endian.
* config.bfd: Add m68*-hp*-netbsd* case. Cross-pollinate m68k and
m68k4k NetBSD configurations.
* configure.in, configure: Separate i386 & mips NetBSD
configurations from other BSD ones. Don't assume DEC is the only
thing NetBSD/mips run on. Add {m68k,ns32k,sparc}-*-netbsd*
configurations. Add support for m68k4k NetBSD object format.
* libaout.h: Added M_68K4K_NETBSD magic.
* hosts/{m68k,sparc}nbsd.h: Don't define HOST_BIG_ENDIAN_P.
* hosts/nbsd.h: Define HOST_BIG_ENDIAN_P according to
<machine/endian.h>.
Niklas Hallqvist [Sat, 28 Oct 1995 00:36:29 +0000 (00:36 +0000)]
Define HOST_BIG_ENDIAN_P according to <machine/endian.h>.
Niklas Hallqvist [Sat, 28 Oct 1995 00:35:40 +0000 (00:35 +0000)]
Do not define HOST_BIG_ENDIAN_P
Niklas Hallqvist [Sat, 28 Oct 1995 00:34:30 +0000 (00:34 +0000)]
Added M_68K4K_NETBSD magic.
Niklas Hallqvist [Sat, 28 Oct 1995 00:34:10 +0000 (00:34 +0000)]
Separate i386 & mips NetBSD configurations from other BSD ones. Don't assume
DEC is the only thing NetBSD/mips run on. Add {m68k,ns32k,sparc}-*-netbsd*
configurations. Add support for m68k4k NetBSD object format.
Niklas Hallqvist [Sat, 28 Oct 1995 00:30:38 +0000 (00:30 +0000)]
Add m68*-hp*-netbsd* case. Cross-pollinate m68k and m68k4k NetBSD
configurations.
Niklas Hallqvist [Sat, 28 Oct 1995 00:26:12 +0000 (00:26 +0000)]
Change PAGE_SIZE to TARGET_PAGE_SIZE
Ian Lance Taylor [Fri, 27 Oct 1995 22:21:43 +0000 (22:21 +0000)]
* emultempl/aix.em: Include ldctor.h.
(gld${EMULATION_NAME}_after_open): New static function.
(gld${EMULATION_NAME}_before_allocation): Call find_relocs.
(gld${EMULATION_NAME}_find_relocs): New static function.
(gld${EMULATION_NAME}_find_exp_assignment): New static function.
(ld_${EMULATION_NAME}_emulation): Use new after_open function.
* scripttempl/aix.sc: Use CONSTRUCTORS in .data.
* ldctor.c (struct set_info): Move definition into ldctor.h.
(struct set_element): Likewise.
(sets): Make non-static.
(ldctor_add_set_entry): Add name parameter. Save it in the new
set element.
(ldctor_build_sets): Avoid being called twice. Pass set element
name to lang_add_reloc.
* ldctor.h (struct set_info): Move definition here from ldctor.c.
(struct set_element): Likewise. Add new field name.
(sets): Declare.
(ldctor_add_set_entry): Declare new name parameter.
* ldwrite.c (build_link_order): Don't insist that either name or
section be NULL in a lang_reloc_statement.
* ldmain.c (add_to_set): Pass NULL to ldctor_add_new_set_entry for
new name parameter.
(constructor_callback): Pass name to ldctor_add_new_set_entry for
new name parameter.
Ian Lance Taylor [Fri, 27 Oct 1995 22:20:19 +0000 (22:20 +0000)]
* xcofflink.c: More improvements, mostly to fix handling of
constructors and a few other special cases.
* coff-rs6000.c (rs6000coff_vec): Set symbol_leading_char back to
zero, reverting yesterday's change.
* bfd-in.h (bfd_xcoff_link_record_set): Declare.
(bfd_xcoff_link_count_reloc): Declare.
(bfd_xcoff_record_link_assignment): Declare.
* bfd-in2.h: Rebuild.
Stu Grossman [Fri, 27 Oct 1995 17:53:44 +0000 (17:53 +0000)]
* config/mips/tm-magic.h config/mips/magic.mt: New files for
magic target support.
Stu Grossman [Fri, 27 Oct 1995 17:48:36 +0000 (17:48 +0000)]
* breakpoint.c (breakpoint_re_set): #ifdef GET_LONGJMP_TARGET
around calls to create_longjmp_breakpoint. Why install the
breakpoints if we can't find the longjmp target?
* infrun.c (wait_for_inferior): Cleanup comments near call test.
* remote-mips.c: Fixed a bunch of prototypes to avoid char/int
complaint from picky compilers. Add comment to mips_expect.
Replace all instances of sr_get_debug with remote_debug.
* (mips_readchar): Don't jam init string to monitor.
mips_initialize() handles that.
* (mips_receive_header): Print better message when we get too
much garbage.
* (mips_request): Allow caller to pass in buff to allow them to
analyze the returned message.
* (mips_initialize): Re-do initialization to try sending a BREAK,
a ^C, and then a download escape sequence. Cleanup protocol
startup. Eliminate sleeps. Clear breakpoints (if using monitor
breakpoints). Re-init frame.
* (mips_detach): Close down target.
start-sanitize-gm
* (mips_resume): Pass signal down to target.
* (mips_create_inferior): Start target with TARGET_SIGNAL_PWR.
end-sanitize-gm
* (mips_wait): Handle return status with registers, or breakpoint stuff.
* (mips_kill): Add ^C handling.
* (mips_insert_breakpoint mips_remove_breakpoint): Call new
breakpoint stuff if enabled.
* (calculate_mask remote_mips_set_watchpoint
remote_mips_remove_watchpoint remote_mips_stopped_by_watchpoint):
Hardware watchpoint/breakpoint stuff.
* (common_breakpoint): Common code for new monitor breakpoint commands.
* (mips_load): Don't use `prompt'. It's a global variable.
* top.c (dont_repeat_command): New command for use in
user-defined commands to suppress auto-repeat (by hittin return key).
start-sanitize-gm
* utils.c (request_quit): Call target_kill here. Good idea.
Needs a better implementation.
end-sanitize-gm
* valops.c: Add start of auto function-call abandonment capability.
start-sanitize-gm
* c-exp.y: Add code (currently disabled) to handle GM dynamic
structures (it conflicts with @!).
* eval.c (evaluate_subexp_standard): ditto.
* expprint.c (print_subexp dump_expression): ditto.
* expression.h (enum exp_opcode): ditto.
* parse.c (length_of_subexp): ditto.
* configure, configure.in: Add mip*-*-magic* target.
* magic.c magic.h: Special routines to handle GM stuff (like
stepping through dispatcher).
end-sanitize-gm
Stu Grossman [Fri, 27 Oct 1995 16:45:28 +0000 (16:45 +0000)]
* config.bfd: Add config stuff for mips*-*-magic* to set
targ_defvec to ecoff_big_vec.
Stu Grossman [Fri, 27 Oct 1995 16:39:10 +0000 (16:39 +0000)]
* configure.in: Make sure that CC is undefined (as opposed to
null) if toplevel/config/mh-{host} doesn't define it. Fixes a
problem with autoconf trying to configure on a host without GCC.
* config.sub: Add `magic' as an OS target for General Magic.
Stan Shebs [Fri, 27 Oct 1995 05:39:36 +0000 (05:39 +0000)]
* mpw-configure: Set host alias from choice of host compiler,
only use generic MPW Makefile sed if present, edit a file
named "hacked_Makefile.in" instead of "Makefile.in" if present.
* mpw-README: Add problem notes about CW6 and CW7.
Stan Shebs [Fri, 27 Oct 1995 05:32:46 +0000 (05:32 +0000)]
New file
Stan Shebs [Fri, 27 Oct 1995 05:30:14 +0000 (05:30 +0000)]
Reflect updates to Mac support
Stan Shebs [Fri, 27 Oct 1995 05:28:17 +0000 (05:28 +0000)]
* mpw-config.in: Add PowerMac target support, generate config.h.
* mac-ld.r: New file, Mac resources.
* mpw-make.sed: New file, edits Makefile.in into MPW syntax.
* mpw-make.in: Remove.
* mpw-eppcmacos.c: Prebuilt version of PowerMac linking script.
Stan Shebs [Fri, 27 Oct 1995 05:19:11 +0000 (05:19 +0000)]
* config/xm-mpw.h: New file, all-Mac host support.
* config/m68k/xm-mpw.h: Move most definitions into generic Mac
support.
* config/powerpc/xm-mpw.h: New file, PowerMac host support.
Stan Shebs [Fri, 27 Oct 1995 05:04:44 +0000 (05:04 +0000)]
* mpw-config.in: Add support for PowerMac host, add beginnings
of native support.
* mpw-make.sed: Disable subdir recursion, edit out useless rule.
* mac-xdep.c (Values.h): Don't include.
(GestaltEqu.h): Include Gestalt.h instead.
(do_mouse_down): Comment out control tracking, needs to be
updated to use UPP before will work on PowerMac.
Stan Shebs [Fri, 27 Oct 1995 04:59:01 +0000 (04:59 +0000)]
Remove unnecessary CYGNUS LOCAL
Ian Lance Taylor [Fri, 27 Oct 1995 03:36:17 +0000 (03:36 +0000)]
more XCOFF linker tweaks
Ian Lance Taylor [Fri, 27 Oct 1995 03:30:15 +0000 (03:30 +0000)]
* ld-bootstrap/bootstrap.exp: On AIX, pass -bI/lib/syscalls.exp
along with --static.
Ian Lance Taylor [Fri, 27 Oct 1995 02:53:47 +0000 (02:53 +0000)]
* ld-scripts/script.s: Make symbols global.
Ian Lance Taylor [Fri, 27 Oct 1995 01:59:30 +0000 (01:59 +0000)]
* emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Treat
-static as a synonym for -bnso.
Ian Lance Taylor [Fri, 27 Oct 1995 00:10:05 +0000 (00:10 +0000)]
fix output location of common symbols
Brendan Kehoe [Thu, 26 Oct 1995 23:54:44 +0000 (23:54 +0000)]
* regex.h: Renamed to gnu-regex.h.
* regex.c: Renamed to gnu-regex.c.
* Makefile.in (POSSLIBS): Refer to gnu-regex.h and gnu-regex.c.
(REGEX, REGEX1): Change to gnu-regex.o instead of regex.o.
(regex.o): Renamed to gnu-regex.o; refer to gnu-regex.c.
(irix5-nat.o, osfsolib.o, gnu-regex.o, solib.o, source.o, symtab.o):
Likewise.
* irix5-nat.c, osfsolib.c, gnu-regex.c, solib.c, source.c, symtab.c):
Include "gnu-regex.h" instead of "regex.h".
* alpha-tdep.c (in_prologue): Rename to alpha_in_prologue, to
avoid conflicts with symtab.h.
fixes building gdb under OSF/1 4.0
Ken Raeburn [Thu, 26 Oct 1995 23:48:41 +0000 (23:48 +0000)]
doc fixes from Roland
Ian Lance Taylor [Thu, 26 Oct 1995 23:39:19 +0000 (23:39 +0000)]
do not output symbols which need relocs until the end
Ian Lance Taylor [Thu, 26 Oct 1995 23:03:34 +0000 (23:03 +0000)]
get symndx right for TOC relative relocs
Stan Shebs [Thu, 26 Oct 1995 21:29:50 +0000 (21:29 +0000)]
Cosmetic improvements
David Edelsohn [Thu, 26 Oct 1995 18:46:28 +0000 (18:46 +0000)]
* tc-arm.c (do_ldst): Assemble ldr/str r0, [r1] as a pre-increment
instruction.
Ian Lance Taylor [Thu, 26 Oct 1995 18:42:46 +0000 (18:42 +0000)]
tweak .loader reloc counting
Ian Lance Taylor [Thu, 26 Oct 1995 18:25:13 +0000 (18:25 +0000)]
* xcofflink.c: Numerous changes to get closer to a working XCOFF
linker.
* libcoff-in.h (struct xcoff_tdata): Add full_aouthdr,
toc_section, and entry_section fields.
(struct xcoff_section_tdata): Remove ldrel_count field.
* libcoff.h: Rebuild.
* coffcode.h (coff_mkobject_hook): Initialize new xcoff_data
fields.
(coff_compute_section_file_positions): If RS6000COFF_C, generate
full a.out header if full_aouthdr is set in xcoff_data.
(coff_write_object_contents): Likewise. Set o_snentry and o_sntoc
based on sections stored in xcoff_data.
* coff-rs6000.c (xcoff_copy_private_bfd_data): Copy new xcoff_data
fields.
* coffgen.c (coff_get_symbol_info): If fix_value is set, fix the
value stored in ret rather than returning a pointer value.
Ian Lance Taylor [Thu, 26 Oct 1995 18:12:41 +0000 (18:12 +0000)]
* scripttempl/aix.sc: Move special symbols inside sections.
Always start .data at 0.
Michael Meissner [Thu, 26 Oct 1995 18:10:13 +0000 (18:10 +0000)]
Delete *.i and *.out files for clean
Michael Meissner [Thu, 26 Oct 1995 16:43:00 +0000 (16:43 +0000)]
Fix SWAP_8 and optimize it; print out the failing address if a signal is issued for non-gdb runs
Ken Raeburn [Thu, 26 Oct 1995 09:47:14 +0000 (09:47 +0000)]
Makefile.in (taz): Use ";" not ";;".
Michael Meissner [Thu, 26 Oct 1995 03:12:19 +0000 (03:12 +0000)]
Remove MAC object format support from powerpc-eabi for now
Angela Marie Thomas [Thu, 26 Oct 1995 00:11:31 +0000 (00:11 +0000)]
trying to nuke for crash... files no longer needed
Jason Molenda [Wed, 25 Oct 1995 23:53:11 +0000 (23:53 +0000)]
don't keep mh-aix mh-sun.
Per Bothner [Wed, 25 Oct 1995 22:23:40 +0000 (22:23 +0000)]
* Makefile.in (taz): Grep for '^diststuff:' or '^info:' in
sub-directory Makefiles, instead of using DISTSTUFFDIRS and
DISTDOCDIRS.
(DISTSTUFFDIRS, DISTDOCDIRS): Removed - no longer used.
(newlib.tar.gz): Don't pass DISTDOCDIRS to recursive make.
Jeff Law [Wed, 25 Oct 1995 22:23:33 +0000 (22:23 +0000)]
* som.c (som_slurp_string_table): Allocate the strings with malloc
since they're free'd by free_cached_info.
(som_slurp_symbol_table): Similarly for the symbol table.
Fixes crash (nm /lib/libc.a on hpux10).
Ken Raeburn [Wed, 25 Oct 1995 22:07:38 +0000 (22:07 +0000)]
updated for jsmith's file renaming
Per Bothner [Wed, 25 Oct 1995 21:59:47 +0000 (21:59 +0000)]
* Makefile.in (diststuff): Don't make headers.
Per Bothner [Wed, 25 Oct 1995 21:54:55 +0000 (21:54 +0000)]
* Makefile.in (DISTDOCDIRS): Remove ld gprof bnutils gas libg++ gdb
and gnats, because they are now subsumed by DISTSTUFFDIRS.
Move bfd to DISTSTUFFDIRS.
Ian Lance Taylor [Wed, 25 Oct 1995 20:42:36 +0000 (20:42 +0000)]
* Makefile.in: Rebuild dependencies.
Ian Lance Taylor [Wed, 25 Oct 1995 20:33:38 +0000 (20:33 +0000)]
fix XCOFF line number handling
Per Bothner [Wed, 25 Oct 1995 20:24:00 +0000 (20:24 +0000)]
* Makefile.in (diststuff): Also make info.
(mostlyclean): Don't remove gprof.info*.
(maintainer-clean realclean): Also remove *.info*.
Stan Shebs [Wed, 25 Oct 1995 19:12:25 +0000 (19:12 +0000)]
* mpw-make.sed: Edit paths to generated y.tab.[ch] files.
Per Bothner [Wed, 25 Oct 1995 18:59:59 +0000 (18:59 +0000)]
* Makefile.in (diststuff): Also make info.
(maintainer-clean realclean): Also make clean-info.
Per Bothner [Wed, 25 Oct 1995 18:51:37 +0000 (18:51 +0000)]
* Makefile.in (diststuff): Also make info.
(maintainer-clean realclean): Also delete *.info*.
Ian Lance Taylor [Wed, 25 Oct 1995 18:31:27 +0000 (18:31 +0000)]
set l_stoff to 0 if there are no strings
Ian Lance Taylor [Wed, 25 Oct 1995 17:58:30 +0000 (17:58 +0000)]
only read the section relocs if there are some
Ian Lance Taylor [Wed, 25 Oct 1995 17:51:13 +0000 (17:51 +0000)]
add OUTPUT_FORMAT and LIB_SEARCH_DIRS
Ian Lance Taylor [Wed, 25 Oct 1995 17:45:33 +0000 (17:45 +0000)]
tweak line number and gc handling
Ian Lance Taylor [Wed, 25 Oct 1995 17:37:35 +0000 (17:37 +0000)]
tweak option handling
Ian Lance Taylor [Wed, 25 Oct 1995 16:33:02 +0000 (16:33 +0000)]
* sunos.c (bfd_sunos_record_link_assignment): Don't do anything if
output_bfd is not SunOS.
(bfd_sunos_size_dynamic_sections): Likewise. Don't scan relocs of
non-SunOS input files.
PR 8270.
Ian Lance Taylor [Wed, 25 Oct 1995 15:49:27 +0000 (15:49 +0000)]
* emultempl/aix.em: Add support for various AIX linker options,
for AIX import and export files, and for AIX shared objects.
* scripttempl/aix.sc: Add .pad. Put .ds just before the TOC.
Ian Lance Taylor [Wed, 25 Oct 1995 15:48:53 +0000 (15:48 +0000)]
* ldmain.c (main): Initialize new field link_info.static_link.
* ldmain.c (add_keepsyms_file): Add \n at end of einfo calls.
(constructor_callback): Likewise.
* ldmisc.c (vfinfo): Likewise.
* ldwrite.c (build_link_order): Likewise.
Ian Lance Taylor [Wed, 25 Oct 1995 15:37:47 +0000 (15:37 +0000)]
* xcofflink.c: Extensive changes to support linking shared objects
and generating a .loader section.
* libcoff-in.h (struct xcoff_tdata): Add import_file_id field.
(struct xcoff_section_tdata): Add first_symndx, last_symndx,
and ldrel_count fields.
* libcoff.h: Rebuild.
* coff-rs6000.c (xcoff_howto_table): Correct reloc names.
* coffcode.h (styp_to_sec_flags): Don't set any flags if STYP_PAD
is set.
* bfd-in.h (bfd_xcoff_import_symbol): Declare.
(bfd_xcoff_export_symbol): Declare.
(bfd_xcoff_size_dynamic_sections): Declare.
* bfd-in2.h: Rebuild.
Ian Lance Taylor [Wed, 25 Oct 1995 15:28:28 +0000 (15:28 +0000)]
* ld.texinfo: The MRI ALIGN directive is supported.
Jason Molenda [Wed, 25 Oct 1995 02:17:02 +0000 (02:17 +0000)]
forgot to check this in.
Ian Lance Taylor [Wed, 25 Oct 1995 01:46:09 +0000 (01:46 +0000)]
* bfdlink.h (struct bfd_link_info): Add static_link field.
Jason Molenda [Wed, 25 Oct 1995 01:33:26 +0000 (01:33 +0000)]
Tue Oct 24 18:30:18 1995 Jason Molenda (crash@phydeaux.cygnus.com)
* config/pa/hppahpux.mh: Remove hardcoding of X locations.
* Makefile.in: Use X11_CFLAGS, X11_LDFLAGS and X11_LIBS.
* configure.in: Link X statically on Solaris, SunOS and HPUX.
Jason Molenda [Wed, 25 Oct 1995 01:24:21 +0000 (01:24 +0000)]
Fri Oct 13 14:44:25 1995 Jason Molenda (crash@phydeaux.cygnus.com)
* mh-aix, mh-sun: Removed.
* mh-decstation (X11_EXTRA_CFLAGS): Define.
* mh-sco, mh-solaris, mh-sysv4 (X11_EXTRA_LIBS): Define.
* mh-hp300, mh-hpux, mh-hpux8, mh-solaris, mh-sun3, mh-sysv4: Don't
hardcode location of X stuff here.
Jason Molenda [Wed, 25 Oct 1995 01:21:08 +0000 (01:21 +0000)]
Tue Oct 24 18:19:09 1995 Jason Molenda (crash@phydeaux.cygnus.com)
* Makefile.in (X11_LIB): Removed.
(X11_FLAGS_TO_PASS): pass only X11_EXTRA_CFLAGS and X11_EXTRA_LIBS.
* configure.in (host_makefile_frag): mh-aix & mh-sun removed.
Stan Shebs [Wed, 25 Oct 1995 00:54:55 +0000 (00:54 +0000)]
* configure.in: Add xcofflink.o to pmac_xcoff_vec.
* configure: Rebuild.
* mpw-config.in: Add xcofflink.c.o to powerpc-apple-macos.
* coff-pmac.c: Include coff-rs6000.c instead of duplicating its
contents.
(pmac_xcoff_vec): Update to use new xcoff support.
* coff-rs6000.c (xcoff_generic_stat_arch_elt): Make static.
(xcoff_write_armap): Declare buf as unsigned char.
* xcofflink.c (xcoff_link_add_symbols): Declare a local as PTR.
* mpw-make.sed: Generalize subdir_do edit.
Stu Grossman [Tue, 24 Oct 1995 21:35:23 +0000 (21:35 +0000)]
* monitor.h (struct memrw_cmd->resp_delim): Document this as a regexp.
Stu Grossman [Tue, 24 Oct 1995 21:31:07 +0000 (21:31 +0000)]
* monitor.c (monitor_expect_regexp): Same as monitor_expect, but
with the obvious extension. (monitor_read_memory_single): Use
regexp for getmem.resp_delim because of parsing ambiguities caused
by certain monitors. (monitor_read_memory): Use new regexp stuff
to parse getmem.resp_delim.
* sh3-rom.c: Finish off table. Use new regexp capability for
getmem commands.
Jeff Law [Tue, 24 Oct 1995 21:27:44 +0000 (21:27 +0000)]
Document .nsubspa.
Jeff Law [Tue, 24 Oct 1995 21:26:51 +0000 (21:26 +0000)]
* config/tc-hppa.c (md_pseudo_table): Add new ".nsubspa" opcode.
(pa_subspace): For ".nsubspa", always create a new subspace
with the given attributes, even if one already exists with the
same name.
So we can put every function into its own $CODE$ subspace.
Stu Grossman [Tue, 24 Oct 1995 21:22:56 +0000 (21:22 +0000)]
* infrun.c (wait_for_inferior): Disable questionable code near
the step range test. Replace call detection test with much
simpler (and more efficient) test that doesn't require prologue
examination (as often).
* symtab.c symtab.h (in_prologue): New function that indicates
whether or not we are in a function prologue. This uses the
symbol table, and then falls back to prologue examination if that
fails. It's much more efficient for remote debugging because it
avoids examining memory, which is very slow. This is used in
wait_for_inferior to determine if we've made a function call that
needs to be skipped over (for next/nexti).
* mips-tdep.c (after_prologue): New function, returns the PC
after the prologue. Uses PDRs and the symbol table.
(mips_find_saved_regs): Use in_prologue() to avoid costly
prologue examination if possible.
(mips_skip_prologue): Use after_prologue() if possible to avoid
costly prologue examination.
Stan Shebs [Tue, 24 Oct 1995 20:21:58 +0000 (20:21 +0000)]
* mmprivate.h: Remove declarations (PTR, etc) that are already
provided by ansidecl.h, include mmalloc.h earlier in file.
Michael Meissner [Tue, 24 Oct 1995 18:59:05 +0000 (18:59 +0000)]
Fix PR 8255