Frank Ch. Eigler
8d3c21b3d4
* Belatedly bringing over PR 15850 patch from d30v branch.
...
Thu Jul 2 15:57:58 1998 Frank Ch. Eigler <fche@cygnus.com>
* breakpoint.c (resolve_sal_pc): Accept absence of innermost
Lexical block for breakpoint resolution.
1998-07-02 17:30:21 +00:00
Dawn Perchik
3acd0db516
* mdebugread.c (parse_partial_symbols): Go ahead and read the .mdebug
...
section, but just don't add a 2nd minimal symbol if this is an .mdebug
section in an ELF file.
1998-07-02 17:30:20 +00:00
Richard Henderson
5cc30c0a87
gc note
1998-07-02 06:23:44 +00:00
Richard Henderson
7e6566495b
* config/obj-elf.c (obj_elf_vtable_inherit, obj_elf_vtable_entry): New.
...
(elf_pseudo_table): Add them.
* config/tc-mips.c (mips_force_relocation): Force vtable relocs.
(md_apply_fix): Accept them.
(mips_fix_adjustable): Don't adjust them.
(tc_gen_reloc): Mung BFD_RELOC_VTABLE_ENTRY for Rel.
* config/tc-ppc.c (md_apply_fix3): Accept vtable relocs.
* config/tc-ppc.h (TC_FORCE_RELOCATION_SECTION): Force vtable relocs.
(tc_fix_adjustable): Don't adjust them.
1998-07-02 05:34:36 +00:00
Richard Henderson
71b012a810
* ld.h (args_type): Add gc_sections.
...
* ldgram.y (ldgram_had_keep, KEEP): New.
(input_section_spec_no_keep): Rename from old input_section_spec.
(input_section_spec): New. Recognize KEEP.
* ldlang.c (wild_section): Handle keep sections.
(lang_gc_wild_section, lang_gc_wild_file, lang_gc_wild): New.
(lang_gc_sections_1, lang_gc_sections): New.
(lang_process): Invoke lang_gc_sections.
(lang_add_wild): Add keep argument. Update all callers.
* ldlang.h (lang_wild_statement_struct): Add keep_sections.
* ldlex.l (KEEP): Match it.
* ldmain.c (main): Error on -r and --gc-sections.
* lexsup.c: Add --gc-sections.
* scripttempl/elf.sc: Merge .text.* etc sections appropriately.
Mark startup sections with KEEP.
* scripttempl/elfppc.sc: Likewise.
* ld.texinfo: Update for --gc-sections and KEEP.
1998-07-02 02:52:31 +00:00
Doug Evans
5ea0771f4c
* configure.in: configure cgen if --enable-cgen-maint.
...
* Makefile.in (ALL_MODULES,CLEAN_MODULES): Add all-cgen.
(all-cgen): New rule.
(all-opcodes,all-sim): Depend on all-cgen.
1998-07-02 02:10:29 +00:00
Doug Evans
1148b104ae
* Makefile.in: cgen_maint -> CGEN_MAINT.
...
* configure.in: AC_SUBST cgen,cgendir. No longer look for guile.
* configure: Regenerate.
* arch.c,arch.h,cpuall.h: Regenerate.
* cpu.c,cpu.h,decode.c,decode.h,extract.c,model.c: Regenerate.
* sem-switch.c,sem.c: Regenerate.
* cpux.c,cpux.h,decodex.c,decodex.h,modelx.c,readx.c: Regenerate.
* semx.c: Regenerate.
* mloopx.in (icount): Moved here from genmloop.sh.
1998-07-02 01:42:38 +00:00
Ian Lance Taylor
7fc0b65fa2
* stabs.c (parse_stab_range_type): Handle 4 and 8 byte signed
...
integers with real upper bounds. Handle a lower bound one larger
than the upper bound as a signed integer. Handle 8 byte signed
integers.
(stab_demangle_template): Optionally return the demangled name of
the template.
(stab_demangle_qualified): Treat a template name as a tagged
type.
(stab_demangle_fund_type): Likewise.
1998-07-02 00:46:49 +00:00
Nick Clifton
9e7e5d5e5b
Add support for changing LMA and VMA of sections/
1998-07-02 00:06:49 +00:00
Doug Evans
6de2add29f
* Make-common.in (SCHEME,SCHEMEFLAGS): Delete.
...
(CGENDIR,CGEN): New variables.
(CGEN_VERBOSE): Renamed to CGENFLAGS.
(cgen-arch,cgen-cpu,cgen-decode): Update.
(CGEN_CPU_WRITE): New variable.
(CGEN_CPU_SEMSW): -W -> -X.
(CGEN_FLAGS_TO_PASS): Delete SCHEME. Add CGEN,CGENFLAGS.
* cgen.sh: Delete args scheme,schemeflags. New arg cgen.
* cgen-sim.h (RECORD_IADDR): Delete.
* cgen-types.h (HOSTINT,HOSTUINT,HOSTPTR): New types.
* genmloop.sh (engine_resume_{full,fast}): Delete icount.
1998-07-01 23:47:50 +00:00
Doug Evans
7c269afbb6
* Makefile.am (CGEN_CPU_PREFIX): New variable.
...
(cgen.o): Use it.
* Makefile.in: Regenerate.
* configure.in: AC_SUBST cgen_cpu_prefix.
* configure: Regenerate.
1998-07-01 23:39:37 +00:00
Doug Evans
0499462e76
* Makefile.am (CGENDIR): Set via configure.
...
(CGEN): New variable.
(CGENFILES): object.scm renamed to cos.scm.
(run-cgen): Renamed from cgen. stamp file renamed to stamp-$prefix.
(stamp-m32r): Pass prefix to run-cgen.
* Makefile.in: Regenerate.
* cgen-asm.in: @arch@-opc.h renamed to @prefix@-opc.h.
* cgen-dis.in: Ditto.
* cgen-opc.in: Ditto.
* cgen.sh: New args cgen,prefix. Delete args scheme,schemeflags.
* configure.in: AC_SUBST cgen,cgendir. No longer look for guile.
* configure: Regenerate.
* m32r-asm.c,m32r-dis.c,m32r-opc.c,m32r-opc.h: Regenerate.
1998-07-01 23:31:27 +00:00
Nick Clifton
9eaac302dc
Minor formatting improvements.
1998-07-01 23:30:34 +00:00
Jeff Law
ee61616c43
Tweak.
1998-07-01 23:15:55 +00:00
Jeff Law
0f7d73858c
* am33.igen: New file with some am33 support.
...
Checking in work-to-date.
1998-07-01 23:13:14 +00:00
Jeff Law
de2adf7070
* mn10300_sim.h (FETCH24): Define.
...
* mn10300_sim.h: Add defines for some registers found on the AM33.
1998-07-01 23:11:59 +00:00
Doug Evans
8686807e30
* sim/m32r/hw-trap.ms: New testcase.
1998-07-01 22:57:07 +00:00
Nick Clifton
54760676b2
xfail ARM and Thumb coifftag test
1998-07-01 22:36:33 +00:00
Ian Lance Taylor
3b83ab769a
fix indentation
1998-07-01 22:05:41 +00:00
Richard Henderson
1ff137652b
"propogate" -> "propagate"
1998-07-01 21:53:34 +00:00
Doug Evans
9ae0ae657f
* sim/sky/vureloc{.brn,-main.c,.dvpasm}: New files.
1998-07-01 21:37:10 +00:00
Ian Lance Taylor
9d68c1e137
* gas/ppc/simpshft.s: Add alignment so that it works on AIX.
...
* gas/ppc/simpshft.d: Change accordingly. Only dump the .text
section.
1998-07-01 21:32:44 +00:00
Ian Lance Taylor
70f549105f
* coff-sh.c (sh_relax_delete_bytes): Correct address comparisons
...
when handling 32 bit immediate relocs.
* elf32-sh.c (sh_elf_relax_delete_bytes): Likewise.
1998-07-01 21:03:27 +00:00
Jim Blandy
40d8aa2c1b
*** empty log message ***
1998-07-01 20:51:19 +00:00
Doug Evans
6e6770c11c
* gas/dvp/lower-2.[sd]: New testcase.
...
* gas/dvp/dvp.exp: Run it.
1998-07-01 20:50:44 +00:00
Ian Lance Taylor
c0dea852d9
* ltconfig: Update to correct AIX handling.
1998-07-01 20:45:45 +00:00
Joern Rennecke
d1a7caf901
I found that the relax failure for execute/930628-1.c is due to gas
...
incorrectly relaxing an out-of-range conditional branch with delay slot.
It turned:
bf.s L6 (slot mov.l r12,@(44,r0))
into:
2c: 8f 01 a0 8b bf.s 32 <_main+32> (slot bra L6)
30: 00 09 nop
32: 10 cb mov.l r12,@(44,r0)
* config/tc-sh (COND_JUMP_DELAY, COND12_DELAY_LENGTH): Define.
Changed all users of COND12_DELAY.
1998-07-01 20:42:42 +00:00
Jim Ingham
f3b86a30f9
Wed Jul 1 13:10:58 1998 Jim Ingham <jingham@cygnus.com>
...
* Moved gdbtk_hooks.c & gdbtk_cmds.c to gdbtk-hooks.c &
gdbtk-cmds.c to comply with the gdb conventions. Changed the
configure & makefile to reflect the change...
1998-07-01 20:17:31 +00:00
Doug Evans
a57fc6b9c0
* reloc.c: New relocs BFD_RELOC_MIPS_DVP_11_S4,
...
BFD_RELOC_MIPS_DVP_U15_S3.
* elf32-mips.c: Handle them.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.
1998-07-01 20:14:12 +00:00
Doug Evans
9bae457810
* config/tc-dvp.c (md_apply_fix3): Handle new relocs
...
BFD_RELOC_MIPS_DVP_11_S4, BFD_RELOC_MIPS_DVP_U15_S3.
1998-07-01 19:40:56 +00:00
Doug Evans
3c88e9a988
* dvp-opc.c (DVP_OPERAND_RELOC_11_S4): Temporarily back out
...
the DVP_OPERAND_RELOC_11_S4 relocation.
* dvp-opc.c (LIMM11, LUIMM15): New symbol types
DVP_OPERAND_RELOC_U15_S3 and DVP_OPERAND_RELOC_11_S4 to allow labels to
be used as immediate values.
1998-07-01 19:34:55 +00:00
Jim Ingham
ca4e7e143d
Wed Jul 1 11:07:21 1998 Jim Ingham <jingham@cygnus.com>
...
* main.tcl (gdbtk_preloop): Call gdbtk_idle on spec. If there was an
error in loading an executible specified on the command line,
then the pre_add_symbol hook would have called gdbtk_busy but
the corresponding call to gdbtk_idle would not have occured.
Also changed some catch calls so they didn't use
"catch {set foo [real_command]}"
but rather the more efficient:
"catch {real_command} foo"
* register.tcl: more catch cleanups
* src.tcl: more catch cleanups
* stack.tcl: more catch cleanups
* target.tcl: more catch cleanups
* tdump.tcl: more catch cleanups
* variables.tcl: more catch cleanups
* watch.tcl: more catch cleanups
* gdbtk.c (gdbtk_init): Fixed a bug in the startup code on Windows
that caused gdbtk not to find the share directory unless
GDBTK_LIBRARY was set.
* gdbtk.c: removed all the commands and hooks from this file so
now it contains only the startup code.
* gdbtk_cmds.c: New file - this contains all the Tcl commands that
gdb defines. All the old commands were moved here, the
string-based commands were converted to object commands, and the
object-based commands were all converted to uniformly use the
call_wrapper. A new function, Gdbtk_Init was added to centralize
initializing the gdb package. Also added gdbtk as a package
into gdbtk_interp.
* gdbtk_hooks.c: New file - All the hooks were moved here, and a new
function, gdbtk_add_hooks was added to centralize adding all these
hook functions. gdbtk_fputs was also modified to handle the new
result_ptr structure. See the comments in gdbtk.h for more
details.
* gdbtk.h: New file - this contains all the defines and globals
shared by gdbtk.c, gdbtk_cmds.c & gdbtk_hooks.c
* Makefile.in, configure.in & configure: mutatis mutandi for the
new files.
1998-07-01 19:29:14 +00:00
Ian Lance Taylor
a95d955c68
rebuild
1998-07-01 18:34:33 +00:00
Ian Lance Taylor
6763b6e161
new files for windres
1998-07-01 18:33:06 +00:00
Ian Lance Taylor
0b3377c426
x
1998-07-01 18:32:49 +00:00
Ian Lance Taylor
72574626a9
* rclex.l: Add casts and change types to avoid warnings.
...
* rcparse.y: Likewise.
* resbin.c: Likewise.
* rescoff.c: Likewise.
* resrc.c: Likewise.
* Makefile.am: Rebuild dependencies.
(HFILES): Remove readelf.h.
* Makefile.in: Rebuild.
Based on patches from Andrew Kozin
<Andrew.Kozin@p14.f960.n5020.z2.fidonet.org>:
* winduni.h: New file, from windres.h.
* winduni.c: New file, from windres.c.
* windres.c: Move Unicode functions into winduni.c.
* windres.h: Move Unicode declarations into winduni.h. Include
winduni.h.
(RT_ACCELERATOR): Rename from RT_ACCELERATORS to match Windows
macro. Change all uses.
(RT_PLUGPLAY, RT_VXD): Correct values.
* Makefile.am (HFILES): Add windres.h.
(CFILES): Add winduni.c.
(windres_SOURCES): Add winduni.c.
1998-07-01 18:30:20 +00:00
Nick Clifton
d8d4c4e71a
Pass thumb-pe and arm-pe
1998-07-01 17:52:43 +00:00
Nick Clifton
e38a77d3ca
Replace object.scm with cos.scm
1998-07-01 16:42:36 +00:00
Jeff Law
a6cbaa652a
* mn10300_sim.h: Include bfd.h
...
(struct state): Add more room for processor specific registers.
start-sanitize-am33
(REG_E0): Define.
end-sanitize-am33
1998-06-30 17:28:54 +00:00
Jeff Law
39f5104e63
* section.c (STD_SECTION): Account for recently added gc_mark
...
field in struct asection.
1998-06-30 17:09:28 +00:00
Nick Clifton
df6e153ca8
remove readelf.h from file list
1998-06-30 16:25:20 +00:00
Jeff Law
ff7a9bc9b4
* m10300-opc.c: Reorder "movbu" and "movhu" instructions too.
...
Why oh why didn't they take our advice about register prefixing. It would
have avoided the ambigious syntax issues. Sigh.
1998-06-30 16:04:44 +00:00
Jeff Law
7ec96df5e2
* elf-m10300.c (bfd_mn10300_elf_merge_private_bfd_data): New function.
...
(bfd_elf32_bfd_merge_private_bfd_data): Define.
So the machine id gets propagated into executables.
1998-06-30 16:00:12 +00:00
Richard Henderson
303b4cc64f
ELF Section-level Garbage Collection.
1998-06-30 10:02:22 +00:00
Jason Molenda
d40d5880c2
Mon Jun 29 19:01:18 1998 Jim Wilson <wilson@cygnus.com>
...
* gnu-regex.c (re_comp): Add cast to char * before gettext calls.
1998-06-30 02:40:12 +00:00
Nick Clifton
cb436f39aa
Improved portability of readelf
1998-06-30 00:03:05 +00:00
Jeff Law
f88a2342d0
* config/tc-mn10300.c (r_registers): Fix typo and add some missing
...
registers.
1998-06-29 21:01:03 +00:00
Jeff Law
a841b47c4b
* m10300-opc.c: Reorder more instructions so that we do not
...
accidentally match a mn10300 instruction when we really
wanted an am33 instruction.
1998-06-29 20:57:25 +00:00
Keith Seitz
509b70ac80
* main.c (main): Don't include gdbtk test code if GDBTK is
...
not defined by configure.
* configure.in: When enabling gdbtk, add "-DGDBTK" to ENABLE_CFLAGS.
* configure: Regenerate.
1998-06-29 19:04:30 +00:00
Gavin Romig-Koch
b08a983c45
* config/tc-mips.c (prev_insn_labels): New.
...
(mips_fix_4011_branch_bug): New.
(append_insn): Watch for and handle branchs with labels.
(mips_no_prev_insn): Initialize prev_insn_labels.
(md_longopts,md_parse_option): Add {no-}fix-4011-branch-bug option.
1998-06-29 13:38:34 +00:00