OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
21 years ago2002-02-20 Alexandre Oliva <aoliva@redhat.com>
Alexandre Oliva [Thu, 10 Jul 2003 02:49:46 +0000 (02:49 +0000)]
2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
* gas/mn10300/am33-2.c (d8pcsec): PC-relative relocations within
text sections don't decay to section+offset.
* gas/mn10300/am33-2.d: Rebuilt.
2000-08-15  Eric Christopher  <echristo@cygnus.com>
* gas/mn10300/am33-2.c (d8pcsec): New Function
(condjmp): Adjust testcase for TC_LINKRELAX_FIXUP
functionality.
* gas/mn10300/am33-2.d: Regenerate
2000-05-24  Alexandre Oliva  <aoliva@cygnus.com>
* gas/mn10300/am33-2.c (d8pcoff): Likewise.
* gas/mn10300/am33-2.d: Rebuilt.
2000-04-01  Alexandre Oliva  <aoliva@cygnus.com>
* gas/mn10300/am33-2.c (main): Changed `.am332' to `.am33_2'.
Replaced `AM33 2.0' with `AM33/2.0'.
* gas/mn10300/am33-2.d, gas/mn10300/am33-2.s: Rebuilt.
2000-03-31  Alexandre Oliva  <aoliva@cygnus.com>
* gas/mn10300/am33-2.c: New file, that generated...
* gas/mn10300/am33-2.s, gas/mn10300/am33-2.d: New files.
* gas/mn10300/basic.exp: Test am33-2.

21 years ago2000-04-01 Alexandre Oliva <aoliva@cygnus.com>
Alexandre Oliva [Thu, 10 Jul 2003 02:49:07 +0000 (02:49 +0000)]
2000-04-01  Alexandre Oliva  <aoliva@cygnus.com>
* mn10300.h (AM33_2): Renamed from AM33.
2000-03-31  Alexandre Oliva  <aoliva@cygnus.com>
* mn10300.h (AM332, FMT_D3): Defined.
(MN10300_OPERAND_FSREG, MN10300_OPERAND_FDREG): Likewise.
(MN10300_OPERAND_FPCR): Likewise.

21 years ago2000-04-01 Alexandre Oliva <aoliva@cygnus.com>
Alexandre Oliva [Thu, 10 Jul 2003 02:49:00 +0000 (02:49 +0000)]
2000-04-01  Alexandre Oliva  <aoliva@cygnus.com>
* mn10300.h (E_MN10300_MACH_AM33_2): Renamed from
E_MN10300_MACH_AM332.
2000-03-31  Alexandre Oliva  <aoliva@cygnus.com>
* mn10300.h (E_MN10300_MACH_AM332): Defined.

21 years ago2003-07-09 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Thu, 10 Jul 2003 01:30:16 +0000 (01:30 +0000)]
2003-07-09  H.J. Lu <hongjiu.lu@intel.com>

* elfxx-ia64.c (IA64_HOWTO): Set dst_mask to -1LL.

21 years ago * ld-powerpc/powerpc.exp: Dump output .got section rather than .toc.
Alan Modra [Thu, 10 Jul 2003 00:38:42 +0000 (00:38 +0000)]
* ld-powerpc/powerpc.exp: Dump output .got section rather than .toc.
* ld-powerpc/tlsexetoc.g: Update.
* ld-powerpc/tlsexetoc.r: Update.
* ld-powerpc/tlstoc.g: Update.
* ld-powerpc/tlstocso.g: Update.
* ld-powerpc/tlstocso.r: Update.

21 years ago * emulparams/elf64ppc.sh (OTHER_GOT_SECTIONS): Don't define.
Alan Modra [Thu, 10 Jul 2003 00:38:19 +0000 (00:38 +0000)]
* emulparams/elf64ppc.sh (OTHER_GOT_SECTIONS): Don't define.
(GOT): Define.
* emultempl/ppc64elf.em (stub_added): New static var.
(ppc_create_output_section_statements): Call ppc64_elf_init_stub_bfd.
(ppc_add_stub_section): Set stub_added.
(gld${EMULATION_NAME}_finish): Look for .got rather than .toc.  Adjust
ppc64_elf_size_stubs call and test for stubs.
* scripttempl/elf.sc (GOT): Define and use.

21 years ago * elf64-ppc.c (bfd_elf64_mkobject): Define.
Alan Modra [Thu, 10 Jul 2003 00:37:27 +0000 (00:37 +0000)]
* elf64-ppc.c (bfd_elf64_mkobject): Define.
(struct ppc64_elf_obj_tdata): New.
(ppc64_elf_tdata, ppc64_tlsld_got): Define.
(ppc64_elf_mkobject): New function.
(struct got_entry): Add "owner".  Move "tls_type".
(struct ppc_link_hash_table): Delete "relgot", "tlsld_got".
(ppc64_elf_init_stub_bfd): New function.
(create_got_section): Create header .got in dynobj.  Create .got
and .rela.got in each bfd.  Stash pointers in ppc64_elf_obj_tdata.
(ppc64_elf_create_dynamic_sections): Don't call create_got_section.
Look for dynobj .got, and test it.
(ppc64_elf_copy_indirect_symbol): Adjust for changed got.
(update_local_sym_info): Likewise.
(ppc64_elf_check_relocs): Likewise.
(ppc64_elf_gc_sweep_hook): Likewise.
(ppc64_elf_tls_optimize): Likewise.
(allocate_dynrelocs): Likewise.
(ppc64_elf_size_dynamic_sections): Likewise.
(ppc64_elf_relocate_section): Likewise.
(ppc64_elf_next_toc_section): Update comment.
(toc_adjusting_stub_needed): Remove unneeded cast.
(ppc64_elf_build_stubs): Check for stub sections in stub bfd by
testing section flags.
(ppc64_elf_build_stubs): Likewise.
(ppc64_elf_size_stubs): Likewise.  Remove stub_bfd param.
(ppc64_elf_finish_dynamic_sections): Write out got sections.
(func_desc_adjust): Copy over dynamic info for undef weaks.
* elf64-ppc.h (ppc64_elf_init_stub_bfd): Declare.
(ppc64_elf_size_stubs): Update prototype.
* elflink.h (elf_link_sort_relocs): Use link_orders to find reldyn
input sections rather than scanning dynobj.

21 years agodaily update
Alan Modra [Thu, 10 Jul 2003 00:00:06 +0000 (00:00 +0000)]
daily update

21 years ago2003-07-09 Chris Demetriou <cgd@broadcom.com>
Chris Demetriou [Wed, 9 Jul 2003 22:53:52 +0000 (22:53 +0000)]
2003-07-09  Chris Demetriou  <cgd@broadcom.com>

        * mips-dis.c (set_default_mips_dis_options): Get BFD from
        the disassembler_info's section, rather than from the
        disassembler_info's symbols pointer.

21 years ago * elfxx-mips.c (mips_elf_link_hash_entry): Remove min_dyn_reloc_index.
Richard Sandiford [Wed, 9 Jul 2003 11:55:49 +0000 (11:55 +0000)]
* elfxx-mips.c (mips_elf_link_hash_entry): Remove min_dyn_reloc_index.
(bfd_mips_elf_swap_msym_in, bfd_mips_elf_swap_msym_out): Delete.
(mips_elf_create_msym_section): Delete.
(mips_elf_create_dynamic_relocation): Don't set min_dyn_reloc_index.
(_bfd_mips_elf_copy_indirect_symbol): Likewise.
(_bfd_mips_elf_create_dynamic_sections): Don't create .msym.
(_bfd_mips_elf_size_dynamic_sections): Don't calculate its size.
(_bfd_mips_elf_size_dynamic_sections): Don't add DT_MIPS_MSYM.
(_bfd_mips_elf_finish_dynamic_symbol): Don't add symbols to .msym.
(_bfd_mips_elf_finish_dynamic_sections): Likewise.

21 years ago * elfxx-mips.c (mips_elf_irix6_finish_dynamic_symbol): Make the
Richard Sandiford [Wed, 9 Jul 2003 11:53:36 +0000 (11:53 +0000)]
* elfxx-mips.c (mips_elf_irix6_finish_dynamic_symbol): Make the
symbols protected.

21 years ago * elfxx-mips.c (mips_elf_create_dynamic_relocation): Fix handling
Richard Sandiford [Wed, 9 Jul 2003 11:52:52 +0000 (11:52 +0000)]
* elfxx-mips.c (mips_elf_create_dynamic_relocation): Fix handling
of relocations whose offset is -2.

21 years ago * bfd/elfxx-mips.c (mips_elf_create_dynamic_relocation): Treat
Richard Sandiford [Wed, 9 Jul 2003 11:51:53 +0000 (11:51 +0000)]
* bfd/elfxx-mips.c (mips_elf_create_dynamic_relocation): Treat
forced-local symbols like other locals.  Don't create relocations
against STN_UNDEF in irix objects.

21 years ago * bfd/elfxx-mips.c (mips_elf_create_dynamic_relocation): In SGI-
Richard Sandiford [Wed, 9 Jul 2003 11:50:16 +0000 (11:50 +0000)]
* bfd/elfxx-mips.c (mips_elf_create_dynamic_relocation): In SGI-
compatible objects, add the values of defined external symbols
to the addend.

21 years ago * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Always
Richard Sandiford [Wed, 9 Jul 2003 11:48:17 +0000 (11:48 +0000)]
* elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Always
initialize a GOT entry to the symbol's st_value.

21 years ago[ gas/ChangeLog ]
Chris Demetriou [Wed, 9 Jul 2003 01:27:30 +0000 (01:27 +0000)]
[ gas/ChangeLog ]
2003-07-08  Chris Demetriou  <cgd@broadcom.com>

        * config/tc-mips.c (mips_validate_fix): Do not warn about branch
        target being a global symbol if not compiling SVR4 PIC code.

[ gas/testsuite/ChangeLog ]
2003-07-08  Chris Demetriou  <cgd@broadcom.com>

        * gas/testsuite/gas/mips/mips.exp: Make sure that branch-misc-2 is
        run to compile non-PIC code, and add branch-misc-2pic.
        * gas/mips/branch-misc-2.l: Adjust for change in non-PIC warnings.
        * gas/mips/branch-misc-2pic.l: New file.
        * gas/mips/branch-misc-2pic.s: New file.

21 years agodaily update
Alan Modra [Wed, 9 Jul 2003 00:00:05 +0000 (00:00 +0000)]
daily update

21 years ago * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
Joern Rennecke [Tue, 8 Jul 2003 18:05:34 +0000 (18:05 +0000)]
* emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
Allow second call from ldemul_finish.

21 years ago * elf-bfd.h (struct elf_obj_tdata): Move linker_section_pointers..
Alan Modra [Tue, 8 Jul 2003 13:10:51 +0000 (13:10 +0000)]
* elf-bfd.h (struct elf_obj_tdata): Move linker_section_pointers..
* elf32-ppc.c (struct ppc_elf_obj_tdata): ..to here.  New.
(ppc_elf_tdata): Define.
(elf_local_ptr_offsets): Adjust.
(ppc_elf_mkobject): New function.
(bfd_elf32_mkobject): Define.

21 years ago * elfcode.h (elf_object_p): Allocate tdata via _bfd_set_format.
Alan Modra [Tue, 8 Jul 2003 08:08:00 +0000 (08:08 +0000)]
* elfcode.h (elf_object_p): Allocate tdata via _bfd_set_format.
* elfcore.h (elf_core_file_p): Likewise.
* section.c (bfd_section_init): Remove prototype.

21 years agodaily update
Alan Modra [Tue, 8 Jul 2003 00:00:05 +0000 (00:00 +0000)]
daily update

21 years ago * elf-bfd.h (struct elf_link_hash_entry): Remove linker_section_pointer
Alan Modra [Mon, 7 Jul 2003 15:51:57 +0000 (15:51 +0000)]
* elf-bfd.h (struct elf_link_hash_entry): Remove linker_section_pointer
field.
(enum elf_linker_section_enum): Delete.
(struct elf_linker_section): Delete.
(struct elf_linker_section_pointers): Delete.
(struct elf_obj_tdata): Remove #if 0 chunk.  Remove linker_section.
Make linker_section_pointers a void**.
(elf_local_ptr_offsets, elf_linker_section): Don't define.
* elf32-ppc.c (enum elf_linker_section_enum): New, cut-down version
of old item in elf-bfd.h.
(struct elf_linker_section): Likewise.
(struct elf_linker_section_pointers): Likewise.
(elf_local_ptr_offsets): Define.
(struct ppc_elf_link_hash_entry): Add linker_section_pointer.
(ppc_elf_link_hash_newfunc): Init it.
(struct ppc_elf_link_hash_table): Add sbss.
(ppc_elf_link_hash_table_create): zmalloc rather than clearing
individual fields.
(elf_create_linker_section): Fold into..
(ppc_elf_create_linker_section): ..here.  Remove hole_size code.
Make rela section here if shared.
(elf_find_pointer_linker_section): Pass lsect rather than enum.
(elf_create_pointer_linker_section): Adjust.  zalloc rather than
clearing in a loop.
(elf_finish_pointer_linker_section): Adjust.  Don't make rela
section here.
(ppc_elf_check_relocs): Adjust.
(ppc_elf_add_symbol_hook): Tighten hash creator test.  Remove code
creating .sbss by hand.
* elf.c (_bfd_elf_link_hash_newfunc): Adjust.

21 years ago * elf32-s390.c (elf_howto_table): Change R_390_GOT12 to
Jakub Jelinek [Mon, 7 Jul 2003 11:14:40 +0000 (11:14 +0000)]
* elf32-s390.c (elf_howto_table): Change R_390_GOT12 to
complain_overflow_bitfield.
* elf64-s390.c (elf_howto_table): Change R_390_GOT12 to
complain_overflow_bitfield.

21 years agoAdd documentation of M32R .high, .shigh and .low directives.
Nick Clifton [Mon, 7 Jul 2003 10:24:08 +0000 (10:24 +0000)]
Add documentation of M32R .high, .shigh and .low directives.

21 years agoAdd Clarke's surname to ChangeLog entry
Nick Clifton [Mon, 7 Jul 2003 09:40:16 +0000 (09:40 +0000)]
Add Clarke's surname to ChangeLog entry

21 years ago * config/tc-h8300.c (h8300sxnmode): Add prototype.
Richard Sandiford [Mon, 7 Jul 2003 09:33:02 +0000 (09:33 +0000)]
* config/tc-h8300.c (h8300sxnmode): Add prototype.
(DSYMMODE): Remove.
(parse_exp): Replace expressionS argument with a h8_op.  Parse the
operand size as well.
(skip_colonthing): Remove unused expression argument.  Tighten checks
for 2-digit sizes.
(colonmod24): Remove.
(get_mova_operands): Combine calls to parse_exp and skip_colonthing.
(get_operand): Likewise.  Use the standard code to read the size of
pc-relative operands.
(fix_operand_size): Include the size-guessing logic that used to be
in colonmod24 and get_operand.  Don't apply dd:2 optimizations to
offsets with a symbolic component.

testsuite/
* gas/h8300/h8sx_disp2.[sd]: Add tests for symbolic displacements.

21 years ago * ppc-opc.c: Remove NULL pointer checks. Formatting. Remove
Alan Modra [Mon, 7 Jul 2003 01:34:04 +0000 (01:34 +0000)]
* ppc-opc.c: Remove NULL pointer checks.  Formatting.  Remove
extraneous ATTRIBUTE_UNUSED.
* ppc-dis.c (print_insn_powerpc): Always pass a valid address to
operand->extract.

21 years agodaily update
Alan Modra [Mon, 7 Jul 2003 00:00:05 +0000 (00:00 +0000)]
daily update

21 years ago2003-07-06 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Sun, 6 Jul 2003 21:44:55 +0000 (21:44 +0000)]
2003-07-06  H.J. Lu <hongjiu.lu@intel.com>

* demangle.h: Support C++.

21 years ago2003-07-06 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Sun, 6 Jul 2003 21:38:00 +0000 (21:38 +0000)]
2003-07-06  H.J. Lu <hongjiu.lu@intel.com>

* config-ml.in: Replace PWD with PWD_COMMAND.
* Makefile.tpl: Likewise.
* Makefile.in: Regenerated.

21 years agodaily update
Alan Modra [Sun, 6 Jul 2003 00:00:05 +0000 (00:00 +0000)]
daily update

21 years agoClean up white space
Zack Weinberg [Sat, 5 Jul 2003 16:54:46 +0000 (16:54 +0000)]
Clean up white space

21 years ago* dlltool.c (prefix_encode): Use a fixed length for alpha.
Christopher Faylor [Sat, 5 Jul 2003 13:49:50 +0000 (13:49 +0000)]
* dlltool.c (prefix_encode): Use a fixed length for alpha.

21 years ago* dlltool.c (prefix_encode): New function. Encode temp file prefix from pid.
Christopher Faylor [Sat, 5 Jul 2003 02:58:29 +0000 (02:58 +0000)]
* dlltool.c (prefix_encode): New function.  Encode temp file prefix from pid.
(dlltmp): Pass address of pointer being alloced or suffer neverending mallocs.
(make_one_lib_file): Allocate enough space for new longer stub names.
(gen_lib_file): Ditto.
(main): Generate the temp file prefix from the pid if prefix was not specified
on the command line.

21 years agomerge from gcc
DJ Delorie [Sat, 5 Jul 2003 01:59:15 +0000 (01:59 +0000)]
merge from gcc

21 years agodaily update
Alan Modra [Sat, 5 Jul 2003 00:00:05 +0000 (00:00 +0000)]
daily update

21 years agoAllow to override sh64 initial stack value with --defsym:
Joern Rennecke [Fri, 4 Jul 2003 16:07:01 +0000 (16:07 +0000)]
Allow to override sh64 initial stack value with --defsym:
* emulparams/shelf32.sh (STACK_ADDR): Don't define.
(OTHER_SECTIONS): Include .stack.
* emulparams/shelf64.sh (OTHER_SECTIONS): Likewise.

21 years ago * ppc-opc.c: Convert to C90, removing unnecessary prototypes and
Alan Modra [Fri, 4 Jul 2003 15:27:25 +0000 (15:27 +0000)]
* ppc-opc.c: Convert to C90, removing unnecessary prototypes and
casts.  Formatting.

21 years ago(MKDOC rule): Add $(CFLAGS) in case it contains CC_FOR_BUILD specific switches.
Nick Clifton [Fri, 4 Jul 2003 14:46:14 +0000 (14:46 +0000)]
(MKDOC rule): Add $(CFLAGS) in case it contains CC_FOR_BUILD specific switches.

21 years ago * elf-bfd.h (SYMBOL_REFERENCES_LOCAL, SYMBOL_CALLS_LOCAL): Return
Jakub Jelinek [Fri, 4 Jul 2003 13:57:14 +0000 (13:57 +0000)]
* elf-bfd.h (SYMBOL_REFERENCES_LOCAL, SYMBOL_CALLS_LOCAL): Return
true even if -pie.

21 years agobfd/
Jakub Jelinek [Fri, 4 Jul 2003 13:53:38 +0000 (13:53 +0000)]
bfd/
* elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add rel_fptr_sec.
(elfNN_ia64_dynamic_symbol_p): Change info->shared into
!info->executable.
(get_fptr): For -pie create .opd as writable section and create
.rela.opd as well.
(elfNN_ia64_check_relocs): Change info->shared into
!info->executable.
(allocate_fptr): Likewise.
(allocate_dynrel_entries): Account for a relative reloc for -pie
@fptr().  Don't account for a relative reloc if -pie want_ltoff_fptr
for undefweak symbol.  Account for an IPLT reloc in .rela.opd
section if -pie.
(set_got_entry): Don't create a relative reloc if -pie
want_ltoff_fptr for undefweak symbol.
(set_fptr_entry): Emit an IPLT reloc in .rela.opd for -pie.
(elfNN_ia64_relocate_section): Emit a relative reloc for -pie
@fptr().

* elfxx-ia64.c (elfNN_ia64_relocate_section): Issue undefined_symbol
even if -pie.
* elf32-i386.c (elf_i386_relocate_section): Likewise.
* elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
* elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
* elf64-s390.c (elf_s390_relocate_section): Likewise.
* elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
* elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
* elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
* elf32-s390.c (elf_s390_relocate_section): Likewise.
* elf32-ppc.c (ppc_elf_relocate_section): Likewise.
ld/
* emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't include
.opd if -pie.
(OTHER_READWRITE_SECTIONS): Include .opd if -pie.
* scripttempl/elf.sc: Use SHLIB_DATA_ADDR instead of DATA_ADDR
if -pie.

21 years ago * gas/ppc/test2elf64.s: Rename to..
Alan Modra [Fri, 4 Jul 2003 13:35:35 +0000 (13:35 +0000)]
* gas/ppc/test2elf64.s: Rename to..
* gas/ppc/power4.s: ..this.  Add mtcr and mfcr testcases.
* gas/ppc/test2elf64.d: Rename to..
* gas/ppc/power4.d: ..this.  Update.
* gas/ppc/ppc.exp: Update.

21 years ago * ppc-opc.c: Remove PARAMS from prototypes.
Alan Modra [Fri, 4 Jul 2003 13:06:21 +0000 (13:06 +0000)]
* ppc-opc.c: Remove PARAMS from prototypes.
(FXM4): Define.
(insert_fxm): New function, used by both FXM and FXM4.
(extract_fxm): Likewise.
(XFXFXM_MASK): Remove 1 << 20 term.
(powerpc_opcodes): Add Power4 version of "mfcr".  Simplify "mtcr" mask.

21 years ago* config/tc-i386.c (tc_x86_regname_to_dw2regnum): Use ARRAY_SIZE
Nick Clifton [Fri, 4 Jul 2003 10:46:35 +0000 (10:46 +0000)]
* config/tc-i386.c (tc_x86_regname_to_dw2regnum): Use ARRAY_SIZE
  macro to compute size of selected register name array.

21 years ago* readelf.c (get_data): Print (unsigned) hex values for size and offset in
Nick Clifton [Fri, 4 Jul 2003 10:42:26 +0000 (10:42 +0000)]
* readelf.c (get_data): Print (unsigned) hex values for size and offset in
  error messages.
  (process_section_headers): If the string table could not be allocated, do
  not continue.

21 years ago* elf32-h8300.c (R_H8_DIR32A16): Fix name field.
Nick Clifton [Fri, 4 Jul 2003 10:25:14 +0000 (10:25 +0000)]
* elf32-h8300.c (R_H8_DIR32A16): Fix name field.
(elf32_h8_relax_section) <R_H8_DIR16A8>: Adjust position of relocation.
<R_H8_DIR32A16>: Fix type of relocation.

* ld-h8300/h8300.exp: Replace loop with explicit list.  Run relax.d
unconditionally.  Run relax-2.d for *-elf targets.
* ld-h8300/relax.d: Fix typo.
* ld-h8300/relax.s: Add 0x prefixes.
* ld-h8300/relad-2.[sd]: New test.

21 years ago * elf32-sh.c (sh_elf_create_dynamic_sections): Return if dynamic
Kaz Kojima [Fri, 4 Jul 2003 08:41:57 +0000 (08:41 +0000)]
* elf32-sh.c (sh_elf_create_dynamic_sections): Return if dynamic
sections were created already.  Remove unnecessary tests of
the previous change.

21 years ago * elf32-sh.c (sh_elf_create_dynamic_sections): Don't call
Kaz Kojima [Fri, 4 Jul 2003 07:38:33 +0000 (07:38 +0000)]
* elf32-sh.c (sh_elf_create_dynamic_sections): Don't call
bfd_make_section for existing sections.

21 years ago * elf32-sparc.c (elf32_sparc_check_relocs): Don't call
Alan Modra [Fri, 4 Jul 2003 04:58:03 +0000 (04:58 +0000)]
* elf32-sparc.c (elf32_sparc_check_relocs): Don't call
create_got_section if we already have done so.
* elf32-sh.c (sh_elf_create_dynamic_sections): Likewise.
(sh_elf_check_relocs): Likewise.
(sh_elf_adjust_dynamic_symbol): Delete "dynobj" var.  Use
htab->root.dynobj instead.
(sh_elf_check_relocs): Likewise.
(sh_elf_finish_dynamic_sections): Likewise.

21 years ago * section.c (bfd_make_section): Return NULL for existing section.
Alan Modra [Fri, 4 Jul 2003 04:14:56 +0000 (04:14 +0000)]
* section.c (bfd_make_section): Return NULL for existing section.

21 years ago * elf32-ppc.c (ppc_elf_create_dynamic_sections): Don't call
Alan Modra [Fri, 4 Jul 2003 01:57:26 +0000 (01:57 +0000)]
* elf32-ppc.c (ppc_elf_create_dynamic_sections): Don't call
ppc_elf_create_got if we've already done so.

21 years ago * elf-bfd.h (_bfd_elf_create_linker_section) Don't declare.
Alan Modra [Fri, 4 Jul 2003 01:50:12 +0000 (01:50 +0000)]
* elf-bfd.h (_bfd_elf_create_linker_section) Don't declare.
(_bfd_elf_find_pointer_linker_section): Likewise.
(bfd_elf32_create_pointer_linker_section): Likewise.
(bfd_elf32_finish_pointer_linker_section): Likewise.
(bfd_elf64_create_pointer_linker_section): Likewise.
(bfd_elf64_finish_pointer_linker_section): Likewise.
(_bfd_elf_make_linker_section_rela): Likewise.
* elfcode.h (elf_create_pointer_linker_section): Don't define.
(elf_finish_pointer_linker_section): Likewise.
* elflink.c (_bfd_elf_make_linker_section_rela): Delete.
(_bfd_elf_create_linker_section): Move this function..
(_bfd_elf_find_pointer_linker_section): ..and this..
* elflink.h (elf_create_pointer_linker_section): ..and this..
(elf_finish_pointer_linker_section): ..and this..
* elf32-ppc.c: ..to here, renaming to the following, and adjusting
calls.
(elf_create_linker_section): Convert to C90, tidy.
(elf_find_pointer_linker_section): Likewise.
(elf_create_pointer_linker_section): Likewise.
(elf_finish_pointer_linker_section): Likewise.
* elf32-i370.c: Delete #if 0 code.

21 years agodaily update
Alan Modra [Fri, 4 Jul 2003 00:00:05 +0000 (00:00 +0000)]
daily update

21 years agomerge from gcc
DJ Delorie [Thu, 3 Jul 2003 14:00:54 +0000 (14:00 +0000)]
merge from gcc

21 years agodaily update
Alan Modra [Thu, 3 Jul 2003 00:00:05 +0000 (00:00 +0000)]
daily update

21 years ago * elf64-ppc.c (ppc64_elf_func_desc_adjust): Don't allow _savef* and
Alan Modra [Wed, 2 Jul 2003 07:41:51 +0000 (07:41 +0000)]
* elf64-ppc.c (ppc64_elf_func_desc_adjust): Don't allow _savef* and
_restf* to be satisfied by shared libs, and always force them local.
(toc_adjusting_stub_needed): Avoid scanning linker created sections.
Correct test for "bl".
(ppc64_elf_relocate_section <R_PPC64_TLS>): Correct test for
primary opcode 31.

21 years ago * gas/mips/set-arch.d: Fix GPR names and show raw insns.
Thiemo Seufer [Wed, 2 Jul 2003 00:40:12 +0000 (00:40 +0000)]
* gas/mips/set-arch.d: Fix GPR names and show raw insns.

21 years agodaily update
Alan Modra [Wed, 2 Jul 2003 00:00:05 +0000 (00:00 +0000)]
daily update

21 years agomerge from gcc
DJ Delorie [Tue, 1 Jul 2003 21:17:41 +0000 (21:17 +0000)]
merge from gcc

21 years ago * readelf.c (dynamic_segment_ia64_val): Print address and newline
Jakub Jelinek [Tue, 1 Jul 2003 15:54:15 +0000 (15:54 +0000)]
* readelf.c (dynamic_segment_ia64_val): Print address and newline
for sections by default.  Comment fix.

21 years ago * s390-dis.c (s390_extract_operand): Add support for long displacements.
Martin Schwidefsky [Tue, 1 Jul 2003 14:47:58 +0000 (14:47 +0000)]
    * s390-dis.c (s390_extract_operand): Add support for long displacements.
        * s390-mkopc.c (s390_opcode_cpu_val): Add support for cpu type z990.
        * s390-opc.c (D20_20): Add define for 20 bit displacements.
        (INSTR_RRF_R0RR, INSTR_RSL_R0RD, INSTR_RSY_RRRD, INSTR_RSY_RURD,
        INSTR_RSY_AARD, INSTR_RXY_RRRD, INSTR_RXY_FRRD, INSTR_SIY_URD): Add
        new instruction formats.
        (MASK_RRF_R0RR, MASK_RSL_R0RD, MASK_RSY_RRRD, MASK_RSY_RURD,
        MASK_RSY_AARD, MASK_RXY_RRRD, MASK_RXY_FRRD, MASK_SIY_URD): Likewise.
        (s390_opformats): Likewise.
        * s390-opc.txt: Add new instructions for cpu type z990. Add missing
        hfp instructions. Add missing instructions pgin, pgout and xsch.

21 years ago * s390.h (s390_opcode_cpu_val): Add enum for cpu type z990.
Martin Schwidefsky [Tue, 1 Jul 2003 14:46:57 +0000 (14:46 +0000)]
    * s390.h (s390_opcode_cpu_val): Add enum for cpu type z990.

21 years ago * s390.h (elf_s390_reloc_type): Add long displacement relocations
Martin Schwidefsky [Tue, 1 Jul 2003 14:46:26 +0000 (14:46 +0000)]
    * s390.h (elf_s390_reloc_type): Add long displacement relocations
        R_390_20, R_390_GOT20, R_390_GOTPLT20 and R_390_TLS_GOTIE20.

21 years ago * config/tc-s390.c (md_parse_option): Add cpu type z990.
Martin Schwidefsky [Tue, 1 Jul 2003 14:45:37 +0000 (14:45 +0000)]
    * config/tc-s390.c (md_parse_option): Add cpu type z990.
        (md_begin): Add minimal cpu type logic for instructions with different
        binary format depending on the cpu.
        (md_assemble): Remove check for minimal cpu.
        (s390_insert_operand): Add support for long displacements.
        (md_gather_operands): Likewise.
        (tc_s390_fix_adjustable): Likewise.
        (tc_s390_force_relocation): Likewise.
        (md_apply_fix3): Likewise.

21 years ago * elf32-s390.c (s390_elf_ldisp_reloc): New prototype.
Martin Schwidefsky [Tue, 1 Jul 2003 14:44:59 +0000 (14:44 +0000)]
    * elf32-s390.c (s390_elf_ldisp_reloc): New prototype.
        (s390_tls_reloc): New function.
        (elf_howto_table): Add long displacement relocations R_390_20,
        R_390_GOT20, R_390_GOTPLT20 and R_390_TLS_GOTIE20.
        (elf_s390_reloc_type_lookup): Likewise.
        (elf_s390_check_relocs): Likewise.
        (elf_s390_gc_sweep_hook): Likewise.
        (elf_s390_relocate_section): Likewise.
        * elf64-s390.c: Same changes as for elf32-s390.c.
        * reloc.c: Add long displacement relocations BFD_RELOC_390_20,
        BFD_RELOC_390_GOT20, BFD_RELOC_390_GOTPLT20 and
        BFD_RELOC_390_TLS_GOTIE20.
        * bfd-in2.h: Regenerate.
        * libbfd.h: Likewise.

21 years agomerge from gcc
DJ Delorie [Tue, 1 Jul 2003 01:12:46 +0000 (01:12 +0000)]
merge from gcc

21 years agodaily update
Alan Modra [Tue, 1 Jul 2003 00:00:05 +0000 (00:00 +0000)]
daily update

21 years ago * xtensa-config.h (XCHAL_HAVE_CONST16, XCHAL_HAVE_ABS,
Bob Wilson [Mon, 30 Jun 2003 21:56:32 +0000 (21:56 +0000)]
    * xtensa-config.h (XCHAL_HAVE_CONST16, XCHAL_HAVE_ABS,
        XCHAL_HAVE_ADDX, XCHAL_HAVE_L32R): Define.

21 years ago2003-06-30 Chris Demetriou <cgd@broadcom.com>
Chris Demetriou [Mon, 30 Jun 2003 21:54:19 +0000 (21:54 +0000)]
2003-06-30  Chris Demetriou  <cgd@broadcom.com>

        * config/tc-mips.c (s_mipsset): Implement -march= handling
        differently.

21 years ago * config/tc-mips.c: Convert to ISO C90 prototypes. Remove unnecessary
Thiemo Seufer [Mon, 30 Jun 2003 12:44:25 +0000 (12:44 +0000)]
* config/tc-mips.c: Convert to ISO C90 prototypes. Remove unnecessary
prototypes and casts. Replace PTR with void *. Reformat.
* config/tc-mips.h: Likewise.

21 years ago * config/tc-ia64.c (note_register_values): Warning fix.
Alan Modra [Mon, 30 Jun 2003 04:10:48 +0000 (04:10 +0000)]
* config/tc-ia64.c (note_register_values): Warning fix.
* config/tc-mips.c (append_insn): Likewise.

21 years ago * cpu-ia64-opc.c (ext_imms_scaled): Don't sign extend using shifts.
Alan Modra [Mon, 30 Jun 2003 04:09:27 +0000 (04:09 +0000)]
* cpu-ia64-opc.c (ext_imms_scaled): Don't sign extend using shifts.
(ins_imms, ins_immsm1u4): Likewise.  Warning fix.

21 years agodaily update
Alan Modra [Mon, 30 Jun 2003 00:00:05 +0000 (00:00 +0000)]
daily update

21 years ago * ld-mips-elf/elf-rel-got-n64-linux.d: New file.
Thiemo Seufer [Sun, 29 Jun 2003 19:41:33 +0000 (19:41 +0000)]
* ld-mips-elf/elf-rel-got-n64-linux.d: New file.
* ld-mips-elf/elf-rel-xgot-n64-linux.d: New file.
* ld-mips-elf/mips-elf.exp: Use the new files for Linux.

21 years ago * xcoff.h (struct __rtinit ): Convert to ISO C90 prototypes.
Andreas Jaeger [Sun, 29 Jun 2003 13:52:02 +0000 (13:52 +0000)]
* xcoff.h (struct __rtinit ): Convert to ISO C90 prototypes.

* ecoff.h: Convert to ISO C90 prototypes.  Replace PTR by void *.

21 years ago * mmix.h: Convert to ISO C90 prototypes.
Andreas Jaeger [Sun, 29 Jun 2003 13:51:25 +0000 (13:51 +0000)]
* mmix.h: Convert to ISO C90 prototypes.
* mips.h: Likewise.

* reloc-macros.h (START_RELOC_NUMBERS): Convert to ISO C90
prototype.
(RELOC_NUMBER): Remove !__STDC__ code.

21 years agoConvert to C90 and a few tweaks.
Alan Modra [Sun, 29 Jun 2003 10:06:40 +0000 (10:06 +0000)]
Convert to C90 and a few tweaks.

21 years agoAdd forgotten ChangeLog snippet for last elf64-x86-64.c patch.
Andreas Jaeger [Sun, 29 Jun 2003 10:02:24 +0000 (10:02 +0000)]
Add forgotten ChangeLog snippet for last elf64-x86-64.c patch.

21 years ago * elf64-x86-64.c: Convert to ISO C90 prototypes, remove
Andreas Jaeger [Sun, 29 Jun 2003 05:57:36 +0000 (05:57 +0000)]
* elf64-x86-64.c: Convert to ISO C90 prototypes, remove
unnecessary prototypes.  Replace PTR with void *.

21 years agodaily update
Alan Modra [Sun, 29 Jun 2003 00:00:37 +0000 (00:00 +0000)]
daily update

21 years ago * binutils-all/objcopy.exp: Initialise $test_prog to
Danny Smith [Sat, 28 Jun 2003 23:27:42 +0000 (23:27 +0000)]
* binutils-all/objcopy.exp: Initialise $test_prog to
testprog.exe on mingw targeted systems too.

21 years ago * ld-mips-elf/mips-elf.exp: Use is_elf_format.
Thiemo Seufer [Sat, 28 Jun 2003 22:14:59 +0000 (22:14 +0000)]
* ld-mips-elf/mips-elf.exp: Use is_elf_format.

21 years ago * elfxx-mips.c: Allow lazy binding for R_MIPS_JALR.
Thiemo Seufer [Sat, 28 Jun 2003 22:13:37 +0000 (22:13 +0000)]
* elfxx-mips.c: Allow lazy binding for R_MIPS_JALR.

21 years ago * ld-mips-elf/mips-elf-flags.exp: Use -melf32bsmip for IRIX6.
Thiemo Seufer [Sat, 28 Jun 2003 22:12:26 +0000 (22:12 +0000)]
* ld-mips-elf/mips-elf-flags.exp: Use -melf32bsmip for IRIX6.

21 years agoConvert to C90
Alan Modra [Sat, 28 Jun 2003 05:28:54 +0000 (05:28 +0000)]
Convert to C90

21 years ago * rcparse.y (res_text_field): New res_id variable.
Danny Smith [Sat, 28 Jun 2003 02:37:43 +0000 (02:37 +0000)]
* rcparse.y (res_text_field): New res_id variable.
(res_null_text): New static const struct res_id object,
with empty unicode name field.
(control): Pop parsing of optresidc up one level. Set
res_text_field to $2 except for controls which do not accept
a text field.  Set res_text_field to res_null_text for the
special cases (viz. COMBOBOX, EDITTEXT, LISTBOX, SCROLLBAR).
(control_params): Adjust to use res_text_field rather
than optresidc.
(COMBOBOX): Add comment about discrepency between documented
vs. observed default style.
* resrc.c (define_control): Make first param const.
* windres.h (define_control): Adjust prototype.

testsuite:

* binutils-all/windres/checkbox.rc: New file.
* binutils-all/windres/checkbox.rsd: New file.
* binutils-all/windres/combobox.rc: New file.
* binutils-all/windres/combobox.rsd: New file.
* binutils-all/windres/edittext.rc: New file.
* binutils-all/windres/edittext.rsd: New file.
* binutils-all/windres/listbox.rc: New file.
* binutils-all/windres/listbox.rsd: New file.
* binutils-all/windres/scrollbar.rc: New file.
* binutils-all/windres/scrollbar.rsd: New file.

21 years agodaily update
Alan Modra [Sat, 28 Jun 2003 00:00:06 +0000 (00:00 +0000)]
daily update

21 years ago * configure.in: Clean up config-lang.in handling. Delete
Nathanael Nerode [Fri, 27 Jun 2003 17:34:33 +0000 (17:34 +0000)]
* configure.in: Clean up config-lang.in handling.  Delete
useless assignment to "subdirs".
* configure: Regenerate.

21 years agoCope with NUL seperated directives. Fix reporting of unparseable directives.
Nick Clifton [Fri, 27 Jun 2003 08:10:57 +0000 (08:10 +0000)]
Cope with NUL seperated directives.  Fix reporting of unparseable directives.

21 years agoFix --add-gnu-debuglink
Nick Clifton [Fri, 27 Jun 2003 08:01:28 +0000 (08:01 +0000)]
Fix --add-gnu-debuglink

21 years ago * elfxx-mips.c: Revert .got alignment to 2**4.
Thiemo Seufer [Fri, 27 Jun 2003 07:32:33 +0000 (07:32 +0000)]
* elfxx-mips.c: Revert .got alignment to 2**4.

21 years ago * elf32-mips.c: Fix addend for _gp_disp special symbol.
Thiemo Seufer [Fri, 27 Jun 2003 07:31:27 +0000 (07:31 +0000)]
* elf32-mips.c: Fix addend for _gp_disp special symbol.

21 years agoFix misdirected ChangeLog entry.
Thiemo Seufer [Fri, 27 Jun 2003 01:18:23 +0000 (01:18 +0000)]
Fix misdirected ChangeLog entry.

21 years ago * elfxx-mips.c (_bfd_mips_elf_fake_sections): Remove non-default
Thiemo Seufer [Fri, 27 Jun 2003 01:16:30 +0000 (01:16 +0000)]
* elfxx-mips.c (_bfd_mips_elf_fake_sections): Remove non-default
relocation header setup.
* binutils-all/readelf.ss-tmips: Adjust symbol indices.

21 years ago * emultempl/aix.em: Convert to C90, remove unnecessary prototypes
Alan Modra [Fri, 27 Jun 2003 00:38:25 +0000 (00:38 +0000)]
* emultempl/aix.em: Convert to C90, remove unnecessary prototypes
and casts.  Replace PTR with void *.  Formatting.
* emultempl/alphaelf.em: Likewise
* emultempl/armcoff.em: Likewise
* emultempl/armelf.em: Likewise
* emultempl/armelf_oabi.em: Likewise
* emultempl/beos.em: Likewise
* emultempl/elf32.em: Likewise
* emultempl/generic.em: Likewise
* emultempl/gld960.em: Likewise
* emultempl/gld960c.em: Likewise
* emultempl/hppaelf.em: Likewise
* emultempl/linux.em: Likewise
* emultempl/lnk960.em: Likewise
* emultempl/m68hc1xelf.em: Likewise
* emultempl/m68kcoff.em: Likewise
* emultempl/m68kelf.em: Likewise
* emultempl/mipsecoff.em: Likewise
* emultempl/mipself.em: Likewise
* emultempl/mmix-elfnmmo.em: Likewise
* emultempl/mmixelf.em: Likewise
* emultempl/mmo.em: Likewise
* emultempl/needrelax.em: Likewise
* emultempl/netbsd.em: Likewise
* emultempl/pe.em: Likewise
* emultempl/sh64elf.em: Likewise
* emultempl/sunos.em: Likewise
* emultempl/ticoff.em: Likewise
* emultempl/vanilla.em: Likewise
* emultempl/xtensaelf.em: Likewise
* Makefile.am: Correct dependencies.
* Makefile.in: Regenerate.

21 years agodaily update
Alan Modra [Fri, 27 Jun 2003 00:00:05 +0000 (00:00 +0000)]
daily update

21 years ago * configure.in: Rename 'target_libs' to 'target_libraries'.
Nathanael Nerode [Thu, 26 Jun 2003 20:19:41 +0000 (20:19 +0000)]
* configure.in: Rename 'target_libs' to 'target_libraries'.
Remove useless reference to 'target_libs'.
* configure: Regenerate.

21 years ago2003-06-26 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Thu, 26 Jun 2003 19:08:40 +0000 (19:08 +0000)]
2003-06-26  H.J. Lu <hongjiu.lu@intel.com>

* testsuite/demangle-expected: Add more GNU V3 testcases.

21 years ago2003-06-26 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Thu, 26 Jun 2003 17:50:41 +0000 (17:50 +0000)]
2003-06-26  H.J. Lu <hongjiu.lu@intel.com>

* config/tc-i386.c (md_assemble): Declare "exp" before "if".

21 years agoFix computation of offsets in PT_LOAD sections.
Nick Clifton [Thu, 26 Jun 2003 12:46:17 +0000 (12:46 +0000)]
Fix computation of offsets in PT_LOAD sections.