OSDN Git Service
Alan Modra [Fri, 8 Aug 2003 00:00:05 +0000 (00:00 +0000)]
daily update
Jason Eckhardt [Thu, 7 Aug 2003 19:20:45 +0000 (19:20 +0000)]
2003-08-07 Jason Eckhardt <jle@rice.edu>
* config/tc-i860.c (i860_check_label): New function.
* config/tc-i860.h (i860_check_label): New prototype.
(tc_check_label): Define macro as i860_check_label.
Alan Modra [Thu, 7 Aug 2003 08:38:11 +0000 (08:38 +0000)]
* elfxx-target.h: Remove PTR cast.
* targets.c (bfd_target): Make backend_data const void *.
* elf-bfd.h: Constify all occurrences of struct elf_backend_data.
* elf-m10300.c: Likewise.
* elf.c: Likewise.
* elf32-hppa.c: Likewise.
* elf32-i386.c: Likewise.
* elf32-m68hc1x.c: Likewise.
* elf32-ppc.c: Likewise.
* elf32-s390.c: Likewise.
* elf32-sh.c: Likewise.
* elf32-sh64.c: Likewise.
* elf32-sparc.c: Likewise.
* elf32-xtensa.c: Likewise.
* elf64-mips.c: Likewise.
* elf64-ppc.c: Likewise.
* elf64-s390.c: Likewise.
* elf64-sh64.c: Likewise.
* elf64-sparc.c: Likewise.
* elf64-x86-64.c: Likewise.
* elfcode.h: Likewise.
* elfcore.h: Likewise.
* elflink.c: Likewise.
* elflink.h: Likewise.
* elfxx-ia64.c: Likewise.
* elfxx-mips.c: Likewise.
* elfxx-mips.h: Likewise.
* elf.c (prep_headers): Remove useless check for null backend_data.
* bfd-in2.h: Regenerate.
Alan Modra [Thu, 7 Aug 2003 07:25:34 +0000 (07:25 +0000)]
* elf-bfd.h: Remove PARAMS macro. Replace PTR with void *.
(NAME): Use ## rather than CONCAT4 macro.
* elfcode.h: Remove one remaining PARAMS macro.
* elf-eh-frame.c: Convert to C90, remove unneeded casts and prototypes.
* elf-strtab.c: Likewise.
* elf-hppa.h: Likewise.
* elf32-hppa.h: Likewise.
* elf32-hppa.c: Likewise.
(elf32_hppa_add_symbol_hook): Delete.
(elf_backend_add_symbol_hook): Don't define.
* libhppa.h: Convert to C90. Replace INLINE with inline.
Jason Eckhardt [Thu, 7 Aug 2003 04:05:42 +0000 (04:05 +0000)]
2003-08-01 Jason Eckhardt <jle@rice.edu>
* config/tc-i860.c (s_align_wrapper): New function and prototype.
(md_pseudo_table): Change s_align_bytes to s_align_wrapper, remove
surrounding OBJ_ELF ifdef, and re-format slightly.
* doc/c-i860.texi: Document the special .align syntax available
in Intel mode.
Alan Modra [Thu, 7 Aug 2003 02:25:50 +0000 (02:25 +0000)]
Convert to C90.
Danny Smith [Thu, 7 Aug 2003 01:52:36 +0000 (01:52 +0000)]
* emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
Change second (cmdline) arg to lang_add_entry to FALSE.
(set_pe_subsystem): Change second arg to lang_add_entry to TRUE.
Alan Modra [Thu, 7 Aug 2003 00:00:05 +0000 (00:00 +0000)]
daily update
Jason Eckhardt [Wed, 6 Aug 2003 23:59:36 +0000 (23:59 +0000)]
gas:
2003-08-06 Jason Eckhardt <jle@rice.edu>
* config/tc-i860.c (i860_handle_align): New function.
* config/tc-i860.h (HANDLE_ALIGN): Define macro.
(MAX_MEM_FOR_RS_ALIGN_CODE): Define macro.
gas/testsuite:
2003-08-06 Jason Eckhardt <jle@rice.edu>
* gas/i860/dir-align01.{s,d}: New files.
* gas/i860/i860.exp: Execute the new test above.
Jason Eckhardt [Wed, 6 Aug 2003 19:53:19 +0000 (19:53 +0000)]
gas:
2003-08-06 Jason Eckhardt <jle@rice.edu>
* config/tc-i860.c (i860_process_insn): Check that instructions
with their dual-bit set are 8-byte aligned.
gas/testsuite:
2003-08-06 Jason Eckhardt <jle@rice.edu>
* gas/i860/dual02-err.l: Update expected error message.
* gas/i860/README.i860: Remove dual02-err from known failure list.
Alan Modra [Wed, 6 Aug 2003 12:23:37 +0000 (12:23 +0000)]
* elf64-ppc.c (ppc_stub_name): Tweak names for better readability.
(ppc64_elf_adjust_dynamic_symbol): Allow copy relocs against
function descriptors, but warn.
(ppc_build_one_stub): Remove a couple of vars. Move code creating
stub syms so that we can avoid a stub sym if we already have a
plt sym. Do not redefine an existing symbol.
(ppc64_elf_build_stubs): When --emit-stub-syms, print a symbol for
glink.
Nick Clifton [Wed, 6 Aug 2003 10:15:16 +0000 (10:15 +0000)]
Updated French translations
Nick Clifton [Wed, 6 Aug 2003 09:02:50 +0000 (09:02 +0000)]
Fix typo
Jason Eckhardt [Wed, 6 Aug 2003 04:37:10 +0000 (04:37 +0000)]
2003-08-05 Jason Eckhardt <jle@rice.edu>
* gas/i860/README.i860: Remove dual01 from the known failures.
Jason Eckhardt [Wed, 6 Aug 2003 04:31:58 +0000 (04:31 +0000)]
2003-08-05 Jason Eckhardt <jle@rice.edu>
* config/tc-i860.c (i860_process_insn): Don't handle dual-bit
setting during flop argument parsing. Instead, do it after
instruction is fully parsed.
Jason Eckhardt [Wed, 6 Aug 2003 02:19:05 +0000 (02:19 +0000)]
2003-08-04 Christian Groessler <chris@groessler.org>
Jason Eckhardt <jle@rice.edu>
* configure.tgt: Recognize new target i860-*-coff.
* Makefile.am (ALL_EMULATIONS): Add ecoff_i860.o.
(ecoff_i860.c): New rule.
* emulparams/coff_i860.sh: New file.
* scripttempl/i860coff.sc: New file.
* Makefile.in: Regenerate.
Alan Modra [Wed, 6 Aug 2003 01:27:11 +0000 (01:27 +0000)]
* elflink.c (_bfd_elf_create_dynamic_sections): Mark .dynbss with
SEC_LINKER_CREATED.
Alan Modra [Wed, 6 Aug 2003 00:00:05 +0000 (00:00 +0000)]
daily update
Jason Eckhardt [Tue, 5 Aug 2003 23:24:06 +0000 (23:24 +0000)]
2003-08-05 Jason Eckhardt <jle@rice.edu>
* doc/c-i860.texi: Mention that .dual, .enddual, and .atmp
directives are only available in Intel syntax mode.
Jason Eckhardt [Tue, 5 Aug 2003 23:02:50 +0000 (23:02 +0000)]
2003-08-05 Jason Eckhardt <jle@rice.edu>
* gas/i860/dir-intel01.{s,d}: New files.
* gas/i860/dir-intel02.{s,d}: New files.
* gas/i860/dir-intel03-err.{s,l}: New files.
* gas/i860/i860.exp: Execute the above new tests.
Jason Eckhardt [Tue, 5 Aug 2003 22:58:00 +0000 (22:58 +0000)]
2003-08-05 Jason Eckhardt <jle@rice.edu>
* config/tc-i860.c (s_dual): Accept .dual directive only in
the Intel syntax mode.
(s_enddual): Likewise for .enddual.
(s_atmp): Likewise for .atmp.
Daniel Jacobowitz [Tue, 5 Aug 2003 16:24:12 +0000 (16:24 +0000)]
* elf32-arm.h (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
(elf32_arm_final_link_relocate, elf32_arm_relocate_section): Use it.
Alan Modra [Tue, 5 Aug 2003 14:40:54 +0000 (14:40 +0000)]
* objcopy.c: Remove unnecessary prototypes and casts.
* objdump.c: Remove unnecessary casts.
* readelf.c: Convert to C90. Remove unnecessary prototypes and casts.
(get_osabi_name): Move so we don't need a forward declaration.
Nick Clifton [Tue, 5 Aug 2003 09:39:31 +0000 (09:39 +0000)]
Add new Dutch translation.
Nick Clifton [Tue, 5 Aug 2003 08:25:17 +0000 (08:25 +0000)]
Detect and issue a warning message if the line number table could not be read.
Alan Modra [Tue, 5 Aug 2003 00:00:06 +0000 (00:00 +0000)]
daily update
Alan Modra [Mon, 4 Aug 2003 14:29:34 +0000 (14:29 +0000)]
* objdump.c (include_paths, include_path_count): New vars.
(usage): Describe --include.
(long_options): Add "include".
(add_include_path): New function.
(struct print_file_list): Make filename const. Add modname.
(try_print_file_open, update_source_path): New functions.
(show_line): Use them.
(main): Handle 'I' option. Don't check for NULL xrealloc arg.
Alan Modra [Mon, 4 Aug 2003 12:03:49 +0000 (12:03 +0000)]
* config/tc-i386.c (i386_intel_operand): Always call i386_index_check
for memory operands. Pass the full operand_string to i386_index_check.
Nick Clifton [Mon, 4 Aug 2003 11:32:52 +0000 (11:32 +0000)]
Prefix .gnu.warning section messages with "warning: ".
Alan Modra [Mon, 4 Aug 2003 09:39:46 +0000 (09:39 +0000)]
* elfcode.h: Convert to C90, remove unneeded casts and prototypes.
* elfcore.h: Likewise.
* elflink.c: Likewise.
* elflink.h: Likewise.
* elf.c (sym_is_global): Remove INLINE.
(align_file_position): Replace INLINE with inline.
* elfcode.h (elf_swap_dyn_in, elf_swap_dyn_out): Remove INLINE.
(elf_file_p): Replace INLINE with inline.
Alan Modra [Mon, 4 Aug 2003 04:01:39 +0000 (04:01 +0000)]
* emultempl/elf32.em (output_rel_find): Add "isdyn" param. Put
.rel.dyn before other reloc sections. Don't stop looking for reloc
sections on finding one that isn't allocated. Match .rel even when
placing .rela and vice versa, when setting last_rel and
last_rel_alloc for the first time. If no reloc sections in script,
prefer allocated section over non-alloc.
(gld${EMULATION_NAME}_place_orphan): Handle orphan .rel.dyn.
Jason Eckhardt [Mon, 4 Aug 2003 02:45:05 +0000 (02:45 +0000)]
2003-08-03 Jason Eckhardt <jle@rice.edu>
* gas/i860/*.d: Prefix name with "i860".
Jason Eckhardt [Mon, 4 Aug 2003 02:23:49 +0000 (02:23 +0000)]
2003-08-03 Jason Eckhardt <jle@rice.edu>
* gas/i860/dual01.{s,d}: New files.
* gas/i860/dual02-err.{s,l}: New files.
* gas/i860/dual03.{s,d}: New files.
* gas/i860/i860.exp: Execute the above new tests.
* gas/i860/README.i860: Update.
Alan Modra [Mon, 4 Aug 2003 00:00:06 +0000 (00:00 +0000)]
daily update
Alan Modra [Sun, 3 Aug 2003 00:00:05 +0000 (00:00 +0000)]
daily update
Kaz Kojima [Sat, 2 Aug 2003 13:46:44 +0000 (13:46 +0000)]
* elf32-sh.c (sh_elf_check_relocs): Don't set DF_TEXTREL here.
* ld-sh/shared-2.d, ld-sh/textrel1.s, ld-sh/textrel2.s: New test.
Alan Modra [Sat, 2 Aug 2003 11:34:30 +0000 (11:34 +0000)]
Adjust for objdump -d change.
Jason Eckhardt [Sat, 2 Aug 2003 04:27:50 +0000 (04:27 +0000)]
2003-08-01 Jason Eckhardt <jle@rice.edu>
* gas/i860/README.i860: New file.
Jason Eckhardt [Sat, 2 Aug 2003 03:03:52 +0000 (03:03 +0000)]
2003-08-01 Jason Eckhardt <jle@rice.edu>
* config/tc-i860.c: Remove SYNTAX_SVR4 macro and occurrences.
(target_intel_syntax): Declare variable.
(OPTION_INTEL_SYNTAX): Declare macro.
(md_longopts): Add option -mintel-syntax.
(md_parse_option): Set target_intel_syntax.
(md_show_usage): Add -mintel-syntax usage.
(md_begin): Set reg_prefix based on target_intel_syntax.
(i860_process_insn): Skip register prefix only if there is one.
Parse relocatable expressions in either Intel or AT&T syntax based
on target_intel_syntax instead of the SYNTAX_SVR4 macro.
* doc/c-i860.texi: Document -mintel-syntax option and give blurb
about the differences in syntax.
Nathanael Nerode [Sat, 2 Aug 2003 02:00:38 +0000 (02:00 +0000)]
Merge from gcc:
2003-08-01 Matt Kraai <kraai@alumni.cmu.edu>
* Makefile.tpl (check, check-c++): Express dependencies using
dependencies rather than commands.
* Makefile.in: Regenerate.
2003-07-31 Geoffrey Keating <geoffk@apple.com>
* Makefile.tpl (libsubdir): Use gcc instead of gcc-lib.
* Makefile.in: Update.
Alan Modra [Sat, 2 Aug 2003 00:00:06 +0000 (00:00 +0000)]
daily update
H.J. Lu [Fri, 1 Aug 2003 22:46:16 +0000 (22:46 +0000)]
2003-08-01 H.J. Lu <hongjiu.lu@intel.com>
* elfxx-ia64.c (get_got): Align the .got section at 8 bytes.
H.J. Lu [Fri, 1 Aug 2003 22:42:26 +0000 (22:42 +0000)]
2003-08-01 H.J. Lu <hongjiu.lu@intel.com>
* elfxx-ia64.c (elfNN_ia64_finish_dynamic_symbol): Use
ElfNN_External_Rela instead of Elf64_External_Rela.
Andrew Cagney [Fri, 1 Aug 2003 21:35:02 +0000 (21:35 +0000)]
2003-08-01 Andrew Cagney <cagney@redhat.com>
* configure.in (noconfigdirs): Do not add GDB when m32r-*-*.
* configure: Ditto.
Nick Clifton [Fri, 1 Aug 2003 08:35:04 +0000 (08:35 +0000)]
Add code to catch obsolete configurations and warn about them unless
--enable-obsolete is used. Use this to mark vax-vms port as obsolete.
Alan Modra [Fri, 1 Aug 2003 03:48:55 +0000 (03:48 +0000)]
* config/tc-msp430.c (msp430_srcoperand): Extend 'push' bug workaround
to all arches.
Alan Modra [Fri, 1 Aug 2003 00:00:05 +0000 (00:00 +0000)]
daily update
Alan Modra [Thu, 31 Jul 2003 14:38:15 +0000 (14:38 +0000)]
* elf32-ppc.c (ppc_elf_install_value): Tidy.
(ppc_elf_relax_section): Remove dead code. Remove unnecessary casts.
Formatting.
* elfxx-target.h: Remove PARAMS macro. Formatting.
Alan Modra [Thu, 31 Jul 2003 14:34:13 +0000 (14:34 +0000)]
* elf.c (bfd_section_from_r_symndx): Test for SHN_UNDEF.
* elf64-ppc.c (get_fdh): New function, split out from
ppc64_elf_edit_opd.
(ppc64_elf_check_relocs): Use get_fdh.
(func_desc_adjust): Likewise. Tidy.
(ppc64_elf_edit_opd): Tighten reloc checks. Free local_syms on error
exit. Use get_fdh. Account for superfluous dynamic relocs.
(ppc64_elf_relocate_section): Warning fix.
Alan Modra [Thu, 31 Jul 2003 00:00:06 +0000 (00:00 +0000)]
daily update
Jason Eckhardt [Wed, 30 Jul 2003 21:37:35 +0000 (21:37 +0000)]
2003-07-30 Jason Eckhardt <jle@rice.edu>
* coff-i860.c: Convert to ISO C90. Remove superflous prototypes.
Jason Eckhardt [Wed, 30 Jul 2003 21:10:12 +0000 (21:10 +0000)]
2003-07-30 Jason Eckhardt <jle@rice.edu>
* i860-dis.c: Convert to ISO C90. Remove superflous prototypes.
Joern Rennecke [Wed, 30 Jul 2003 20:34:26 +0000 (20:34 +0000)]
* config/tc-sh.c (md_assemble): For branches, check & update
valid_arch here.
Jason Eckhardt [Wed, 30 Jul 2003 20:24:55 +0000 (20:24 +0000)]
bfd:
2003-07-30 Jason Eckhardt <jle@rice.edu>
* elf32-i860.c: Convert to ISO C90. Remove superflous prototypes.
gas:
2003-07-30 Jason Eckhardt <jle@rice.edu>
* config/tc-i860.c: Convert to ISO C90.
DJ Delorie [Wed, 30 Jul 2003 20:12:58 +0000 (20:12 +0000)]
* configure.in: Enable libgcj for darwin.
* configure: Rebuild.
Rainer Orth [Wed, 30 Jul 2003 17:21:52 +0000 (17:21 +0000)]
* read.c (s_space): Revert 2003-07-28 change.
Nick Clifton [Wed, 30 Jul 2003 15:53:12 +0000 (15:53 +0000)]
Updated Romanian translation
Alan Modra [Wed, 30 Jul 2003 14:11:03 +0000 (14:11 +0000)]
* config/obj-elf.c (obj_elf_change_section): Allow "x" for .note*.
Alan Modra [Wed, 30 Jul 2003 03:54:15 +0000 (03:54 +0000)]
* objdump.c: Remove unnecessary prototypes.
(disassemble_bytes): Add rel_offset parameter. Simplify reloc skipping
code, and print relocs when dump_dynamic_reloc_info.
(disassemble_data): Read and handle dynamic relocs. Correct reloc
skip code. Formatting.
(dump_bfd): Don't dump dynamic relocs when disassembling.
Kaz Kojima [Wed, 30 Jul 2003 02:22:07 +0000 (02:22 +0000)]
* emulparams/shelf.sh (OTHER_SECTIONS): Don't include .stack
section for shared library.
* emulparams/shelf32.sh (OTHER_SECTIONS): Likewise.
* emulparams/shelf64.sh (OTHER_SECTIONS): Likewise.
Alan Modra [Wed, 30 Jul 2003 02:15:07 +0000 (02:15 +0000)]
* elf-hppa.h (elf_hppa_relocate_section): Look up dyn_h for undefweak.
* elf64-hppa.c (elf64_hppa_finalize_dlt): Check h->root.type.
Alan Modra [Wed, 30 Jul 2003 02:08:06 +0000 (02:08 +0000)]
* elf.c: Convert to C90, remove unnecessary prototypes and casts.
Replace PTR with void *. Formatting.
(_bfd_elf_assign_file_position_for_section): Remove INLINE.
(make_mapping): Likewise.
Nathanael Nerode [Wed, 30 Jul 2003 01:35:07 +0000 (01:35 +0000)]
* mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
Alan Modra [Wed, 30 Jul 2003 00:00:05 +0000 (00:00 +0000)]
daily update
Ben Elliston [Tue, 29 Jul 2003 23:44:03 +0000 (23:44 +0000)]
* MAINTAINERS: Remove self as M88k maintainer. Future M88k
maintenance defaults to the blanket write privilege maintainers.
Michael Snyder [Tue, 29 Jul 2003 21:05:31 +0000 (21:05 +0000)]
2003-07-18 Michael Snyder <msnyder@redhat.com>
* include/opcode/h8sx.h (DO_MOVA1, DO_MOVA2): Reformatting.
Stephane Carrez [Tue, 29 Jul 2003 20:17:17 +0000 (20:17 +0000)]
* scripttempl/elfm68hc12.sc: Add gcc_except_table.
* scripttempl/elfm68hc11.sc: Likewise.
Michael Meissner [Tue, 29 Jul 2003 17:09:00 +0000 (17:09 +0000)]
Update meissner email address
Nick Clifton [Tue, 29 Jul 2003 15:40:37 +0000 (15:40 +0000)]
Update to Iso C.
Jakub Jelinek [Tue, 29 Jul 2003 14:02:55 +0000 (14:02 +0000)]
* ld-elfvsb/elf-offset.ld: Add .rel.toc, .rela.toc and .toc
sections.
--- ld/testsuite/ld-elfvsb/elf-offset.ld.jj 2003-05-19 17:12:47.
000000000 -0400
+++ ld/testsuite/ld-elfvsb/elf-offset.ld 2003-07-29 05:39:34.
000000000 -0400
@@ -46,6 +46,8 @@ SECTIONS
}
.rel.got : { *(.rel.got) }
.rela.got : { *(.rela.got) }
+ .rel.toc : { *(.rel.toc) }
+ .rela.toc : { *(.rela.toc) }
.rel.ctors : { *(.rel.ctors) }
.rela.ctors : { *(.rela.ctors) }
.rel.dtors : { *(.rel.dtors) }
@@ -111,6 +113,7 @@ SECTIONS
KEEP (*(.dtors))
}
.got : { *(.got.plt) *(.got) }
+ .toc : { *(.toc) }
.dynamic : { *(.dynamic) }
/* We want the small data sections together, so single-instruction offsets
can access them all, and initialized data all before uninitialized, so
Jakub Jelinek [Tue, 29 Jul 2003 08:29:56 +0000 (08:29 +0000)]
* ppc-opc.c (insert_mbe, extract_mbe): Shift 1L instead of 1 up.
Nick Clifton [Tue, 29 Jul 2003 07:06:08 +0000 (07:06 +0000)]
Remove empty .text disassembly
Alan Modra [Tue, 29 Jul 2003 06:55:34 +0000 (06:55 +0000)]
* config/tc-sh.c (tc_gen_reloc): Test for R_SH_IND12W only when ELF.
Alan Modra [Tue, 29 Jul 2003 06:53:41 +0000 (06:53 +0000)]
* ld-powerpc/tlsso.r: Update.
* ld-powerpc/tlstocso.r: Update.
Alan Modra [Tue, 29 Jul 2003 06:48:30 +0000 (06:48 +0000)]
* config/tc-ppc.c (md_apply_fix3): Fix check for lq insns.
Alan Modra [Tue, 29 Jul 2003 06:47:10 +0000 (06:47 +0000)]
* elf64-ppc.c (func_desc_adjust): Give linker created function
descriptor symbols a size and type.
(ppc64_elf_relocate_section): Correct lq insn test.
Eric Christopher [Tue, 29 Jul 2003 06:42:51 +0000 (06:42 +0000)]
2003-07-28 Eric Christopher <echristo@redhat.com>
* elf32-ppc.c (R_PPC_RELAX32): New relocation.
(ppc_elf_install_value): New function.
(ppc_elf_sort_rela): Remove.
(ppc_elf_relax_section): Rewrite. Remove old relaxation
and replace with out of range branch stubs.
(ppc_elf_relocate_section): Handle R_PPC_RELAX32.
2003-07-28 Eric Christopher <echristo@redhat.com>
* ppc.h (R_PPC_RELAX32): New. Fake relocation.
Nick Clifton [Tue, 29 Jul 2003 06:26:23 +0000 (06:26 +0000)]
Update expected output regexps to include .eh_frame section.
Alexandre Oliva [Tue, 29 Jul 2003 06:18:40 +0000 (06:18 +0000)]
* elf-m10300.c (mn10300_elf_relax_section): Take symbol hash table
from input_bfd.
H.J. Lu [Tue, 29 Jul 2003 02:03:33 +0000 (02:03 +0000)]
gas/
2003-07-28 H.J. Lu <hongjiu.lu@intel.com>
* config/obj-elf.c (obj_elf_section_type): Also accept "note".
gas/testsuite/
2003-07-28 H.J. Lu <hongjiu.lu@intel.com>
* gas/elf/elf.exp: Add section3 for note section.
* gas/elf/section3.d: New file.
* gas/elf/section3.s: Likewise.
Alan Modra [Tue, 29 Jul 2003 00:00:05 +0000 (00:00 +0000)]
daily update
Rainer Orth [Mon, 28 Jul 2003 20:35:59 +0000 (20:35 +0000)]
* read.c (s_space): Don't warn about .space 0.
Rainer Orth [Mon, 28 Jul 2003 20:06:27 +0000 (20:06 +0000)]
* config/tc-mips.c (mips_flag_pdr): Define.
(md_begin) [OBJ_ELF]: Use it to control .pdr creation.
(s_mips_end) [OBJ_ELF]: Likewise.
(md_longopts) [OBJ_ELF]: Define OPTION_PDR, OPTION_NO_PDR.
(md_parse_option) [OBJ_ELF]: Handle them.
(md_show_usage) [OBJ_ELF]: Document -mpdr, -mno-pdr.
* doc/c-mips.texi (MIPS Opts): Document -mpdr, -mno-pdr.
* doc/as.texinfo (Overview) [MIPS]: Likewise.
Alan Modra [Mon, 28 Jul 2003 14:21:44 +0000 (14:21 +0000)]
* elf.c (special_sections): Set attributes for .got and .plt.
Alan Modra [Mon, 28 Jul 2003 03:33:48 +0000 (03:33 +0000)]
* emulparams/elf64ppc.sh (GOT): Fix for shell brace matching.
Nathanael Nerode [Mon, 28 Jul 2003 03:27:46 +0000 (03:27 +0000)]
* Makefile.tpl: Use 'mkinstalldirs' rather than 'mkdir' when
creating target and build subdirs to build all parent dirs as needed.
* Makefile.in: Rebuild.
* configure.in: Don't build dirs explicitly here.
* configure: Rebuild.
Alan Modra [Mon, 28 Jul 2003 02:42:37 +0000 (02:42 +0000)]
* emulparams/elf64ppc.sh (GOT): Don't merge .toc into .got for ld -r.
Alan Modra [Mon, 28 Jul 2003 00:00:06 +0000 (00:00 +0000)]
daily update
Alan Modra [Sun, 27 Jul 2003 11:58:28 +0000 (11:58 +0000)]
* ld.texinfo: Typo fixes. Document SUBALIGN.
* ldgram.y (opt_subalign): Add.
* ldlex.l (SUBALIGN): Recognize.
* ldlang.c (overlay_subalign): New var.
(lang_enter_overlay): Add subalign param.
(lang_enter_overlay_section): Pass overlay_subalign to
lang_enter_output_section_statement.
* ldlang.h (lang_enter_overlay): Update.
Alan Modra [Sun, 27 Jul 2003 09:05:08 +0000 (09:05 +0000)]
* elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Ensure no copy relocs
on function descriptors.
(ELIMINATE_COPY_RELOCS): Expand comment.
(ppc64_elf_special_sections): Move. Don't include non-ppc64 sections.
Do include ".toc1".
Alan Modra [Sun, 27 Jul 2003 00:00:05 +0000 (00:00 +0000)]
daily update
Alan Modra [Sat, 26 Jul 2003 10:22:01 +0000 (10:22 +0000)]
Update tests for corrected section attributes and objdump change.
H.J. Lu [Sat, 26 Jul 2003 01:06:27 +0000 (01:06 +0000)]
bfd/
2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
* elf.c (_bfd_elf_new_section_hook): Set the default section
type to SHT_NULL.
(elf_fake_sections): Set the section type based on asect->flags
if it is SHT_NULL. Don't abort on processor specific section
types.
gas/
2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
* config/obj-elf.c (obj_elf_change_section): Update
elf_section_type and elf_section_flags only when they are
specified.
Alan Modra [Sat, 26 Jul 2003 00:00:06 +0000 (00:00 +0000)]
daily update
H.J. Lu [Fri, 25 Jul 2003 16:08:28 +0000 (16:08 +0000)]
2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
* config/obj-elf.c (obj_elf_change_section): Always set section
type and flags.
H.J. Lu [Fri, 25 Jul 2003 14:55:16 +0000 (14:55 +0000)]
2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
* bfd-in2.h: Regenerated.
H.J. Lu [Fri, 25 Jul 2003 14:35:56 +0000 (14:35 +0000)]
bfd/
2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
* elf-bfd.h (bfd_elf_special_section): New.
(elf_backend_data): Add special_sections, a pointer to
bfd_elf_special_section.
(elf_section_type). New.
(elf_section_flags): New.
(_bfd_elf_get_sec_type_attr): New.
* elf.c (_bfd_elf_make_section_from_shdr): Always use the
real section type/flags.
(special_sections): New.
(get_special_section): New.
(_bfd_elf_get_sec_type_attr): New.
(_bfd_elf_new_section_hook): Check special_section to set
elf_section_type and elf_section_flags.
(elf_fake_sections): Don't use section name to set ELF section
data.
* elf32-m32r.c (m32r_elf_special_sections): New.
(elf_backend_special_sections): Defined.
* elf32-m68hc11.c (elf32_m68hc11_special_sections): New.
(elf_backend_special_sections): Defined.
* elf32-mcore.c (mcore_elf_special_sections): New.
(elf_backend_special_sections): Defined.
* elf32-ppc.c (ppc_elf_special_sections): New.
(elf_backend_special_sections): Defined.
* elf32-sh64.c (sh64_elf_special_sections): New.
(elf_backend_special_sections): Defined.
* elf32-v850.c (v850_elf_special_sections): New.
(elf_backend_special_sections): Defined.
* elf32-xtensa.c (elf_xtensa_special_sections): New.
(elf_backend_special_sections): Defined.
* elf64-alpha.c (elf64_alpha_special_sections): New.
(elf_backend_special_sections): Defined.
* elf64-hppa.c (elf64_hppa_special_sections): New.
(elf_backend_special_sections): Defined.
* elf64-ppc.c (ppc64_elf_special_sections): New.
(elf_backend_special_sections): Defined.
* elf64-sh64.c (sh64_elf64_special_sections): New.
(elf_backend_special_sections): Defined.
* elfxx-ia64.c (elfNN_ia64_special_sections): New.
(elf_backend_special_sections): Defined.
* elfxx-mips.c (_bfd_mips_elf_special_sections): New.
* elfxx-mips.h (_bfd_mips_elf_special_sections): New.
(elf_backend_special_sections): Defined.
* elfxx-target.h (elf_backend_special_sections): New. Default
to NULL.
(elfNN_bed): Initialize special_sections.
* section.c (bfd_abs_section): Remove const.
(bfd_und_section): Likewise.
(bfd_com_section): Likewise.
(bfd_ind_section): Likewise.
gas/
2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
* config/obj-elf.c (special_sections): Removed.
(obj_elf_change_section): Call _bfd_elf_get_sec_type_attr. Set
elf_section_type and elf_section_flags.
(elf_frob_file): Set SHT_GROUP.
* config/obj-elf.h (obj_sec_set_private_data): New.
* config/tc-alpha.h (ELF_TC_SPECIAL_SECTIONS): Removed.
* config/tc-ia64.h: Likewise.
* config/tc-m32r.h: Likewise.
* config/tc-m68hc11.h: Likewise.
* config/tc-mcore.h: Likewise.
* config/tc-mips.h: Likewise.
* config/tc-ppc.h: Likewise.
* config/tc-sh64.h: Likewise.
* config/tc-v850.h: Likewise.
* config/tc-xtensa.h: Likewise.
* config/tc-v850.h (SHF_V850_GPREL): Removed.
(SHF_V850_EPREL): Likewise.
(SHF_V850_R0REL): Likewise.
* subsegs.c (subseg_get): Call obj_sec_set_private_data if it
is defined.
include/elf/
2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
* v850.h (SHF_V850_GPREL): New.
(SHF_V850_EPREL): Likewise.
(SHF_V850_R0REL): Likewise.
Nick Clifton [Fri, 25 Jul 2003 10:50:03 +0000 (10:50 +0000)]
Include SEC_CODE so that code sections are assigned the LOAD attribute.
Kaz Kojima [Fri, 25 Jul 2003 06:19:20 +0000 (06:19 +0000)]
* elf32-sh.c: Convert to C90. Replace PTR with void *.
* elf32-sh64-com.c: Likewise.
* elf32-sh64.c: Likewise.
* elf32-sh64.h: Likewise.
* elf64-sh64.c: Likewise.
H.J. Lu [Fri, 25 Jul 2003 01:39:42 +0000 (01:39 +0000)]
2003-07-24 H.J. Lu <hongjiu.lu@intel.com>
* ld-powerpc/tlsexe.r: .sbss is NOBITS, not PROGBITS.
* ld-powerpc/tlsexetoc.r: Likewise.
* ld-powerpc/tlsso.r: Likewise.
* ld-powerpc/tlstocso.r: Likewise.