aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
1995-08-17* coff-sh.c (sh_relax_section): Cast value for used_by_bfd field to PTR, notKen Raeburn2-368/+198
coff_section_tdata pointer, since PTR is the real type of the field. * cofflink.c (_bfd_coff_read_internal_relocs): Ditto.
1995-08-17* configure: Add Makefile.tem to list of files to remove in trap handler.Ken Raeburn1-0/+10
1995-08-17 Add support for linking SPARC SunOS PIC compiled code.Ian Lance Taylor1-0/+52
* sunos.c (SPARC_PLT_PIC_WORD0): Define. (SPARC_PLT_PIC_WORD1, SPARC_PLT_PIC_WORD2): Define. (struct sunos_link_hash_entry): Add got_offset and plt_offset fields. (struct sunos_link_hash_table): Add dynamic_sections_created and dynamic_sections_needed fields. (sunos_link_hash_newfunc): Initialize new fields. (sunos_link_hash_table_create): Initialize new fields. (sunos_create_dynamic_sections): New static function, broken out of sunos_add_dynamic_symbols. (sunos_add_dynamic_symbols): Call sunos_create_dynamic_sections. (sunos_add_one_symbol): Call sunos_create_dynamic_sections. (bfd_sunos_size_dynamic_sections): Call sunos_scan_relocs before checking whether we need to set up the dynamic link information. Define __GLOBAL_OFFSET_TABLE if anything referred to it. (sunos_scan_std_relocs): Call sunos_create_dynamic_sections. Use plt_offset field; only put symbol in .plt if it is not defined by a regular object. (sunos_scan_ext_relocs): Likewise. Handle base relative relocs. (sunos_scan_dynamic_symbol): Store dynobj in local variable. (sunos_write_dynamic_symbol): Check plt_offset rather than checking whether symbol is in .plt section. If symbol is defined in a regular object file, use SPARC_PLT_PIC_WORD[012], and don't add a JMP_TBL reloc. (sunos_check_dynamic_reloc): Add contents and relocationp fields. If plt_offset is set, redirect relocation to PLT. If this is a base relative reloc, redirect relocation to GOT. Check dynamic_sections_needed field rather than whether dynobj is set. (sunos_finish_dynamic_link): Check dynamic_sections_needed field rather than whether dynobj is set. Don't die if .need and .rules sections were not created. * aoutx.h (howto_table_ext): Mark PC10, PC22, and JMP_TBL entries PC relative. Mark PC10 complain_overflow_dont. Mark PC22 and JMP_TBL complain_overflow_signed. (NAME(aout,final_link)): If info->shared is set, set DYNAMIC. (aout_link_input_section_std): Call check_dynamic_reloc for all relocs. Pass contents and &relocation. Don't warn about an undefined symbol until check_dynamic_reloc has been called. Don't warn about an undefined symbol for a base relative reloc. (aout_link_input_section_ext): Likewise. For a base relative reloc, always treat r_index as an index into the symbol table. * libaout.h (struct aout_backend_data): Add contents and relocation argument to check_dynamic_reloc entry point. (struct aoutdata): Add local_got_offsets field.
1995-08-17 * config/pa/tm-hppa.h (PROLOGUE_FIRSTLINE_OVERLAP): Define.Jeff Law2-6/+44
Yes, this dusty old macro is really the right thing to do when you've got a port which performs scheduling on prologues... Fixes latest mentor gdb PR.
1995-08-16 * scripttempl/armpe.sc: Always start code at 0x401000, evenSteve Chamberlain1-1/+7
1995-08-16 * dlltool.c (gen_exp_file): Fix RVA handling.Steve Chamberlain2-21/+22
(rva_s, rva_n): Delete.
1995-08-16 * binutils-all/nm.exp: Add setup_xfail for mips*-sony-bsd* forIan Lance Taylor1-0/+3
tests which fail on ECOFF targets.
1995-08-16* as.h (alloca): Use void* declaration on HP/UX.Ken Raeburn2-7/+12
1995-08-16 * gas/mri/mri.exp: Change hppa*-*-* expected failures to onlyIan Lance Taylor1-0/+3
expect failure for targets which use SOM.
1995-08-16 * lib/gas-defs.exp (run_dump_test): If the program to run does notIan Lance Taylor2-0/+8
exist, mark the test as untested.
1995-08-16 * binutils-all/objcopy.exp: Change i*86-*-linux xfail for simpleIan Lance Taylor2-1/+6
copy test to check for i*86-*-linuxaout* instead.
1995-08-16 * gas/mri/mri.exp: Add setup_xfail for i960 b.out targets forIan Lance Taylor2-0/+16
common test.
1995-08-16 * lib/gas-defs.exp (run_dump_test): Name the output file dump.o,Ian Lance Taylor1-22/+35
rather than using an implicit a.out.
1995-08-16Wed Aug 16 11:38:59 1995 steve chamberlain <sac@slash.cygnus.com>Steve Chamberlain2-1/+11
* scripttempl/armpe.sc: Always start code at 0x401000, even if -r. * ldwrite.c (strdup): New extern declaration. * ldgram.y (atype): New rule to clarify type parsing. * ldlang.c (init_os): Remove commented out code. (lang_size_sections): Set SEC_ALLOC and SEC_LOAD bits unless told not to by the link script.
1995-08-16 * config/tc-sparc.c (tc_gen_reloc): If PIC, only change PCREL_S2Ian Lance Taylor2-13/+102
to WPLT30 for an undefined or external symbol. Don't consider PC10 or PC22 to be a PC relative reloc when choosing between fx_addnumber and fx_offset.
1995-08-16 * gas/mri/for.s: Add nop to round out to four byte boundary.Ian Lance Taylor1-0/+11
* gas/mri/repeat.s: Likewise. * gas/mri/while.s: Likewise. * gas/mri/for.d: Expected added nop. * gas/mri/repeat.d: Likewise. * gas/mri/while.d: Likewise.
1995-08-16 * config/tc-z8k.c (md_number_to_chars): Don't do it here, callIan Lance Taylor1-1/+5
number_to_chars_bigendian. * config/tc-z8k.h (TARGET_BYTES_BIG_ENDIAN): Define.
1995-08-16 * configure.in: Only configure gdb.chill for particular targets.Stan Shebs2-4/+8
1995-08-16 * ldlang.c (lang_set_startof): New static function.Ian Lance Taylor2-9/+62
(lang_process): Call it.
1995-08-16 * expr.c (operand): Add support for .startof. and .sizeof. byIan Lance Taylor2-5/+47
using magic symbol names which the linker will recognize specially. * doc/as.texinfo: Take out note that .startof. and .sizeof. are not supported.
1995-08-16 * gas/mips/*.d: Change all test names to say MIPS.Ian Lance Taylor25-6/+3228
1995-08-16 * ldgram.y: Tweak casesymlist to avoid bison errors.Ian Lance Taylor2-2/+4
1995-08-16 * lexsup.c (parse_args): Accept -h as a synonym for --soname, forIan Lance Taylor2-3/+14
Solaris compatibility.
1995-08-16 * gdb.base/Makefile.in: Add action to .c.o transformationFred Fish12-313/+407
rule that generates a .ci file for each .o file and remove explicit .c.o rules except for callfuncs.o. * gdb.c++/Makefile.in: Add .cc.o transformation rule that generates a .ci file for each .o file and remove explicit .cc.o rules. (clean): Remove *.tmp *.ci files. (EXECUTABLES): Remove templ-info.exp. * gdb.base/compiler.c: New file. * gdb.c++/compiler.cc: New file * gdb.base/scope.exp: Source gdb.base/scope.ci. Change rs6000-*-* xfail for "print 'scope0.c'::filelocal_ro" and "print 'scope1.c'::filelocal" and "print 'scope1.c'::filelocal_bss" and "print 'scope1.c'::filelocal_ro" and "print 'scope1.c'::foo::funclocal" and "print 'scope1.c'::foo::funclocal_ro" and "print 'scope1.c'::bar::funclocal" and "print 'scope0.c'::filelocal_ro" and "print 'scope1.c'::filelocal at foo" and "print 'scope1.c'::filelocal_bss at foo" and "print 'scope1.c'::filelocal_ro at foo" and "print 'scope1.c'::foo::funclocal at foo" and "print 'scope1.c'::foo::funclocal_bss at foo" and "print 'scope1.c'::foo::funclocal_ro at foo" and "print 'scope1.c'::bar::funclocal at foo" and "print 'scope0.c'::filelocal_ro" and "print 'scope1.c'::filelocal" and "print 'scope1.c'::filelocal_bss" and "print 'scope1.c'::filelocal_ro" and "print 'scope1.c'::foo::funclocal" and "print 'scope1.c'::foo::funclocal_bss" and "print 'scope1.c'::foo::funclocal_ro" and "print 'scope1.c'::bar::funclocal" and "print 'scope1.c'::bar::funclocal_bss" to only be xfail'd when not compiled with gcc. Add rs6000-*-* xfail for "print 'scope0.c'::filelocal_bss before run" when compiled with gcc. (test_at_main): Add rs6000-*-* xfail for "print filelocal_ro in test_at_main" when compiled with gcc. * gdb.base/ptype.exp: Source gdb.base/ptype.ci. Add rs6000-*-aix* xfail for "whatis unnamed typedef'd enum (compiler bug in IBM's xlc)" and "ptype t_char_array", not compiled with gcc. * gdb.base/list.exp (test_list_function): Add rs6000-*-* xfail for "list foo (in include file)" when gcc compiled. * gdb.base/funcargs.exp: Source gdb.base/funcargs.ci (integral_args): Add rs6000-*-* xfail for "run to call0a" if not compiled with gcc. (unsigned_integral_args): Add rs6000-*-* xfail for "run to call1a" if not compiled with gcc. (float_and_integral_args): Add rs6000-*-* xfail for "run to call2a" if not compiled with gcc and for "continue to call2b" for any compiler. Add rs6000-*-* xfail to "print f1 after run to call2a" for gcc compiled. (discard_and_shuffle): Add rs6000-*-* xfail for "run to call6a". (shuffle_round_robin): Add rs6000-*-* xfail for "backtrace from call7a" if not compiled with gcc. Add rs6000-*-* xfail for "backtrace from call7b" if compiled with gcc. (call_after_alloca): Add rs6000-*-* xfail for "print c in call_after_alloca" and "print s in call_after_alloca" and "backtrace from call_after_alloca_subr" if not compiled with gcc. (localvars_in_indirect_call): Add rs6000-*-* xfail for "print c in localvars_in_indirect_call" and "print c in localvars_in_indirect_call" and "backtrace in indirectly called function" and "stepping into indirectly called function" if not compiled with gcc. (localvars_after_alloca): Add rs6000-*-* xfail for "print c after runto localvars_after_alloca" and "print s after runto localvars_after_alloca" and "print i after runto localvars_after_alloca" and "print l after runto localvars_after_alloca" for all compilers. * gdb.base/whatis.exp: Source gdb.base/whatis.ci rather than whatis-info.exp. * gdb.base/opaque.exp: Source gdb.base/opaque0.ci rather than opaque-info.exp. Setup rs6000-*-* xfail for "ptype on opaque struct pointer (statically)" and "ptype on opaque struct pointer (dynamically)" when not compiled with gcc. * gdb.base/callfuncs.exp: Source gdb.base/callfuncs.ci rather than callf-info.exp. (do_function_calls): Add clear_xfail for rs6000-*-* for "p t_float_values2(3.14159,float_val2)". Seems to work fine there, both with xlc and gcc. Need to find out what it is doing right and fix other platforms. * gdb.base/callfuncs.exp: Add rs6000-*-* xfail for "call inferior func with struct - returns int", "call inferior func with struct - returns long", "call inferior func with struct - returns float", "call inferior func with struct - returns double", "call inferior func with struct - returns char *", but only if not gcc compiled (presumes xlc compiled). Change rs6000-*-* xfails for "call inferior func with struct - returns char" and " call inferior func with struct - returns short" to only xfail if not using gcc. (clean mostlyclean): Remove *.ci and *.tmp files. * gdb.c++/templates.exp: Source gdb.c++/templates.ci rather than templ-info.exp. * gdb.base/langs.exp: Source gdb.base/langs.ci. Add rs6000-*-* xfail for "up to foo in langs.exp" "up to cppsub_ in langs.exp" and "up to fsub in langs.exp" when not gcc compiled.
1995-08-16all v2.2 && v2.3 autoconf-generated configure scripts updated toJason Molenda1-3/+3
autoconf v2.4 (not a very big change). fixes PR 7695.
1995-08-15 * ld-scripts/script.exp: Split script verification into a proc.Ian Lance Taylor3-0/+25
Add simple test of MRI script. * ld-scripts/scriptm.t: New file.
1995-08-15 * ldgram.y (YYDEBUG): If not defined, define as 1.Ian Lance Taylor2-8/+56
(CASE, EXTERN, START): New tokens. (mri_script_command): Handle CASE, EXTERN, INCLUDE, START. (casesymlist): New nonterminal. (extern_name_list): New nonterminal. * ldlex.l: Accept lower case trailing base specifiers. Don't ignore the first digit when the base is a suffix. Accept many EXPRESSION state tokens in MRI state. Support MRI continuation lines and MRI semicolon comments. Accept all MRI keywords in lower case. Add CASE, EXTERN, and START MRI keywords.
1995-08-15 * gas/mri/for.d, gas/mri/for.s: New test.Ian Lance Taylor10-0/+166
* gas/mri/if.d, gas/mri/if.s: New test. * gas/mri/repeat.d, gas/mri/repeat.s: New test. * gas/mri/while.d, gas/mri/while.s: New test. * gas/mri/mri.exp: Run the new tests.
1995-08-15 * config/tc-m68k.c (md_pseudo_table): Add MRI structured controlIan Lance Taylor1-1/+0
directives: if, if.b, if.w, if.l, else, else.s, else.l, endi, break, break.s, break.l, next, next.s, next.l, for, for.b, for.w, for.l, endf, repeat, until, until.b, until.w, until.l, while, while.b, while.w, while.l, endw. (enum mri_control_type): Define. (struct mri_control_info): Define. (mri_control_stack): New static variable. (mri_control_index): New static variable. (mri_control_label): New static function. (push_mri_control, pop_mri_control): New static functions. (parse_mri_condition): New static function. (parse_mri_control_operand): New static function. (swap_mri_condition, reverse_mri_condition): New static functions. (build_mri_control_operand): New static function. (parse_mri_control_expression): New static function. (s_mri_if, s_mri_else, s_mri_endi): New static functions. (s_mri_break, s_mri_next): New static functions. (s_mri_for, s_mri_endf): New static functions. (s_mri_repeat, s_mri_until): New static functions. (s_mri_while, s_mri_endw): New static functions. * gasp.c (mrikinfo): Remove IF. * expr.c (get_symbol_end): Accept \001 as part of a name.
1995-08-15 * remote.c (remote_write_bytes): Chop up large transfers.Steve Chamberlain2-25/+39
1995-08-15* write.c (write_contents): Always do it the BFD_FAST_SECTION_FILL way.Ken Raeburn1-0/+6
Reformat and reindent that code to GNU standards. (BFD_FAST_SECTION_FILL): Don't define.
1995-08-15Departure of gcc.patchStan Shebs1-1/+0
1995-08-15 * gcc.patch: Remove, relevant only to long-ago versions of GCC.Stan Shebs2-80/+8
1995-08-14 * blokcframe.c (inside_main_func): Add comments.Kung Hsu1-0/+2
1995-08-14 * gasp.c (do_align, get_any_string): Mark as static.Ian Lance Taylor2-5/+8
(do_assigna, do_assignc, new_file): Likewise.
1995-08-14 * blockframe.c (inside_main_func): Fix a typo in previous change.Kung Hsu2-1/+3
1995-08-14 * config/tc-m68k.c (s_reg): Rename local op to rop to avoidIan Lance Taylor2-18/+21
confusion with macro op.
1995-08-14 * gas/mri/expr.d: Permit leading zeroes, in case we're using aIan Lance Taylor1-0/+3
64-bit BFD.
1995-08-14 * config/sparc/tm-sparclite.h: Define FRAME_CHAIN_VALID_ALTERNATE.Kung Hsu1-0/+2
1995-08-14 * config/sparc/tm-sparclite.h: Define FRAME_CHAIN_VALID_ALTERNATE.Kung Hsu2-104/+97
* blockframe.c (inside_main_func): If main func addr range not set, try to set it now.
1995-08-14 * config/tc-hppa.c (md_apply_fix): Don't try to apply BEGIN_BRTABJeff Law1-0/+5
or END_BRTAB fixups.
1995-08-14 * gasp/mri/*: New tests.Ian Lance Taylor18-10/+230
* gasp/gasp.exp: Run them. Also, clean up the test names used in pass and fail.
1995-08-14 * gasp.c (strip_comments): Comment out; it's not used.Ian Lance Taylor2-207/+355
(do_end): Add parameter. In MRI mode, print it out. (do_irp): New static function. (sub_actual): Change parameter m to formal_hash, changing type from macro_entryh * to hash_table *. (macro_expand_body): New static function, broken out of macro_expand. (macro_expand): Call macro_expand_body. (K_*): Fully parenthesize. (K_IRP, K_IRPC): Define. (mrikinfo): Add IRP and IRPC. (process_pseudo_op): In MRI mode, print out END pseudo-op. Pass line to do_end. Handle K_IRP and K_IRPC.
1995-08-14 * config/tc-m68k.c (s_opt): Reset *input_line_pointer even if weIan Lance Taylor1-0/+2
don't do anything with the option.
1995-08-14 * aoutx.h (NAME(aout,machine_type)): Handle a machine ofIan Lance Taylor1-0/+3
bfd_mach_sparc or bfd_mach_sparc64.
1995-08-14 * elflink.h (elf_link_add_object_symbols): If a symbol is a weakIan Lance Taylor3-19/+84
definition, add it to the dynamic symbol table if any dynamic object mentions it. If we do add it, make sure we add the corresponding real symbol. (elf_adjust_dynamic_symbol): Adjust a weak defined symbol which we put in the dynamic symbol table, even if no regular object refers to it. * elf32-i386.c (elf_i386_check_relocs): When creating a shared library, don't allocate space for a PC relative reloc against a local symbol. * elf32-m68k.c (elf_m68k_check_relocs): Likewise. * elf32-sparc.c (elf32_sparc_check_relocs): Likewise. * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Change assertion to accept symbol with weakdef set. * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Likewise. * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Likewise. * elf32-m68k.c (elf_m68k_relocate_section): When creating a shared libary, don't copy over a PC relative reloc against a local symbol. * elf32-sparc.c (elf32_sparc_relocate_section): Likewise. PR 7711.
1995-08-13 * frags.c (frag_align): Handle absolute_section.Ian Lance Taylor2-0/+10
* write.c (record_alignment): Likewise.
1995-08-13fix up aug 8 log entryKen Raeburn1-2/+2
1995-08-13 * som.h (R_HPPA_BEGIN_BRTAB): Define.Jeff Law1-0/+6
(R_HPPA_END_BRTAB): Likewise. * som.c (som_write_fixups): Handle R_BEGIN_BRTAB and R_END_BRTAB. More PA optimization infrastructure.
1995-08-13 * gas/sh/basic.exp: Update now that we know the rightJeff Law2-4/+11
bit patters for the new sts instructions.