OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
15 years ago * readsyms.cc (Read_symbols::incompatible_warning): New function.
Ian Lance Taylor [Sat, 14 Mar 2009 05:56:46 +0000 (05:56 +0000)]
* readsyms.cc (Read_symbols::incompatible_warning): New function.
(Read_symbols::requeue): New function.
(Read_symbols::do_read_symbols): If make_elf_object fails because
the target type is not configured, and the file was searched for,
issue a warning and retry with the next directory.
(Add_symbols::run): If the file has an incompatible format, and
it was searched for, requeue the Read_symbols task.  On error,
release the object.
* readsyms.h (class Read_symbols): Add dirindex_ field.  Add
dirindex parameter to constructor.  Change all callers.  Declare
incompatible_warning and requeue.
(class Add_symbols): Add dirpath_, dirindex_, mapfile_,
input_argument_ and input_group_ fields.  Add them to
constructor.  Change all callers.
(class Read_script): Add dirindex_ field.  Add it to constructor.
Change all callers.
* archive.cc (Archive::setup): Remove input_objects parameter.
Change all callers.
(Archive::get_file_and_offset): Likewise.
(Archive::read_all_symbols): Likewise.
(Archive::read_symbols): Likewise.
(Archive::get_elf_object_for_member): Remove input_objects
parameter.  Add punconfigured parameter.  Change all callers.
(Archive::add_symbols): Change return type to bool.  Check return
value of include_member.
(Archive::include_all_members): Likewise.
(Archive::include_member): Change return type to bool.  Return
false if first included object has incompatible target.  Set
included_member_ field.
(Add_archive_symbols::run): If add_symbols returns false, requeue
Read_symbols task.
* archive.h (class Archive): Add included_member_ field.
Initialize it in constructor.  Add input_file and searched_for
methods.  Update declarations.
(class Add_archive_symbols): Add dirpath_, dirindex_, and
input_argument_ fields.  Add them to constructor.  Change all
callers.
* script.cc: Include "target-select.h".
(class Parser_closure): Add skip_on_incompatible_target_ and
found_incompatible_target_ fields.  Add
skip_on_incompatible_target parameter to constructor.  Change all
callers.  Add methods skip_on_incompatible_target,
clear_skip_on_incompatible_target, found_incompatible_target, and
set_found_incompatible_target.
(read_input_script): Add dirindex parameter.  Change all callers.
If parser finds an incompatible target, requeue Read_symbols
task.
(script_set_symbol): Clear skip_on_incompatible_target in
closure.
(script_add_assertion, script_parse_option): Likewise.
(script_start_sections, script_add_phdr): Likewise.
(script_check_output_format): New function.
* script.h (read_input_script): Update declaration.
* script-c.h (script_check_output_format): Declare.
* yyscript.y (file_cmd): Handle OUTPUT_FORMAT.
(ignore_cmd): Remove OUTPUT_FORMAT.
* fileread.cc (Input_file::Input_file): Add explicit this.
(Input_file::will_search_for): New function.
(Input_file::open): Add pindex parameter.  Change all callers.
* fileread.h (class Input_file): Add input_file_argument method.
Declare will_search_for.  Update declarations.
* object.cc (make_elf_object): Add punconfigured parameter.
Change all callers.
* object.h (class Object): Make input_file public.  Add
searched_for method.
(make_elf_object): Update declaration.
* dirsearch.cc (Dirsearch::find): Add pindex parameter.  Use it to
restart search.
* dirsearch.h (class Dirsearch): Update declaration.
* options.h (class General_options): Add --warn-search-mismatch.
* parameters.cc (Parameters::is_compatible_target): New function.
* parameters.h (class Parameters): Declare is_compatible_target.
* workqueue.cc (Workqueue::add_blocker): New function.
* workqueue.h (class Workqueue): Declare add_blocker.

15 years agoinclude/ChangeLog
Dave Korn [Sat, 14 Mar 2009 03:30:26 +0000 (03:30 +0000)]
include/ChangeLog
2009-03-12  Dave Korn  <dave.korn.cygwin@gmail.com>

* coff/internal.h (struct internal_extra_pe_aouthdr):  Correct type
of DllCharacteristics flags field to unsigned.
* coff/pe.h (IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE,
IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE,
IMAGE_DLL_CHARACTERISTICS_NX_COMPAT,
IMAGE_DLLCHARACTERISTICS_NO_ISOLATION,
IMAGE_DLLCHARACTERISTICS_NO_SEH,
IMAGE_DLLCHARACTERISTICS_NO_BIND,
IMAGE_DLLCHARACTERISTICS_WDM_DRIVER,
IMAGE_DLLCHARACTERISTICS_TERMINAL_SERVER_AWARE):  New macros to
define flag bit values for DllCharacteristics field of PEAOUTHDR,
PEPAOUTHDR.

ld/ChangeLog
2009-03-12  Dave Korn  <dave.korn.cygwin@gmail.com>
            Danny Smith  <dannysmith@users.sourceforge.net>

* emultmpl/pe.em (pe_dll_characteristics): New variable.
(OPTION_DYNAMIC_BASE, OPTION_FORCE_INTEGRITY, OPTION_NX_COMPAT,
OPTION_NO_ISOLATION. OPTION_NO_SEH, OPTION_NO_BIND,
OPTION_WDM_DRIVER, OPTION_TERMINAL_SERVER_AWARE):
New macros for options to set DllCharacteristics flag bits.
(gld${EMULATION_NAME}_add_options): Add dynamicbase, forceinteg,
nxcompat, no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
(init): Add DllCharacteristics field.
(gld_${EMULATION_NAME}_list_options): List new options.
(gld${EMULATION_NAME}_handle_option): Handle new options.
* emultmpl/pep.em (pe_dll_characteristics): New variable.
(OPTION_DYNAMIC_BASE, OPTION_FORCE_INTEGRITY, OPTION_NX_COMPAT,
OPTION_NO_ISOLATION. OPTION_NO_SEH, OPTION_NO_BIND,
OPTION_WDM_DRIVER, OPTION_TERMINAL_SERVER_AWARE):
New macros for options to set DllCharacteristics flags.
(gld${EMULATION_NAME}_add_options): Add dynamicbase, forceinteg,
nxcompat,no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
(init): Add DllCharacteristics field.
(gld_${EMULATION_NAME}_list_options): List new options.
(gld${EMULATION_NAME}_handle_option): Handle new options.
* ldtexinfo : Document dynamicbase, forceinteg, nxcompat,
no-isolation, no-seh, no-bind, wdmdriver, tsaware options.

15 years agodaily update
Alan Modra [Sat, 14 Mar 2009 00:00:09 +0000 (00:00 +0000)]
daily update

15 years ago * fileread.cc (Input_file::open): Remove options parameter.
Ian Lance Taylor [Fri, 13 Mar 2009 21:30:06 +0000 (21:30 +0000)]
* fileread.cc (Input_file::open): Remove options parameter.
Change all callers.
(Input_file::open_binary): Likewise.
* script.cc (read_input_script): Likewise.
* readsyms.h (class Read_symbols): Remove options_ field.  Remove
options parameter from constructor.  Change all callers.
(class Read_script): Likewise.
* fileread.h (class Input_file): Update declarations.
* script.h (read_input_script): Update declaration.

15 years agobfd/
H.J. Lu [Fri, 13 Mar 2009 13:39:57 +0000 (13:39 +0000)]
bfd/

2009-03-13  H.J. Lu  <hongjiu.lu@intel.com>

PR binutils/9945
* elf.c (assign_section_numbers): Generate symbol table if there
is any relocation in output.
(_bfd_elf_compute_section_file_positions): Likewise.

binutils/

2009-03-13  H.J. Lu  <hongjiu.lu@intel.com>

PR binutils/9945
* objcopy.c (copy_object): Clear HAS_RELOC when stripping all.

15 years ago PR 9934
Nick Clifton [Fri, 13 Mar 2009 11:34:43 +0000 (11:34 +0000)]
    PR 9934
        * elf-bfd.h (NUM_SHDR_ENTRIES): Cope with an empty section.
        * elflink.c (elf_link_read_relocs_from_section): Use
        NUM_SHDR_ENTRIES.  Gracefully handle the case where there are
        relocs but no symbol table.
        * elf32-arm.c (elf32_arm_check_relocs): Likewise.

15 years ago * lib/ld-lib.exp (run_dump_test): Add verbose to list of globals.
Nick Clifton [Fri, 13 Mar 2009 09:00:59 +0000 (09:00 +0000)]
    * lib/ld-lib.exp (run_dump_test): Add verbose to list of globals.
        Replace call to verbose_eval with a test of verbose level.  If
        greater than 2 always dump the contents of the dumpfile.  If equal
        to 2 only dump the contents if the regexp diff failed.
        (proc verbose_eval): Delete.

15 years agodaily update
Alan Modra [Fri, 13 Mar 2009 00:00:04 +0000 (00:00 +0000)]
daily update

15 years ago2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Thu, 12 Mar 2009 17:13:41 +0000 (17:13 +0000)]
2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/9938
* elf32-i386.c (elf_i386_check_tls_transition): Use strncmp
to check ___tls_get_addr.

* elf64-x86-64.c (elf64_x86_64_check_tls_transition): Use
strncmp to check __tls_get_addr.

15 years ago2009-03-12 Andrew Stubbs <ams@codesourcery.com>
Andrew Stubbs [Thu, 12 Mar 2009 10:57:18 +0000 (10:57 +0000)]
2009-03-12  Andrew Stubbs  <ams@codesourcery.com>

* dwarf2.c (read_section): Always check the offset, even when the
section has been read before.

15 years agodaily update
Alan Modra [Thu, 12 Mar 2009 00:00:09 +0000 (00:00 +0000)]
daily update

15 years ago * binutils-all/objdump.W, binutils-all/objdump.s: Don't match
Joseph Myers [Wed, 11 Mar 2009 22:49:54 +0000 (22:49 +0000)]
* binutils-all/objdump.W, binutils-all/objdump.s: Don't match
literal "tmpdir/" in expected output.

15 years ago2009-03-11 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Wed, 11 Mar 2009 16:42:23 +0000 (16:42 +0000)]
2009-03-11  H.J. Lu  <hongjiu.lu@intel.com>

* elf32-i386.c (elf_i386_check_tls_transition): Fix a typo in
comments.

15 years ago[bfd/ChangeLog]
Chris Demetriou [Wed, 11 Mar 2009 04:36:40 +0000 (04:36 +0000)]
[bfd/ChangeLog]
2009-03-11  Chris Demetriou  <cgd@google.com>

* bfd.c (BFD_DETERMINISTIC_OUTPUT): New flag.
* bfd-in2.h: Regenerate.
* archive.c (bfd_ar_hdr_from_filesystem): If BFD_DETERMINISTIC_OUTPUT
flag is set, use 0 for uid, gid, and timestamp, and use 0644 for file
mode.
(bsd_write_armap): Likewise.
(_bfd_archive_bsd_update_armap_timestamp): If BFD_DETERMINISTIC_OUTPUT
flag is set, do nothing.
(coff_write_armap): If BFD_DETERMINISTIC_OUTPUT flag is set, use 0
for timestamp.

[binutils/ChangeLog]
2009-03-11  Chris Demetriou  <cgd@google.com>

* ar.c (deterministic): New global variable.
(main): Recognize new 'D' option, which enables 'deterministic mode'.
(usage): Document new 'D' option.
(write_archive): Set BFD_DETERMINISTIC_OUTPUT in output archive's
flags if deterministic mode was requested.
* doc/binutils.texi (ar): Document deterministic mode ('D' option).

[binutils/testsuite/ChangeLog]
2009-03-11  Chris Demetriou  <cgd@google.com>

* binutils-all/ar.exp (deterministic_archive): New test.

15 years ago * config/tc-cris.c (cris_create_short_jump): Remove prototype.
Hans-Peter Nilsson [Wed, 11 Mar 2009 03:22:44 +0000 (03:22 +0000)]
* config/tc-cris.c (cris_create_short_jump): Remove prototype.
Rename, changing all callers, to...
(md_create_short_jump): Adjust head comment.  Assert
word-sized-branch distance for v32.  Bail out calling as_fatal for
compatibility mode here.
(md_create_long_jump): ...not here.
* config/tc-cris.h (md_create_short_jump): Do not define.

15 years ago * gas/cris/rd-bkw5.d, gas/cris/rd-bkw5.s, gas/cris/rd-bkw5b.d,
Hans-Peter Nilsson [Wed, 11 Mar 2009 03:17:32 +0000 (03:17 +0000)]
* gas/cris/rd-bkw5.d, gas/cris/rd-bkw5.s, gas/cris/rd-bkw5b.d,
gas/cris/rd-bkw5bpic.d, gas/cris/rd-bkw5bv32.d,
gas/cris/rd-bkw5bv32pic.d, gas/cris/rd-bkw5pic.d,
gas/cris/rd-bkw5v32.d, gas/cris/rd-bkw5v32pic.d: New tests.

15 years ago * elf32-spu.c (find_function_stack_adjust): Handle sf instruction
Ulrich Weigand [Wed, 11 Mar 2009 00:18:02 +0000 (00:18 +0000)]
* elf32-spu.c (find_function_stack_adjust): Handle sf instruction
used to update stack pointer.

15 years agodaily update
Alan Modra [Wed, 11 Mar 2009 00:00:04 +0000 (00:00 +0000)]
daily update

15 years ago * gas/cris/rd-bkw4.d, gas/cris/rd-bkw4v32.d, gas/cris/rd-bkw4.s:
Hans-Peter Nilsson [Tue, 10 Mar 2009 14:40:36 +0000 (14:40 +0000)]
* gas/cris/rd-bkw4.d, gas/cris/rd-bkw4v32.d, gas/cris/rd-bkw4.s:
New test.

15 years ago * write.c (write_object_file) [!WORKING_DOT_WORD]: When patching
Hans-Peter Nilsson [Tue, 10 Mar 2009 14:38:03 +0000 (14:38 +0000)]
* write.c (write_object_file) [!WORKING_DOT_WORD]: When patching
the jump table for multiple overflowing entries with the same
target, handle base symbols being different.
(relax_segment) <case rs_broken_word, second loop>: Whenever a
single entry overflows, arrange to redirect all entries with the
same target.

15 years agoAdd Spanish translation to gold.
Nick Clifton [Tue, 10 Mar 2009 09:21:01 +0000 (09:21 +0000)]
Add Spanish translation to gold.
Update Indonesian translation for opcodes.

15 years agoinclude/opcode/
Alan Modra [Tue, 10 Mar 2009 06:53:46 +0000 (06:53 +0000)]
include/opcode/
* ppc.h (ppc_parse_cpu): Declare.
opcodes/
* ppc-dis.c: Include "opintl.h".
(struct ppc_mopt, ppc_opts): New.
(ppc_parse_cpu): New function.
(powerpc_init_dialect): Use it.
(print_ppc_disassembler_options): Dump options from ppc_opts.
Internationalize message.
gas/
* config/tc-ppc.c (parse_cpu): Delete.
(md_parse_option, ppc_machine): Use ppc_parse_cpu.
gas/testsuite/
* gas/ppc/altivec_and_spe.d (objdump): Add -Maltivec.
* gas/ppc/common.d: Adjust for -Mcom not including -Mppc.

15 years agobinutils/
H.J. Lu [Tue, 10 Mar 2009 00:48:10 +0000 (00:48 +0000)]
binutils/

2009-03-09  H.J. Lu  <hongjiu.lu@intel.com>

PR binutils/9933
* objcopy.c (filter_symbols): Properly handle common symbols
in relocatable file.

binutils/testsuite/

2009-03-09  H.J. Lu  <hongjiu.lu@intel.com>

PR binutils/9933
* binutils-all/copy-4.d: New.

* binutils-all/objcopy.exp: Run copy-4.

15 years agodaily update
Alan Modra [Tue, 10 Mar 2009 00:00:08 +0000 (00:00 +0000)]
daily update

15 years agofile arcompact-dis.c was initially added on branch arc-insight_6_8-branch.
Joern Rennecke [Mon, 9 Mar 2009 21:07:42 +0000 (21:07 +0000)]
file arcompact-dis.c was initially added on branch arc-insight_6_8-branch.

15 years agofile arc-opinst.c was initially added on branch arc-insight_6_8-branch.
Joern Rennecke [Mon, 9 Mar 2009 21:07:42 +0000 (21:07 +0000)]
file arc-opinst.c was initially added on branch arc-insight_6_8-branch.

15 years agofile arc-opc.h was initially added on branch arc-insight_6_8-branch.
Joern Rennecke [Mon, 9 Mar 2009 21:07:42 +0000 (21:07 +0000)]
file arc-opc.h was initially added on branch arc-insight_6_8-branch.

15 years agofile arc-ibld.c was initially added on branch arc-insight_6_8-branch.
Joern Rennecke [Mon, 9 Mar 2009 21:07:42 +0000 (21:07 +0000)]
file arc-ibld.c was initially added on branch arc-insight_6_8-branch.

15 years agofile arc-desc.h was initially added on branch arc-insight_6_8-branch.
Joern Rennecke [Mon, 9 Mar 2009 21:07:42 +0000 (21:07 +0000)]
file arc-desc.h was initially added on branch arc-insight_6_8-branch.

15 years agofile arc-desc.c was initially added on branch arc-insight_6_8-branch.
Joern Rennecke [Mon, 9 Mar 2009 21:07:42 +0000 (21:07 +0000)]
file arc-desc.c was initially added on branch arc-insight_6_8-branch.

15 years agofile arc-asm.c was initially added on branch arc-insight_6_8-branch.
Joern Rennecke [Mon, 9 Mar 2009 21:07:42 +0000 (21:07 +0000)]
file arc-asm.c was initially added on branch arc-insight_6_8-branch.

15 years agofile ChangeLog.codito was initially added on branch arc-insight_6_8-branch.
Joern Rennecke [Mon, 9 Mar 2009 21:07:42 +0000 (21:07 +0000)]
file ChangeLog.codito was initially added on branch arc-insight_6_8-branch.

15 years agofile MANIFEST was initially added on branch arc-insight_6_8-branch.
Joern Rennecke [Mon, 9 Mar 2009 21:07:39 +0000 (21:07 +0000)]
file MANIFEST was initially added on branch arc-insight_6_8-branch.

15 years agofile arc.h was initially added on branch arc-insight_6_8-branch.
Joern Rennecke [Mon, 9 Mar 2009 20:36:11 +0000 (20:36 +0000)]
file arc.h was initially added on branch arc-insight_6_8-branch.

15 years agofile sh-sim.cpu was initially added on branch arc-insight_6_8-branch.
Joern Rennecke [Mon, 9 Mar 2009 20:36:06 +0000 (20:36 +0000)]
file sh-sim.cpu was initially added on branch arc-insight_6_8-branch.

15 years agofile arc.opc was initially added on branch arc-insight_6_8-branch.
Joern Rennecke [Mon, 9 Mar 2009 20:36:06 +0000 (20:36 +0000)]
file arc.opc was initially added on branch arc-insight_6_8-branch.

15 years agofile arc.cpu was initially added on branch arc-insight_6_8-branch.
Joern Rennecke [Mon, 9 Mar 2009 20:36:06 +0000 (20:36 +0000)]
file arc.cpu was initially added on branch arc-insight_6_8-branch.

15 years agofile ARCompact.cpu was initially added on branch arc-insight_6_8-branch.
Joern Rennecke [Mon, 9 Mar 2009 20:36:06 +0000 (20:36 +0000)]
file ARCompact.cpu was initially added on branch arc-insight_6_8-branch.

15 years ago2009-03-09 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Mon, 9 Mar 2009 18:33:42 +0000 (18:33 +0000)]
2009-03-09  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/9915
* config/tc-i386.h (LOCAL_LABELS_DOLLAR): New.  Defined as 0.
(LOCAL_LABELS_FB): Undefine befoe define.

15 years agodaily update
Alan Modra [Mon, 9 Mar 2009 00:00:04 +0000 (00:00 +0000)]
daily update

15 years agodaily update
Alan Modra [Sun, 8 Mar 2009 00:00:04 +0000 (00:00 +0000)]
daily update

15 years ago * ld-elf/empty2.d: Remove xfail for hppa*-*-*.
Dave Anglin [Sat, 7 Mar 2009 23:42:28 +0000 (23:42 +0000)]
* ld-elf/empty2.d: Remove xfail for hppa*-*-*.
* ld-elf/merge.d: Change xfail for hppa to hppa*64*-*-*.

15 years ago PR binutils/9921
Dave Anglin [Sat, 7 Mar 2009 23:38:13 +0000 (23:38 +0000)]
PR binutils/9921
* som.c (som_bfd_derive_misc_symbol_info): Set symbol type ST_ABSOLUTE
for unknown symbols in absolute section.

15 years agodaily update
Alan Modra [Sat, 7 Mar 2009 00:00:04 +0000 (00:00 +0000)]
daily update

15 years ago * options.cc (parse_short_option): Keep dash_z from registering itself.
Cary Coutant [Fri, 6 Mar 2009 23:12:37 +0000 (23:12 +0000)]
* options.cc (parse_short_option): Keep dash_z from registering itself.

15 years agoUpdated Spanish translations.
Nick Clifton [Fri, 6 Mar 2009 12:14:40 +0000 (12:14 +0000)]
Updated Spanish translations.

15 years ago09-03-05 Christophe Lyon <christophe.lyon@st.com>
Christophe Lyon [Fri, 6 Mar 2009 08:57:58 +0000 (08:57 +0000)]
09-03-05  Christophe Lyon  <christophe.lyon@st.com>

bfd/
* elf32-arm.c (group_sections): Take next section size into
account before accepting to group it.

testsuite/
* ld-arm/arm-elf.exp: Add new farcall-group-limit test.
* ld-arm/farcall-group-limit.d: New file.
* ld-arm/farcall-group3.s: New file.
* ld-arm/farcall-group4.s: New file.

15 years agodaily update
Alan Modra [Fri, 6 Mar 2009 00:00:04 +0000 (00:00 +0000)]
daily update

15 years ago2009-03-05 Christophe Lyon <christophe.lyon@st.com>
Christophe Lyon [Thu, 5 Mar 2009 17:28:21 +0000 (17:28 +0000)]
2009-03-05  Christophe Lyon  <christophe.lyon@st.com>

bfd/
* elf32-arm.c (arm_type_of_stub): Handle long branches targetting
PLT entries.
(elf32_arm_final_link_relocate): Likewise.

testsuite/
* ld-arm/arm-elf.exp: Add 2 more tests to check long branch stubs
in PLT context.
* ld-arm/farcall-mixed-app-v5.d: New file.
* ld-arm/farcall-mixed-app.d: Likewise.
* ld-arm/farcall-mixed-app.r: Likewise.
* ld-arm/farcall-mixed-app.s: Likewise.
* ld-arm/farcall-mixed-app.sym: Likewise.
* ld-arm/farcall-mixed-lib.d: Likewise.
* ld-arm/farcall-mixed-lib.r: Likewise.

15 years ago * objdump.c (disassemble_section): If the computed next offset is
Nick Clifton [Thu, 5 Mar 2009 16:31:50 +0000 (16:31 +0000)]
    * objdump.c (disassemble_section): If the computed next offset is
        not beyond the current offset then just continue to the end.

15 years agogas:
Joseph Myers [Thu, 5 Mar 2009 15:27:59 +0000 (15:27 +0000)]
gas:
* read.c (s_fill, s_space, s_float_space, float_cons, stringer,
s_incbin): Call md_cons_align (1).

gas/testsuite:
* gas/arm/mapmisc.d, gas/arm/mapmisc.dat, gas/arm/mapmisc.s: New.

15 years ago PR 9923
Alan Modra [Thu, 5 Mar 2009 01:04:56 +0000 (01:04 +0000)]
PR 9923
* peXXigen.c (_bfd_XXi_final_link_postscript): Check h->root.type.

15 years agodaily update
Alan Modra [Thu, 5 Mar 2009 00:00:04 +0000 (00:00 +0000)]
daily update

15 years ago * config/tc-alpha.c (alpha_prologue_label): Only define for ELF
Nick Clifton [Wed, 4 Mar 2009 16:15:43 +0000 (16:15 +0000)]
    * config/tc-alpha.c (alpha_prologue_label): Only define for ELF
        based targets.
        (s_alpha_comm): Only define "temp" and "log_align" local variables
        for EVAX targets.

15 years ago2009-03-04 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Wed, 4 Mar 2009 15:18:41 +0000 (15:18 +0000)]
2009-03-04  Tristan Gingold  <gingold@adacore.com>

* MAINTAINERS: Add myself as VMS maintainer.

15 years ago PR 9918
Ian Lance Taylor [Wed, 4 Mar 2009 06:46:27 +0000 (06:46 +0000)]
PR 9918
* target-reloc.h (relocate_section): Pass output_section to
relocate.
* i386.cc (Target_i386::should_apply_static_reloc): Add
output_section parameter.  Change all callers.
(Target_i386::Relocate::relocate): Add output_section parameter.
* x86_64.cc (Target_x86_64::Relocate::relocate): Likewise.
* sparc.cc (Target_sparc::Relocate::relocate): Likewise.
* powerpc.cc (Target_powerpc::Relocate::relocate): Likewise.
* testsuite/two_file_shared.sh: New script.
* testsuite/Makefile.am (check_SCRIPTS): Add two_file_shared.sh.
(check_DATA): Add two_file_shared.dbg.
(two_file_shared.dbg): New target.
* testsuite/Makefile.in: Rebuild.

15 years agoinclude/elf/
Alan Modra [Wed, 4 Mar 2009 05:50:50 +0000 (05:50 +0000)]
include/elf/
* ppc.h (R_PPC_TLSGD, R_PPC_TLSLD): Add new relocs.
* ppc64.h (R_PPC64_TLSGD, R_PPC64_TLSLD): Add new relocs.
bfd/
* reloc.c (BFD_RELOC_PPC_TLSGD, BFD_RELOC_PPC_TLSLD): New.
* section.c (struct bfd_section): Add has_tls_get_addr_call.
(BFD_FAKE_SECTION): Init new flag.
* ecoff.c (bfd_debug_section): Likewise.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.
* elf32-ppc.c (ppc_elf_howto_raw): Add R_PPC_TLSGD and R_PPC_TLSLD.
(ppc_elf_reloc_type_lookup): Handle new relocs.
(ppc_elf_check_relocs): Set has_tls_get_addr_call on finding such
without marker relocs.
(ppc_elf_tls_optimize): Allow out-of-order __tls_get_addr relocs
if section has no old-style calls.
(ppc_elf_relocate_section): Set tls_mask for non-tls relocs too.
Don't try to optimize new-style __tls_get_addr call when handling
arg setup relocs.  Instead do so for R_PPC_TLSGD and R_PPC_TLSLD
relocs.
* elf64-ppc.c (ppc64_elf_howto_raw): Add R_PPC64_TLSGD, R_PPC64_TLSLD.
(ppc64_elf_reloc_type_lookup): Handle new relocs.
(ppc64_elf_check_relocs): Set has_tls_get_addr_call on finding such
without marker relocs.
(ppc64_elf_tls_optimize): Allow out-of-order __tls_get_addr relocs
if section has no old-style calls.  Set toc_ref for new relocs as
appropriate.
(ppc64_elf_relocate_section): Set tls_mask for non-tls relocs too.
Don't try to optimize new-style __tls_get_addr call when handling
arg setup relocs.  Instead do so for R_PPC_TLSGD and R_PPC_TLSLD
relocs.
gas/
* config/tc-ppc.c (ppc_elf_suffix): Error if ppc32 tls got relocs
have non-zero addend.
(md_assemble): Parse args of __tls_get_addr calls.
(md_apply_fix): Handle BFD_RELOC_PPC_TLSGD and BFD_RELOC_PPC_TLSLD.
ld/testsuite/
* ld-powerpc/tlsmark.s, * ld-powerpc/tlsmark.d: New test.
* ld-powerpc/tlsmark32.s, * ld-powerpc/tlsmark32.d: New test.
* ld-powerpc/powerpc.exp: Run them.

15 years agobfd/
Alan Modra [Wed, 4 Mar 2009 02:10:34 +0000 (02:10 +0000)]
bfd/
PR 6768
* configure.in: Test for ld --as-needed support.  Link shared
libbfd against libm.
* configure: Regenerate.
opcodes/
PR 6768
* configure.in: Test for ld --as-needed support.  Link shared
libopcodes against libm.
* configure: Regenerate.

15 years agomissing from make dep-am commit
Alan Modra [Wed, 4 Mar 2009 01:16:15 +0000 (01:16 +0000)]
missing from make dep-am commit

15 years agoopcodes/
Peter Bergner [Wed, 4 Mar 2009 01:00:53 +0000 (01:00 +0000)]
opcodes/
* ppc-opc.c (powerpc_opcodes): Reorder the opcode table so that
instructions from newer processors are listed before older ones.

15 years agodaily update
Alan Modra [Wed, 4 Mar 2009 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago * config/hppa.sed: Fix spelling.
Dave Anglin [Tue, 3 Mar 2009 23:27:13 +0000 (23:27 +0000)]
* config/hppa.sed: Fix spelling.

15 years ago binutils/3807
Dave Anglin [Tue, 3 Mar 2009 23:21:52 +0000 (23:21 +0000)]
binutils/3807
* config/tc-hppa.h (tc_frob_symbol): Don't frob absolute symbols with
local scope for ELF targets.

15 years ago * config/tc-ppc.c (md_assemble): APUinfo only for e500.
Alan Modra [Tue, 3 Mar 2009 23:15:04 +0000 (23:15 +0000)]
* config/tc-ppc.c (md_assemble): APUinfo only for e500.

15 years ago * emultempl/pe.em (debug_section_p): New bfd_map_over_sections hook.
Dave Korn [Tue, 3 Mar 2009 18:22:11 +0000 (18:22 +0000)]
* emultempl/pe.em (debug_section_p):  New bfd_map_over_sections hook.
(gld_${EMULATION_NAME}_after_open):  Use it to iterate all sections
of all input BFDs, looking for debug info.  Enable long section names
if any found.
* emultempl/pe.em (debug_section_p):  Likewise.
(gld_${EMULATION_NAME}_after_open):  Likewise.
* NEWS:  Retrospectively adjust news announcement.
* ld.texinfo:  Update documentation to mention new behaviour.

15 years ago2009-03-03 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Tue, 3 Mar 2009 10:04:58 +0000 (10:04 +0000)]
2009-03-03  Tristan Gingold  <gingold@adacore.com>
    Eric Botcazou  <ebotcazou@adacore.com>
    Douglas B Rupp  <rupp@gnat.com>

* doc/as.texinfo (Overview): Mention -replace/-noreplace options
for Alpha.
* doc/c-alpha.texi (Alpha Options): Document -replace/-noreplace.
* config/tc-alpha.h (TC_VALIDATE_FIX_SUB): Define to 1 (evax).
(OBJ_SYMFIELD_TYPE): Remove.
(tc_canonicalize_symbol_name): Define to evax_shorten_name.
(TC_IMPLICIT_LCOMM_ALIGNMENT): For alignment to 3 on evax.
(tc_frob_file_before_fix): Do not defined on evax.
* config/tc-alpha.c: Always includes dwarf2dbg.h.
Include vms.h if OBJ_EVAX.
(struct alpha_fixup): Add xtrasym and procsym (evax only).
(enum alpha_macro_arg): Remove trailing comma.
(md_longopts): Add replace and noreplace arguments (evax only).
(alpha_evax_proc_hash): New variable.
(alpha_link_section): Make it global.
(alpha_ctors_section, alpha_dtors_section): Removed.
(alpha_ctors_symbol, alpha_dtors_symbol): Ditto.
(alpha_lit8_section): Ifndef'ed on evax.
(alpha_lit8_symbol): Ditto.
(alpha_prologue_label): New variable.
(alpha_linkage_symbol): New variable (evax only).
(alpha_flag_replace): Ditto.
(struct alpha_evax_procs): Add handler and handler_data field.
(alpha_evax_proc): Now of type pointer.
(alpha_linkage_fixup_root, alpha_linkage_fixup_tail): New variables.
(struct alpha_reloc_tag): Add sym and psym fields (evax only).
(get_alpha_reloc_tag): Initialize sym and psym fields (evax only).
(alpha_adjust_relocs): Ifndef'ed on evax.
(load_expression): Add opname argument.
Implement LDA/BSR optimization for evax.
(emit_lda): Adjust for new prototype of load_expression.
(emit_ir_load): Ditto. Do not nothing for GP if ..lk symbols.
(emit_loadstore): Likewise.
(emit_ldXu): Likewise.
(emit_stX): Likewise.
(emit_jsrjmp): Likewise.  Implement LDA/BSR optimization for evax.
(emit_ldgp): Avoid warning in evax case.
(add_to_link_pool): Make it static.  Return symbolic expression rather
than number expression for the offset.
(s_alpha_text): Create .text symbol for evax if not already created.
(s_alpha_comm): Do not create specific section for common symbol.
Fill common area with zeros for evax.
(s_alpha_prologue): Create alpha_prologue_label.
(s_alpha_section_name): New function (evax).
(s_alpha_section_word): Likewise.
(section_name): New static variabke moved out from ...
(s_alpha_section): ... here.  Create new sections on demand.
(s_alpha_literals): New function (evax).
(s_alpha_ent): Create alpha_evax_proc instance and insert it in the
alpha_evax_proc_hash table.
(s_alpha_handler): New function (evax).
(s_alpha_frame): Adjust for new type of alpha_evax_proc.
(s_alpha_prologue): New function (evax).
(s_alpha_pdesc): Adjust for new type of alpha_evax_proc and new
handling of procedures with hash table.
Add support for condition handlers.
(s_alpha_linkage): Create linkage_fixup instance and chain it.
(s_alpha_fp_save): Adjust for new type of alpha_evax_proc.
(s_alpha_mask): Likewise.
(s_alpha_fmask): Likewise.
(s_alpha_end): Clear alpha_evax_proc.
(s_alpha_align): Increase max_alignment to 16.
(alpha_print_token): Call print_expr_1 instead of print_expr.
(md_pseudo_table): Add "section", "literals", "handler" and
"handler_data" (evax).  Do not ignore "prologue" on evax.
Fix indentation.
(md_begin): Create hash table for alpha_evax_proc_hash.
(md_parse_option): Handle OPTION_REPLACE and OPTION_NOREPLACE.
(md_show_usage): Mention -replace/-noreplace for evax.
(md_apply_fix): Handle evax relocs (_NOP, _LDA, _BSR and _BOH).
(alpha_force_relocation): Likewise.
(alpha_fix_adjustable): Likewise. Add BFD_RELOC_16 case.
(tc_gen_reloc): Likewise.  Add BFD_RELOC_ALPHA_LINKAGE for evax.
(emit_insn): New cases for evax specific relocs.
(assemble_insn): Fix indentation.
Take care of -MDISP in operand table.
* config/obj-evax.h (struct alpha_linkage_fixups): New struct.
(OBJ_SYMFIELD_TYPE): New macro.
(obj_symbol_new_hook): Define.
(obj_frob_symbol, obj_frob_file_before_adjust): Ditto.
(obj_frob_file_before_fix): Ditto.
(PDSC_S_M_HANDLER_VALID): New macro.
(PDSC_S_M_HANDLER_DATA_VALID): Ditto.
(TC_IMPLICIT_LCOMM_ALIGNMENT): Remove.
Add prototypes for functions declared in obj-evax.c
* config/obj-evax.c: Include subsegs.h, struc-symbol.h, safe-ctype.h.
(s_evax_weak): Convert to ansi-C.
(evax_symbol_new_hook): New function.
(evax_frob_symbol): Ditto.
(evax_frob_file_before_adjust): Ditto.
(evax_frob_file_before_fix): Ditto.
(evax_shorten_name): Ditto.
(crc32): Ditto.
(encode_32): Ditto.
(encode_16): Ditto.
(decode_16): Ditto.
(shorten_identifier): Ditto.
(is_truncated_identifier): Ditto.
* dwarf2dbg.c (out_debug_info): Do not append trailing slash on VMS.
* as.c (close_output_file): Remove #ifndef OBJ_VMS.
(main): Ditto.

15 years agoUpdate formatting.
Nick Clifton [Tue, 3 Mar 2009 08:30:33 +0000 (08:30 +0000)]
Update formatting.

15 years agomake dep-am and regen
Alan Modra [Tue, 3 Mar 2009 02:41:14 +0000 (02:41 +0000)]
make dep-am and regen
opcodes/
* Makefile.am (HFILES): Move lm32-desc.h and lm32-opc.h from..
(CFILES): ..here.

15 years ago * objdump.c (disassemble_section): Mask address before sign extending.
Alan Modra [Tue, 3 Mar 2009 01:27:15 +0000 (01:27 +0000)]
* objdump.c (disassemble_section): Mask address before sign extending.

15 years agodaily update
Alan Modra [Tue, 3 Mar 2009 00:00:07 +0000 (00:00 +0000)]
daily update

15 years ago * binutils-all/localize-hidden-1.s: Change .equ to .set.
Dave Anglin [Mon, 2 Mar 2009 23:33:02 +0000 (23:33 +0000)]
* binutils-all/localize-hidden-1.s: Change .equ to .set.
* binutils-all/localize-hidden-2.s: Likewise.

15 years ago * ldgram.y: Add support for REGION_ALIAS operator.
Nick Clifton [Mon, 2 Mar 2009 17:27:36 +0000 (17:27 +0000)]
    * ldgram.y: Add support for REGION_ALIAS operator.
        * ldlang.c: Likewise.
        * ldlang.h: Likewise.
        * ldlex.l: Likewise.
        * NEWS: Mention the new feature.
        * ld.texinfo: Document the new feature.
        * ld-scripts/regions-alias-1.t: New file.
        * ld-scripts/regions-alias-2.t: New file.
        * ld-scripts/regions-alias-3.t: New file.
        * ld-scripts/regions-alias-4.t: New file.
        * ld-scripts/script.exp: Run region alias tests.

15 years ago * ieee.c (parse_ieee_ty): Add support for undocumented 'v' type.
Nick Clifton [Mon, 2 Mar 2009 16:18:54 +0000 (16:18 +0000)]
    * ieee.c (parse_ieee_ty): Add support for undocumented 'v' type.
        (parse_ieee_bb): Set the filename if it has not already been
        discovered.

15 years ago * readelf.c (adjust_relative_path): New function.
Nick Clifton [Mon, 2 Mar 2009 16:06:50 +0000 (16:06 +0000)]
    * readelf.c (adjust_relative_path): New function.
        (struct archive_info): New type.
        (setup_archive): New function.
        (release_archive): New function.
        (setup_nested_archive): New function.
        (get_archive_member_name): New function.
        (get_archive_member_name_at): New function.
        (make_qualified_name): New function.
        (process_archive): Factor out code for reading archive index and
        long filename table to setup_archive.  Add support for thin archives.

15 years ago PR 9874
Nick Clifton [Mon, 2 Mar 2009 14:47:38 +0000 (14:47 +0000)]
    PR 9874
        * config/tc-ia64.c (fix_insn): Fix warning reported by
        -Wformat-security.

15 years ago * po/sk.po: Updated Slovak translation.
Nick Clifton [Mon, 2 Mar 2009 14:42:47 +0000 (14:42 +0000)]
    * po/sk.po: Updated Slovak translation.

15 years agoAdd support for Score7 architecture.
Nick Clifton [Mon, 2 Mar 2009 10:33:08 +0000 (10:33 +0000)]
Add support for Score7 architecture.

15 years agoelfcpp:/
Ian Lance Taylor [Mon, 2 Mar 2009 02:45:29 +0000 (02:45 +0000)]
elfcpp:/
* elfcpp_swap.h: #include "config.h".  Only #include <byteswap.h>
if HAVE_BYTESWAP_H is defined; if not, provide definitions for
bswap_{16,32,64}.  For gcc 4.3 and later, use the builtin bswap
functions.  Check WORDS_BIGENDIAN rather than __BYTE_ORDER.
gold:/
* configure.ac: Check for byteswap.h.
* configure: Rebuild.
* config.in: Rebuild.

15 years ago * config/tc-arm.c (md_assemble): Allow barrier instructions on
Mark Mitchell [Mon, 2 Mar 2009 00:29:23 +0000 (00:29 +0000)]
* config/tc-arm.c (md_assemble): Allow barrier instructions on
ARMv6-M cores.

* gas/arm/archv6m.s: Add dmb, dsb, and isb.
* gas/arm/archv6m.d: Likewise.

15 years agodaily update
Alan Modra [Mon, 2 Mar 2009 00:00:04 +0000 (00:00 +0000)]
daily update

15 years ago * layout.cc (Layout::find_or_add_kept_section): New function.
Ian Lance Taylor [Sun, 1 Mar 2009 22:22:02 +0000 (22:22 +0000)]
* layout.cc (Layout::find_or_add_kept_section): New function.
(Layout::add_comdat): Removed.
* layout.h (struct Kept_section): Move out of class Layout.
Remove trailing underscores from field names.  Add group_sections
field.  Rename group_ field to is_group.  Change all uses.
(class Layout): Declare find_or_add_kept_section, not add_comdat.
* object.cc (Sized_relobj::Sized_relobj): Don't initialize
comdat_groups_ field.
(Sized_relobj::include_section_group): Use
find_or_add_kept_section and Kept_section::group_sections.
(Sized_relobj::include_linkonce_section): Likewise.
* object.cc (class Sized_relobj): Don't define Comdat_group or
Comdat_group_table.  Remove find_comdat_group and
add_comdat_group.  Remove comdat_groups_ field.
* plugin.cc (include_comdat_group): Use
Layout::find_or_add_kept_section.

15 years ago * configure.tgt: Only use elf64hppa target emulation for hpux.
Dave Anglin [Sun, 1 Mar 2009 22:10:36 +0000 (22:10 +0000)]
* configure.tgt: Only use elf64hppa target emulation for hpux.
* emulparams/elf64hppa.sh: Don't include hppa64linux.sh.
(SCRIPT_NAME): Use new script elf64hppa.
(SCRIPT_NAME, ELFSIZE, NO_REL_RELOCS, ARCH, MACHINE, ENTRY,
TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT, OTHER_READONLY_SECTIONS,
OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS, OTHER_GOT_RELOC_SECTIONS,
DATA_START_SYMBOLS, OTHER_SYMBOLS, DATA_PLT, PLT_BEFORE_GOT,
TEXT_DYNAMIC): Define.
* emulparams/hppa64linux.sh: Adjust comments.
* scripttempl/elf64hppa.sc: New file.

15 years ago Backport from git Libtool:
Ralf Wildenhues [Sun, 1 Mar 2009 18:57:19 +0000 (18:57 +0000)]
Backport from git Libtool:

2009-01-19  Robert Millan  <rmh@aybabtu.com>
Support GNU/kOpenSolaris.
* libltdl/m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER)
(_LT_CHECK_MAGIC_METHOD, _LT_COMPILER_PIC, _LT_LINKER_SHLIBS)
(_LT_LANG_CXX_CONFIG) [kopensolaris*-gnu]: Recognize
GNU/kOpenSolaris.

binutils/
* configure: Regenerate.

opcodes/
* configure: Regenerate.

bfd/
* configure: Regenerate.

gas/
* configure: Regenerate.

gprof/
* configure: Regenerate.

ld/
* configure: Regenerate.

15 years ago * elf32-hppa.c (hppa32_elf_local_refcounts): New function.
Dave Anglin [Sun, 1 Mar 2009 18:15:53 +0000 (18:15 +0000)]
* elf32-hppa.c (hppa32_elf_local_refcounts): New function.
(elf32_hppa_check_relocs): Use it.

15 years ago * elf_hppa_add_symbol_hook (elf_hppa_add_symbol_hook): Move to
Dave Anglin [Sun, 1 Mar 2009 17:08:54 +0000 (17:08 +0000)]
* elf_hppa_add_symbol_hook (elf_hppa_add_symbol_hook): Move to
elf64-hppa.c.
(elf_hppa_unmark_useless_dynamic_symbols): Likewise.
(elf_hppa_remark_useless_dynamic_symbols): Likewise.
(elf_hppa_is_dynamic_loader_symbol): Likewise.
(elf_hppa_record_segment_addrs): Likewise.
(elf_hppa_final_link): Likewise.
(elf_hppa_relocate_insn): Likewise.
(elf_hppa_final_link_relocate): Likewise.
(elf64_hppa_relocate_section): Likewise.
* elf64-hppa.c: Insert above.

15 years ago * elf-hppa.h (elf_hppa_final_link): Use elf_hppa_final_link. sid-snapshot-20090301
Dave Anglin [Sun, 1 Mar 2009 02:10:49 +0000 (02:10 +0000)]
* elf-hppa.h (elf_hppa_final_link): Use elf_hppa_final_link.
(elf_hppa_final_link_relocate ): Rewrite eliminating dynamic hash table.
(elf_hppa_relocate_section): Likewise.
* elf64-hppa.c (struct elf64_hppa_link_hash_entry): Change to derive
from struct elf_link_hash_entry.  Add count field.
(struct elf64_hppa_dyn_hash_table): Delete.
(struct elf64_hppa_link_hash_table): Delete dyn_hash_table field.
(elf64_hppa_hash_table): Rename to hppa_link_hash_table.
(hppa_elf_hash_entry, eh_name): Define.
(elf64_hppa_new_dyn_hash_entry): Delete.
(elf64_hppa_dyn_hash_lookup): Delete.
(elf64_hppa_dyn_hash_traverse): Delete.
(get_dyn_name): Delete.
(elf64_hppa_finalize_opd): Use struct elf_link_hash_entry * instead
of struct elf64_hppa_dyn_hash_entry *.
(elf64_hppa_finalize_dlt, llocate_global_data_dlt,
allocate_global_data_plt, allocate_global_data_stub,
allocate_global_data_opd, count_dyn_reloc, allocate_dynrel_entries):
Likewise.
(hppa64_link_hash_newfunc): New.
(elf64_hppa_hash_table_create): Rework.
(count_dyn_reloc): Likewise.
(hppa64_elf_local_refcounts): New.
(elf64_hppa_check_relocs): Rework using standard technique for recording
local DLT, PLT and OPD reference counts.
(elf64_hppa_dynamic_symbol_p): Revise using "eh" for struct
elf_link_hash_entry *.
(elf64_hppa_mark_exported_functions, allocate_global_data_dlt,
allocate_global_data_plt, allocate_global_data_stub,
allocate_global_data_opd, allocate_dynrel_entries,
elf64_hppa_adjust_dynamic_symbol,
elf64_hppa_mark_milli_and_exported_functions): Likewise.
(elf64_hppa_create_dynamic_sections, elf64_hppa_size_dynamic_sections):
Use hppa_link_hash_table.  Rework.
(elf64_hppa_link_output_symbol_hook): Rework.
(elf64_hppa_finish_dynamic_symbol, elf64_hppa_finalize_opd,
elf64_hppa_finalize_dlt, elf64_hppa_finalize_dynreloc,
elf64_hppa_finish_dynamic_sections): Likewise.

15 years agodaily update
Alan Modra [Sun, 1 Mar 2009 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago * README: --gc-sections and map files are now supported. Document
Ian Lance Taylor [Sat, 28 Feb 2009 18:08:30 +0000 (18:08 +0000)]
* README: --gc-sections and map files are now supported.  Document
some build requirements.

15 years ago PR 6992
Ian Lance Taylor [Sat, 28 Feb 2009 17:53:16 +0000 (17:53 +0000)]
PR 6992
* symtab.cc (Symbol_table::sized_write_section_symbol): In a
relocatable link set the value of the section symbol to zero.
* object.cc (Sized_relobj::do_finalize_local_symbols): In a
relocatable link don't include the section address in the local
symbol value.

15 years ago PR 6811
Ian Lance Taylor [Sat, 28 Feb 2009 04:39:57 +0000 (04:39 +0000)]
PR 6811
* options.h (class Search_directory): Add is_system_directory.
(class General_options): Declare is_in_system_directory.
* options.cc (get_relative_sysroot): Make static.
(get_default_sysroot): Make static.
(General_optoins::is_in_system_directory): New function.
* fileread.cc (Input_file::is_in_system_directory): New function.
* fileread.h (class Input_file): Declare is_in_system_directory.
* object.h (class Object): Add is_in_system_directory.
(class Input_objects): Remove system_library_directory_ field.
* object.cc (Input_objects::add_object): Don't set
system_library_directory_.
(input_objects::found_in_system_library_directory): Remove.
* symtab.cc (Symbol_table::write_globals): Remove input_objects
parameter.  Change all callers.
(Symbol_table::sized_write_globals): Likewise.
(Symbol_table::warn_about_undefined_dynobj_symbol): Likewise.
Call Object::is_in_system_directory.
* symtab.h (class Symbol_table): Update declarations.

15 years ago PR 5990
Ian Lance Taylor [Sat, 28 Feb 2009 03:05:08 +0000 (03:05 +0000)]
PR 5990
* descriptors.h (Open_descriptor): Add is_on_stack field.
* descriptors.cc (Descriptors::open): If the descriptor is on the
top of the stack, remove it.  Initialize is_on_stack field.
(Descriptors::release): Only add pod to stack if it is not on the
stack already.
(Descriptors::close_some_descriptor): Clear stack_next and
is_on_stack fields.

15 years ago PR 7091
Ian Lance Taylor [Sat, 28 Feb 2009 00:12:26 +0000 (00:12 +0000)]
PR 7091
* output.cc (Output_section::find_starting_output_address): Rename
from starting_output_address; add PADDR parameter; change return
type.
* output.h (class Output_section): Declare
find_starting_output_address instead of starting_output_address.
* object.cc (Sized_relobj::do_finalize_local_symbols): Handle a
section symbol for which we can't find a merge section.

15 years agodaily update
Alan Modra [Sat, 28 Feb 2009 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago2009-02-27 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Fri, 27 Feb 2009 20:13:04 +0000 (20:13 +0000)]
2009-02-27  H.J. Lu  <hongjiu.lu@intel.com>

* i386-dis.c (OP_EX): Call OP_E_memory instead of OP_E.

15 years ago PR 9836
Ian Lance Taylor [Fri, 27 Feb 2009 19:57:46 +0000 (19:57 +0000)]
PR 9836
* symtab.cc (Symbol_table::add_from_object): If the visibility is
hidden or internal, force the symbol to be local.
* resolve.cc (Symbol::override_visibility): Define.
(Symbol::override_base): Use override_visibility.
(Symbol_table::resolve): Likewise.
(Symbol::override_base_with_special): Likewise.
(Symbol_table::override_with_special): If the visibility is hidden
or internal, force the symbol to be local.
* symtab.h (class Symbol): Add set_visibility and
override_visibility.
* testsuite/ver_test_1.sh: New file.
* testsuite/Makefile.am (check_SCRIPTS): Add ver_test_1.sh.
(check_DATA): Add ver_test_1.syms.
(ver_test_1.syms): New target.
* testsuite/Makefile.in: Rebuild.

15 years agold/ChangeLog
Dave Korn [Fri, 27 Feb 2009 19:01:57 +0000 (19:01 +0000)]
ld/ChangeLog

* emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):  Set
default state of auto-import flag based on $target.

ld/testsuite/ChangeLog

* ld-pe/pe.exp:  Disable auto-import when linking on Cygwin.

15 years agodaily update
Alan Modra [Fri, 27 Feb 2009 00:00:08 +0000 (00:00 +0000)]
daily update

15 years agogas/
Peter Bergner [Thu, 26 Feb 2009 22:07:33 +0000 (22:07 +0000)]
gas/
* config/tc-ppc.c (pre_defined_registers): Add "f32" to "f63",
"f.32" to "f.63", "vs0" to "vs63" and "vs.0" to "vs.63".
(parse_cpu): Extend -mpower7 to accept power7 and isel instructions.

gas/testsuite/
* gas/ppc/e500mc.d ("wait", "waitsrv", "waitimpl"): Add tests.
* gas/ppc/e500mc.s: Likewise.
* gas/ppc/power6.d ("cdtbcd", "cbcdtd", "addg6s"): Add tests.
* gas/ppc/power6.s: Likewise.
* gas/ppc/power7.d ("lfdpx", "mffgpr", "mftgpr"): Remove invalid tests.
("wait", "waitsrv", "waitimpl", "divwe", "divwe.", "divweo", "divweo.",
"divweu", "divweu.", "divweuo", "divweuo.", "bpermd", "popcntw",
"popcntd", "ldbrx", "stdbrx", "lfiwzx", "lfiwzx", "fcfids", "fcfids.",
"fcfidus", "fcfidus.", "fctiwu", "fctiwu.", "fctiwuz", "fctiwuz.",
"fctidu", "fctidu.", "fctiduz", "fctiduz.", "fcfidu", "fcfidu.",
"ftdiv", "ftdiv", "ftsqrt", "ftsqrt", "dcbtt", "dcbtstt", "dcffix",
"dcffix.", "lbarx", "lbarx", "lbarx", "lharx", "lharx", "lharx",
"stbcx.", "sthcx.", "fre", "fre.", "fres", "fres.", "frsqrte",
"frsqrte.", "frsqrtes", "frsqrtes.", "isel"): Add tests.
* gas/ppc/power7.s: Likewise.
* gas/ppc/vsx.d: New test.
* gas/ppc/vsx.s: Likewise.
* gas/ppc/ppc.exp: Run it.

include/opcode/
* ppc.h (PPC_OPCODE_POWER7): New.

opcodes/
* ppc-dis.c (powerpc_init_dialect): Extend -Mpower7 to disassemble
the power7 and the isel instructions.
* ppc-opc.c (insert_xc6, extract_xc6): New static functions.
(insert_dm, extract_dm): Likewise.
(XB6): Update comment to include XX2 form.
(WC, XC6, SHW, DMEX, UIM, XX2, XX3RC, XX4, XX2_MASK, XX2UIM_MASK,
XX2BF_MASK, XX3BF_MASK, XX3SHW_MASK, XX4_MASK, XWC_MASK, POWER7): New.
(RemoveXX3DM): Delete.
(powerpc_opcodes): <"lfdp", "lfdpx", "mcrxr", "mftb", "mffgpr",
"mftgpr">: Deprecate for POWER7.
<"fres", "fres.", "frsqrtes", "frsqrtes.", "fre", "fre.", "frsqrte",
"frsqrte.">: Deprecate the three operand form and enable the two
operand form for POWER7 and later.
<"wait">: Extend to accept optional parameter.  Enable for POWER7.
<"waitsrv", "waitimpl">: Add extended opcodes.
<"ldbrx", "stdbrx">: Enable for POWER7.
<"cdtbcd", "cbcdtd", "addg6s">: Add POWER6 opcodes.
<"bpermd", "dcbtstt", "dcbtt", "dcffix.", "dcffix", "divde.", "divde",
"divdeo.", "divdeo", "divdeu.", "divdeu", "divdeuo.", "divdeuo",
"divwe.", "divwe", "divweo.", "divweo", "divweu.", "divweu", "divweuo.",
"divweuo", "fcfids.", "fcfids", "fcfidu.", "fcfidu", "fcfidus.",
"fcfidus", "fctidu.", "fctidu", "fctiduz.", "fctiduz", "fctiwu.",
"fctiwu", "fctiwuz.", "fctiwuz", "ftdiv", "ftsqrt", "lbarx", "lfiwzx",
"lharx", "popcntd", "popcntw", "stbcx.", "sthcx.">: Add POWER7 opcodes.
<"lxsdux", "lxsdx", "lxvdsx", "lxvw4ux", "lxvw4x", "stxsdux", "stxsdx",
"stxvw4ux", "stxvw4x", "xsabsdp", "xsadddp", "xscmpodp", "xscmpudp",
"xscpsgndp", "xscvdpsp", "xscvdpsxds", "xscvdpsxws", "xscvdpuxds",
"xscvdpuxws", "xscvspdp", "xscvsxddp", "xscvuxddp", "xsdivdp",
"xsmaddadp", "xsmaddmdp", "xsmaxdp", "xsmindp", "xsmsubadp",
"xsmsubmdp", "xsmuldp", "xsnabsdp", "xsnegdp", "xsnmaddadp",
"xsnmaddmdp", "xsnmsubadp", "xsnmsubmdp", "xsrdpi", "xsrdpic",
"xsrdpim", "xsrdpip", "xsrdpiz", "xsredp", "xsrsqrtedp", "xssqrtdp",
"xssubdp", "xstdivdp", "xstsqrtdp", "xvabsdp", "xvabssp", "xvadddp",
"xvaddsp", "xvcmpeqdp.", "xvcmpeqdp", "xvcmpeqsp.", "xvcmpeqsp",
"xvcmpgedp.", "xvcmpgedp", "xvcmpgesp.", "xvcmpgesp", "xvcmpgtdp.",
"xvcmpgtdp", "xvcmpgtsp.", "xvcmpgtsp", "xvcpsgnsp", "xvcvdpsp",
"xvcvdpsxds", "xvcvdpsxws", "xvcvdpuxds", "xvcvdpuxws", "xvcvspdp",
"xvcvspsxds", "xvcvspsxws", "xvcvspuxds", "xvcvspuxws", "xvcvsxddp",
"xvcvsxdsp", "xvcvsxwdp", "xvcvsxwsp", "xvcvuxddp", "xvcvuxdsp",
"xvcvuxwdp", "xvcvuxwsp", "xvdivdp", "xvdivsp", "xvmaddadp",
"xvmaddasp", "xvmaddmdp", "xvmaddmsp", "xvmaxdp", "xvmaxsp",
"xvmindp", "xvminsp", "xvmovsp", "xvmsubadp", "xvmsubasp", "xvmsubmdp",
"xvmsubmsp", "xvmuldp", "xvmulsp", "xvnabsdp", "xvnabssp", "xvnegdp",
"xvnegsp", "xvnmaddadp", "xvnmaddasp", "xvnmaddmdp", "xvnmaddmsp",
"xvnmsubadp", "xvnmsubasp", "xvnmsubmdp", "xvnmsubmsp", "xvrdpi",
"xvrdpic", "xvrdpim", "xvrdpip", "xvrdpiz", "xvredp", "xvresp",
"xvrspi", "xvrspic", "xvrspim", "xvrspip", "xvrspiz", "xvrsqrtedp",
"xvrsqrtesp", "xvsqrtdp", "xvsqrtsp", "xvsubdp", "xvsubsp", "xvtdivdp",
"xvtdivsp", "xvtsqrtdp", "xvtsqrtsp", "xxland", "xxlandc", "xxlnor",
"xxlor", "xxlxor", "xxmrghw", "xxmrglw", "xxsel", "xxsldwi", "xxspltd",
"xxspltw", "xxswapd">: Add VSX opcodes.

15 years ago2009-02-26 Christophe Lyon <christophe.lyon@st.com>
Christophe Lyon [Thu, 26 Feb 2009 15:37:53 +0000 (15:37 +0000)]
2009-02-26  Christophe Lyon  <christophe.lyon@st.com>

bfd/
* elf32-arm.c (stub_reloc_type): Removed.
(insn_sequence): Renamed reloc_type field to r_type.
(elf32_arm_stub_long_branch_v4t_arm_thumb_pic): New stub.
(elf32_arm_stub_long_branch_v4t_thumb_arm_pic): Likewise.
(elf32_arm_stub_long_branch_thumb_only_pic): Likewise.
(elf32_arm_stub_type): Add new enum entries for the new stubs.
(arm_stub_is_thumb): Catch new stubs.
(arm_type_of_stub): Handle new stubs.
(arm_size_one_stub): Use ARRAY_SIZE. Handle new stubs.
(bfd_elf32_arm_process_before_allocation): Remove useless
condition.

testsuite/
* ld-arm/arm-elf.exp: Add 3 tests for the 3 new stubs.
* ld-arm/farcall-thumb-arm-pic-veneer.d: New expected result, the
test is now expected to pass.
* ld-arm/farcall-thumb-thumb-m-pic-veneer.d: Likewise.
* ld-arm/farcall-thumb-thumb-pic-veneer.d: Likewise.

15 years agodaily update
Alan Modra [Thu, 26 Feb 2009 00:00:10 +0000 (00:00 +0000)]
daily update