Commit Graph

45543 Commits

Author SHA1 Message Date
Alan Modra 16bc1b5f24 daily update 2004-10-05 00:00:06 +00:00
gdbadmin 5dedc05d39 *** empty log message *** 2004-10-05 00:00:02 +00:00
Eric Christopher 04ca870341 2004-10-04 Eric Christopher <echristo@redhat.com>
* config/tc-mips.c (md_apply_fix3): Remove erroneous assert.
2004-10-04 23:25:28 +00:00
H.J. Lu bcaa7b3eb9 ld/
2004-10-04  H.J. Lu  <hongjiu.lu@intel.com>

	* NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
	--sort-section name|alignment.

	* ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
	--sort-section name|alignment.

	* ld.h (sort_type): New enum.
	(wildcard_spec): Change the type of `sorted' to sort_type.

	* ldgram.y (SORT): Removed.
	(SORT_BY_NAME): Added.
	(SORT_BY_ALIGNMENT): Added.
	(wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
	SORT_BY_ALIGNMENT.
	(input_section_spec_no_keep): Updated `sorted'.
	(statement): Replace SORT with SORT_BY_NAME.

	* ldlang.c (compare_section): New function to compare 2
	sections with different sorting schemes.
	(wild_sort): Updated. Use compare_section.
	(update_wild_statements): New function.
	(lang_process): Call update_wild_statements before
	map_input_to_output_sections.

	* ldlex.l (SORT_BY_NAME): New.
	(SORT_BY_ALIGNMENT): New.
	(SORT): Return SORT_BY_NAME.

	* ldmain.c (sort_section): New. Defined.
	(main): Initialize it to none.

	* lexsup.c (option_values): Add OPTION_SORT_SECTION.
	(ld_options): Add an entry for OPTION_SORT_SECTION.
	(parse_args): Handle OPTION_SORT_SECTION.

	* mri.c (mri_draw_tree): Updated `sorted'.

ld/testsuite/

2004-10-04  H.J. Lu  <hongjiu.lu@intel.com>

	* ld-scripts/sort.exp: New file for section sorting tests.
	* ld-scripts/sort_b_a.d: Likewise
	* ld-scripts/sort_b_a.s: Likewise
	* ld-scripts/sort_b_a.t: Likewise
	* ld-scripts/sort_b_a_a-1.d: Likewise
	* ld-scripts/sort_b_a_a-2.d: Likewise
	* ld-scripts/sort_b_a_a-3.d: Likewise
	* ld-scripts/sort_b_a_a.t: Likewise
	* ld-scripts/sort_b_a_n-1.d: Likewise
	* ld-scripts/sort_b_a_n-2.d: Likewise
	* ld-scripts/sort_b_a_n-3.d: Likewise
	* ld-scripts/sort_b_a_n.t: Likewise
	* ld-scripts/sort_b_n.d: Likewise
	* ld-scripts/sort_b_n.s: Likewise
	* ld-scripts/sort_b_n.t: Likewise
	* ld-scripts/sort_b_n_a-1.d: Likewise
	* ld-scripts/sort_b_n_a-2.d: Likewise
	* ld-scripts/sort_b_n_a-3.d: Likewise
	* ld-scripts/sort_b_n_a.t: Likewise
	* ld-scripts/sort_b_n_n-1.d: Likewise
	* ld-scripts/sort_b_n_n-2.d: Likewise
	* ld-scripts/sort_b_n_n-3.d: Likewise
	* ld-scripts/sort_b_n_n.t: Likewise
	* ld-scripts/sort_n_a-a.s: Likewise
	* ld-scripts/sort_n_a-b.s: Likewise
	* ld-scripts/sort_no-1.d: Likewise
	* ld-scripts/sort_no-2.d: Likewise
	* ld-scripts/sort_no.t: Likewise
2004-10-04 16:45:51 +00:00
Jakub Jelinek a4f5ad884e * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
* scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
	argument.
	(DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
	and . as second argument.
	(GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
	* ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
	(fold_binary): Add it here.  Insert padding to make relro_end
	COMMONPAGESIZE bytes aligned.  For DATA_SEGMENT_ALIGN in
	exp_dataseg_relro_adjust phase just use previously computed
	exp_data_seg.base.
	* ldlang.c (lang_size_sections): Set exp_data_seg.base for
	relro_adjust here.  Call lang_size_sections_1 once more if there
	was too big padding at DATA_SEGMENT_RELRO_END.
	* ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
2004-10-04 13:41:15 +00:00
Alan Modra daab19f765 daily update 2004-10-04 00:00:05 +00:00
gdbadmin 6cc98c3854 *** empty log message *** 2004-10-04 00:00:02 +00:00
Daniel Jacobowitz dd5e69327d * dwarf2read.c (read_subrange_type): Add comment for variable
sized arrays.
2004-10-03 16:16:01 +00:00
Paul N. Hilfinger e07c999f48 * gdb.texinfo (Filenames): Add Ada suffixes.
(Ada) New section.
2004-10-03 10:10:35 +00:00
Paul N. Hilfinger 7dc1ef8d9d * Makefile.in (.l.c): Modify rule for compatibility with recent
versions of flex, and remove most command-line options.
* ada-lex.l: Add %options line in place of -I -i and -s command-line
options.
2004-10-03 08:35:57 +00:00
Alan Modra a988509aa9 daily update 2004-10-03 00:00:06 +00:00
gdbadmin 4f04a2c088 *** empty log message *** 2004-10-03 00:00:04 +00:00
Paul N. Hilfinger 1f8173e6b8 Turn on initial Ada support (mainly expression evaluation).
* Makefile.in (SFILES): Remove ada-tasks.c.
(HFILES_NO_SRCDIR): Add ada-lang.h.
(COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
(YYOBJ): Add ada-exp.o.
(rule .l.c): Generalize to not mention ada.
* symtab.c: Include ada-lang.h.
(symbol_natural_name, symbol_demangled_name)
(symbol_search_name): Add Ada case.
2004-10-02 09:55:15 +00:00
H.J. Lu 7c1d09598d 2004-10-01 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-ppc.c (md_apply_fix3): Call S_SET_THREAD_LOCAL for
	TLS relocations.
	* config/tc-s390.c (md_apply_fix3): Likewise.
	* config/tc-sparc.c (md_apply_fix3): Likewise.
2004-10-02 00:18:31 +00:00
Alan Modra 007807770d daily update 2004-10-02 00:00:06 +00:00
gdbadmin 0547211f33 *** empty log message *** 2004-10-02 00:00:03 +00:00
H.J. Lu d2c252d75a 2004-10-01 H.J. Lu <hongjiu.lu@intel.com>
* ld-powerpc/tls.s: Don't set tls type for undefined syms.
	* ld-powerpc/tls32.s: Likewise.
	* ld-powerpc/tlstoc.s: Likewise.
	* ld-s390/tlsbin.s: Likewise.
	* ld-s390/tlsbin_64.s: Likewise.
	* ld-s390/tlsbinpic.s: Likewise.
	* ld-s390/tlsbinpic_64.s: Likewise.
	* ld-s390/tlspic1.s: Likewise.
	* ld-s390/tlspic1_64.s: Likewise.
	* ld-sparc/tlssunbin32.s: Likewise.
	* ld-sparc/tlssunbinpic32.s: Likewise.
	* ld-sparc/tlssunnopic32.s: Likewise.
	* ld-sparc/tlssunpic32.s: Likewise.
2004-10-01 20:11:40 +00:00
Andrew Cagney 3f3db24856 2004-10-01 Andrew Cagney <cagney@gnu.org>
* Makefile.in (COMMON_OBS): Add inf-child.o.
	* config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
	* config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
	* config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
	* config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
	* config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
	* config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
	* config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
	* config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
	* config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
	* config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
	* config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
	* config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
	* config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
2004-10-01 17:26:14 +00:00
Andrew Cagney cb85a95394 2004-10-01 Andrew Cagney <cagney@gnu.org>
* target.c (xfer_using_stratum): Change return type to LONGEST.
	On each iteration offset, readbuf and writebuf.
	* inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
	partial_length, and read/modify/write predicate, update comments.
	Pass buffer.word to ptrace write.
2004-10-01 16:12:26 +00:00
Nick Clifton 40a18ebd3a The patch below adds binutils support for the SHT_ARM_EXIDX, as defined by
the ARM EABI.
2004-10-01 12:59:42 +00:00
Nick Clifton 14127cc4f2 Fixes for the encoding and decoding of the PDP11's SOB instruction 2004-10-01 11:19:38 +00:00
Alan Modra 99f5fc1b75 * ld-s390/tlsbin.s: Set tls type for undefined syms.
* ld-s390/tlsbin_64.s: Likewise.
	* ld-s390/tlsbinpic.s: Likewise.
	* ld-s390/tlsbinpic_64.s: Likewise.
	* ld-s390/tlspic1.s: Likewise.
	* ld-s390/tlspic1_64.s: Likewise.
	* ld-sparc/tlssunbin32.s: Likewise.
	* ld-sparc/tlssunbinpic32.s: Likewise.
	* ld-sparc/tlssunnopic32.s: Likewise.
	* ld-sparc/tlssunpic32.s: Likewise.
2004-10-01 11:12:16 +00:00
Alan Modra 9a910d566c * ld-sparc/tlssunbin32.sd: Adjust for changed .dynamic location. 2004-10-01 11:11:28 +00:00
Nick Clifton f7bf754f1f PR 371
* ld-undefined/undefined.exp: Remove redundant XPASS specifications.
2004-10-01 10:49:08 +00:00
Paul N. Hilfinger 963a6417f4 First part of turning on initial Ada support.
* symfile.c (init_filename_language_table): Add extensions for
Ada.
* defs.h (enum language): Add language_ada.
* gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
* ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
(add_symbols_from_enclosing_procs): Make a no-op for now.
(ada_unqualified_name,add_angle_brackets,function_name_from_pc)
(extended_canonical_line_spec, find_sal_from_funcs_and_line)
(find_line_in_linetable, find_next_line_in_linetable)
(read_all_symtabs, is_plausible_func_for_line)
(adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
(is_runtime_sym_defined, check_size): Remove declaration.
(function_name_from_pc, ada_translate_error_message)
(ada_lookup_minimal_symbol): Remove definition.
(ada_add_block_symbols): Remove useless label.
* ada-lang.h (ada_maybe_exception_partial_symbol): Remove
useless declaration.
(ada_is_exception_sym): Likewise.
2004-10-01 10:23:09 +00:00
Nick Clifton b7c92712fa (TARGET_FORMAT): Remove LynxOS COFF definition. 2004-10-01 08:38:35 +00:00
Nick Clifton eb1ab0cfb1 fix spelling typo in ChangeLog entry 2004-10-01 08:30:37 +00:00
Alan Modra 65555e641f * config/tc-arc.c (tc_gen_reloc): Don't assume fixP->fx_addsy is an
asymbol *, instead use symbol_get_bfdsym.
2004-10-01 08:08:54 +00:00
Kazuhiro Inaoka 9b32d5267e 2004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
Add m32r-linux support.
        * configure.tgt: Add m32r*-*-linux*.
        * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
        and m32r-linux-tdep.c.
        (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
        * m32r-tdep.c: Move some definitions to m32r-tdep.h.
        * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
        m32r-linux-tdep.c.
        * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
        config/m32r/linux.mh, config/m32r/linux.mt,
        config/m32r/nm-linux.h: New files.
2004-10-01 07:29:34 +00:00
Alan Modra 73d14ad423 * ld-powerpc/tls.s (gd, ld): Set tls type for undefined syms.
* ld-powerpc/tls32.s (gd, ld): Likewise.
	* ld-powerpc/tlstoc.s (gd, ld): Likewise.
	* ld-powerpc/tlsso.r: Update.
	* ld-powerpc/tlsso32.r: Update.
	* ld-powerpc/tlstocso.r: Update.
2004-10-01 02:19:04 +00:00
Alan Modra 8935b81f1f * elf-bfd.h (struct eh_cie_fde): Add need_relative and
need_lsda_relative.
	* elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Set
	need_relative or need_lsda_relative if we are processing an
	offset for a reloc on a FDE initial loc or LSDA field
	respectively.
	(_bfd_elf_write_section_eh_frame): Test need_relative and
	need_lsda_relative in place of corresponding make_* field
	when deciding to use pc-relative encodings.
2004-10-01 00:51:37 +00:00
Joel Brobecker 2de118d36e * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
(mips32_fetch_instruction): Remove, unused.
2004-10-01 00:43:21 +00:00
Joel Brobecker a9fe69d1f7 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
conditions that will always be true.
2004-10-01 00:20:13 +00:00
Alan Modra 76a9da429a daily update 2004-10-01 00:00:04 +00:00
gdbadmin 36cf128e76 *** empty log message *** 2004-10-01 00:00:03 +00:00
Mark Kettenis ba0cd1113e * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
(vaxbsd_fetch_inferior_registers): Rename from
fetch_inferior_registers.  Make static.
(vaxbsd_store_inferior_registers): Rename from
store_inferior_registers.  Make static.
(_initialize_vaxbsd_nat): Construct and add target vector.
* config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
inftarg.o.  Add inf-child.o and inf-ptrace.o.
* config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
inftarg.o.  Add inf-child.o and inf-ptrace.o.
(NAT_FILE): Remove.
* config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
inftarg.o.  Add inf-child.o and inf-ptrace.o.
(NAT_FILE): Remove.
* Makefile.in (vaxbsd-nat.o): Update dependencies.
2004-09-30 21:04:35 +00:00
Mark Kettenis bc8ffc12f6 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
(m88kbsd_fetch_inferior_registers): Rename from
fetch_inferior_registers.  Make static.
(m88kbsd_store_inferior_registers): Rename from
store_inferior_registers.  Make static.
(_initialize_m88kbsd_nat): New prototype and function.
* config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
inftarg.o.  Add inf-child.o and inf-ptrace.o.
(NAT_FILE): Remove.
* Makefile.in (m88kbsd-nat.o): Update dependencies.
2004-09-30 20:52:59 +00:00
Andrew Cagney 2739459855 2004-09-30 Andrew Cagney <cagney@gnu.org>
* target.c (target_xfer_partial): New function.
	(target_read_memory_partial, target_write_memory_partial)
	(default_xfer_partial, target_read_partial, target_write_partial)
	(xfer_using_stratum): Use.
	(debug_to_xfer_partial): Delete function.
	(setup_target_debug): Do not override to_xfer_partial.
2004-09-30 20:36:27 +00:00
Mark Kettenis 74a4fe3270 * fork-child.c: Update copyright year. Fix coding style. 2004-09-30 20:15:39 +00:00
Mark Kettenis 982526a134 * defs.h (msavestring, mstrsave): Remove prototypes.
* utils.c (msavestring, mstrsave): Remove functions.
* objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
* solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
of mstrsave.
* source.c (find_and_open_source): Use xstrdup instead of
mstrsave.
2004-09-30 19:57:54 +00:00
Nick Clifton db8acf26ca emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate correct base
address for position independant executables.
pe-dll.c (pe_dll_fill_sections): Don't mark position independant executables
  as DLLs.
2004-09-30 17:19:19 +00:00
Nick Clifton 9fe0b840a9 (select_control_regs): Add mcf5249. 2004-09-30 17:08:50 +00:00
Paul Brook eeac373afe bfd/
* elf32-arm.h (bfd_elf32_arm_set_target_relocs): Handle "abs"
	target2 relocation type.
ld/
	* ld.texinfo: Document --target2=abs.
	* emulparms/armsymbian.sh (TARGET2_TYPE): Set.
ld/testsuite/
	* ld-arm/arm-elf.exp: Add test for --target2=abs.
	* ld-arm/arm-target2-abs.d: New file.
2004-09-30 17:03:53 +00:00
Andrew Cagney 56157dbefc Really delete inf_ptrace_xfer_memory! 2004-09-30 16:46:40 +00:00
H.J. Lu 7479dfd4de 2004-09-30 H.J. Lu <hongjiu.lu@intel.com>
PR 414
	* elflink.c (_bfd_elf_merge_symbol): Check TLS symbol.
2004-09-30 16:43:41 +00:00
Nick Clifton 0490e0164b Enable target-libgloss for crx-*-*. 2004-09-30 16:34:36 +00:00
Nick Clifton 0dd132b63c Apply Paul Brook's patch to implement armv6k instructions 2004-09-30 16:21:50 +00:00
Andrew Cagney 0779438dba 2004-09-30 Andrew Cagney <cagney@gnu.org>
* inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
	(inf_ptrace_xfer_memory): Delete.
	* target.c (target_xfer_partial_p, xfer_using_stratum): New.
	(target_read_memory, target_write_memory): Use xfer_using_stratum
	when target_xfer_partial_p.
	(debug_target): Move to start of file.
	(target_read_memory_partial, target_write_memory_partial): Use
	to_xfer_partial when target_xfer_partial_p.
2004-09-30 16:18:57 +00:00
Andrew Cagney f929a5791d 2004-09-30 Andrew Cagney <cagney@gnu.org>
* inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
	inf_ptrace_xfer_memory with equivalent code.
	* inftarg.c (child_xfer_partial): When performing a write, pass
	writebuf to child_xfer_memory.
2004-09-30 15:47:30 +00:00
Nick Clifton a737bd4d24 Use ISO C90 semantics 2004-09-30 15:40:06 +00:00