OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
15 years ago ld/testsuite/
Daniel Jacobowitz [Mon, 23 Feb 2009 21:51:35 +0000 (21:51 +0000)]
ld/testsuite/
* ld-arm/arm-elf.exp (armeabitests): Run new tests.  Correct BE8 output
filename.
* ld-arm/farcall-arm-arm-be.d, ld-arm/farcall-thumb-arm-be.d: New.

15 years ago2009-02-23 Christophe Lyon <christophe.lyon@st.com>
Daniel Jacobowitz [Mon, 23 Feb 2009 21:48:53 +0000 (21:48 +0000)]
2009-02-23  Christophe Lyon  <christophe.lyon@st.com>

bfd/
* elf32-arm.c (stub_insn_type): New type.
(stub_reloc_type): Likewise.
(insn_sequence): Likewise.
(elf32_arm_stub_long_branch_any_any): Encode using insn_sequence.
(elf32_arm_stub_long_branch_v4t_arm_thumb): Likewise.
(elf32_arm_stub_long_branch_thumb_only): Likewise.
(elf32_arm_stub_long_branch_v4t_thumb_arm): Likewise.
(elf32_arm_stub_short_branch_v4t_thumb_arm): Likewise.
(elf32_arm_stub_long_branch_any_any_pic): Likewise.
(elf32_arm_stub_hash_entry): Add new helper fields.
(stub_hash_newfunc): Initialize these new fields.
(arm_build_one_stub): Encode Arm and Thumb instructions separately
to take endianness into account.
(arm_size_one_stub): Compute size of stubs using insn_sequence.
(arm_map_one_stub): Code is now more generic, thanks to
insn_sequence.

ld/testsuite/
* ld-arm/arm-elf.exp: Add new farcall-thumb-arm-be8 test.
* ld-arm/farcall-thumb-arm-be8.d: New expected result.
* ld-arm/farcall-arm-arm-be8.d: Replace wildcards by instructions.

15 years agogas/
H.J. Lu [Mon, 23 Feb 2009 20:41:46 +0000 (20:41 +0000)]
gas/

2009-02-23  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (vex_imm4): Removed.
(VEX_check_operands): Likewise.
(match_template): Updated.

opcodes/

2009-02-23  H.J. Lu  <hongjiu.lu@intel.com>

* i386-gen.c (operand_type_init): Remove OPERAND_TYPE_VEX_IMM4.
(operand_types): Remove Vex_Imm4.

* i386-opc.h (Vex_Imm4): Removed.
(OTMax): Updated.
(i386_operand_type): Remove vex_imm4.

* i386-opc.tbl: Remove Vex_Imm4 comments.
* i386-init.h: Regenerated.
* i386-tbl.h: Likewise.

15 years ago * objdump.c (load_specific_debug_section): New function, from
Cary Coutant [Mon, 23 Feb 2009 19:44:58 +0000 (19:44 +0000)]
* objdump.c (load_specific_debug_section): New function, from
load_debug_section.
(load_debug_section): Use load_specific_debug_section.
(dump_dwarf_section): Likewise.

15 years ago * readelf.c (parse_args): Select all sections explicitly for -w.
Cary Coutant [Mon, 23 Feb 2009 19:01:47 +0000 (19:01 +0000)]
* readelf.c (parse_args): Select all sections explicitly for -w.

15 years ago * arm-dis.c (neon_opcodes): Correct bit-mask and patterns for
Richard Earnshaw [Mon, 23 Feb 2009 14:58:34 +0000 (14:58 +0000)]
* arm-dis.c (neon_opcodes): Correct bit-mask and patterns for
vq{r}shr{u}n.s64 insnstructions.

15 years ago * doc/all.texi: Set S390.
Martin Schwidefsky [Mon, 23 Feb 2009 10:10:25 +0000 (10:10 +0000)]
* doc/all.texi: Set S390.
* doc/as.texinfo: Add S390 support and pull in c-s390.texi.
* doc/Makefile.am (CPU_DOCS): Add c-s390.texi.
* doc/Makefile.in: Likewise.
* doc/c-s390.texi: New.

15 years ago2009-02-23 Christophe Lyon <christophe.lyon@st.com>
Christophe Lyon [Mon, 23 Feb 2009 10:03:47 +0000 (10:03 +0000)]
2009-02-23  Christophe Lyon  <christophe.lyon@st.com>

bfd/
* elf32-arm.c (elf32_arm_stub_long_branch_thumb_only): Fix stub
code.
(elf32_arm_stub_long_branch_v4t_thumb_arm): Likewise.
(arm_type_of_stub): Use Thumb-only long branch stub (non-PIC) when
BLX is not available. Fix typo in warning message. Add comments
and improve formatting.
(arm_build_one_stub): Adjust to new
elf32_arm_stub_long_branch_v4t_thumb_arm stub.
(arm_map_one_stub): Likewise.

testsuite/
* ld-arm/arm-elf.exp: Rewrite non-EABI variants of
thumb2-bl-as-thumb1-bad and thumb2-bl-bad tests, which now
pass. farcall-thumb-thumb now passes in EABI mode.
* ld-arm/farcall-thumb-arm-pic-veneer.d: Fixed name, source, as
and ld flags to match intended test.
* ld-arm/farcall-thumb-arm.d: New expected result.
* ld-arm/farcall-thumb-thumb-m.d: Likewise.
* ld-arm/farcall-thumb-thumb-m-pic-veneer.d: Fixed name and ld
flags.
* ld-arm/farcall-thumb-thumb-pic-veneer.d: Likewise.
* ld-arm/farcall-thumb-thumb.d: New expected result, this test is
now expected to pass.
* ld-arm/thumb2-bl-as-thumb1-bad-noeabi.d: Likewise.
* ld-arm/thumb2-bl-bad-noeabi.d: Likewise.
* ld-arm/thumb2-bl-as-thumb1-bad.d: Update addresses according to
new use.
* ld-arm/thumb2-bl-as-thumb1-bad.s: Update comment.

15 years ago2009-02-23 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Mon, 23 Feb 2009 09:28:43 +0000 (09:28 +0000)]
2009-02-23  Tristan Gingold  <gingold@adacore.com>

* vms.h: Update copyright year, fix comments, reorder declarations.
(_bfd_save_vms_section): Remove the prototype.
(EGPS_S_V_NO_SHIFT): New constant.
(bfd_vms_set_section_flags): New prototype.
(EGPS_S_B_ALIGN, EGPS_S_W_FLAGS, EGPS_S_L_ALLOC, EGPS_S_B_NAMLNG): New
constants.
(EGSY_S_W_FLAGS): Ditto.
(EGSY_S_V_QUAD_VAL): Ditto.
(ESDF_S_L_VALUE, ESDF_S_L_PSINDX, ESDF_S_B_NAMLNG): Ditto.
(EGST_S_W_FLAGS, EGST_S_Q_LP_1, EGST_S_Q_LP_2, EGST_S_L_PSINDX,
EGST_S_B_NAMLNG): Ditto.
(ESRF_S_B_NAMLNG): Ditto.
(ETIR_S_C_HEADER_SIZE): Ditto.
(EGPS_S_V_ALLOC_64BIT): Ditto.
(DST_S_C_EPILOG): Ditto.
(DST_S_C_SRC_SETLNUM_L, DST_S_C_SRC_SETLNUM_W) : Ditto.
(DST_S_C_SRC_INCRLNUM_B): Ditto.
(DST_S_B_PCLINE_UNSBYTE, DST_S_W_PCLINE_UNSWORD): Ditto.
(DST_S_L_PCLINE_UNSLONG): Ditto.
(DST_S_B_MODBEG_NAME, DST_S_L_RTNBEG_ADDRESS) : Ditto
(DST_S_B_RTNBEG_NAME, DST_S_L_RTNEND_SIZE): Ditto
(DST_S_C_SOURCE_HEADER_SIZE): Ditto.
(DST_S_B_SRC_DF_LENGTH, DST_S_W_SRC_DF_FILEID): Ditto.
(DST_S_B_SRC_DF_FILENAME, DST_S_B_SRC_UNSBYTE): Ditto.
(DST_S_B_SRC_UNSBYTE): Ditto.
(DST_S_W_SRC_UNSWORD, DST_S_L_SRC_UNSLONG): Ditto.
Add prototypes.
(vms_section, vms_reloc): Remove types.
(hdr_struc): Replaced by ...
(hdr_struct): ... new type.
(EMH_S_W_HDRTYP, EMH_S_B_STRLVL, EMH_S_L_ARCH1): New constants.
(EMH_S_L_ARCH2, EMH_S_L_RECSIZ, EMH_S_B_NAMLNG): Ditto.
(EMH_DATE_LENGTH): Ditto.
(eom_struc): Replaced by ...
(eom_struct): ... new type.
(EEOM_S_L_TOTAL_LPS, EEOM_S_W_COMCOD, EEOM_S_B_TFRFLG): New constants.
(EEOM_S_L_PSINDX, EEOM_S_L_TFRADR): Ditto.
(EIHD_S_K_MAJORID, EIHD_S_K_MINORID, EIHD_S_K_EXE): Ditto.
(EIHD_S_L_SIZE, EIHD_S_L_ISDOFF, EIHD_S_L_SYMDBGOFF): Ditto.
(EIHD_S_Q_SYMVVA, EIHD_S_L_IMGTYPE): Ditto.
(EISD_S_L_EISDSIZE, EISD_S_L_SECSIZE, EISD_S_Q_VIR_ADDR): Ditto.
(EISD_S_L_FLAGS, EISD_S_L_VBN, EISD_S_R_CONTROL): Ditto.
(EISD_S_L_IDENT, EISD_S_T_GBLNAM): Ditto.
(EISD_S_M_GBL, EISD_S_M_CRF, EISD_S_M_DZRO, EISD_S_M_WRT): Ditto.
(EISD_S_M_INITALCODE, EISD_S_M_BASED, EISD_S_M_FIXUPVEC): Ditto.
(EISD_S_M_RESIDENT, EISD_S_M_VECTOR, EISD_S_M_PROTECT): Ditto.
(EISD_S_M_LASTCLU, EISD_S_M_EXE, EISD_S_M_NONSHRADR): Ditto.
(EISD_S_M_QUAD_LENGTH, EISD_S_M_ALLOC_64BIT): Ditto.
(EIHS_S_L_DSTVBN, EIHS_S_L_DSTSIZE, EIHS_S_L_GSTVBN): Ditto.
(EIHS_S_L_GSTSIZE, EIHS_S_L_DMTVBN, EIHS_S_L_DMTBYTES): Ditto.
(DBG_S_L_DMT_MODBEG, DBG_S_L_DST_SIZE): Ditto.
(DBG_S_W_DMT_PSECT_COUNT, DBG_S_C_DMT_HEADER_SIZE): Ditto.
(DBG_S_L_DMT_PSECT_START, DBG_S_L_DMT_PSECT_LENGTH)
(DBG_S_C_DMT_PSECT_SIZE): Ditto.
(enum file_type_enum): New type.
(struct location_struct): Removed.
(struct fileinfo, struct srecinfo, struct lineinfo): New types.
(struct funcinfo, struct module): Ditto.
(struct vms_private_data_struct): Update fields.
(struct vms_section_data_struct): New type.

* vms.c: Update copyright year, fix comments,
Fix includes for DECC, add prototypes.
(vms_initialize): Use bfd_alloc instead of bfd_zalloc and remove
some initializers.
Use flavour to set is_vax, location_stack is removed.
(struct pair): Declare.
(fill_section_ptr): Initialize variables at declaration.
Add guard to set SECTION_SYM flag, handlde und section.
(vms_fixup_sections): Use struct pair for fill_section_ptr argument.
(_bfd_vms_slurp_object_records): New function, replaces previous
vms_object_p.
(vms_slurp_module): New function.
(vms_slurp_image): Ditto.
(vms_object_p): Complete rewrite.
(vms_mkobject): Use is_vax field to slect architecture.
(free_reloc_stream): New function.
(vms_convert_to_var): Ditto.
(vms_convert_to_var_1): Ditto.
(vms_convert_to_var_unix_filename): Ditto.
(vms_close_and_cleanup): Call free_reloc_stream, convert file to
VAR format on VMS.
(vms_new_section_hook): Set alignment to 0, allocate private data.
(vms_get_section_contents): Load content.
(vms_get_symbol_info): Handle undefined section.
(vms_find_nearest_line): Handle.
(alloc_reloc_stream): New function.
(vms_slurp_reloc_table): Ditto.
(vms_get_reloc_upper_bound): Make it real.
(vms_canonicalize_reloc): Do the real work.
(alpha_howto_table): Add ALPHA_R_NOP, ALPHA_R_BSR, ALPHA_R_LDA,
ALPHA_R_BOH.
(vms_bfd_reloc_type_lookup): Handle NOP, BSR, LDA and BOH.
(vms_set_arch_mach): Check arch.
(vms_set_section_contents): Copy the content after allocation.
(vms_alpha_vec): Update object flags.

* vms-tir.c: Update copyright year, fix comments,
add prototypes for new functions.
(dst_define_location): New function.
(dst_restore_location): New function.
(dst_retrieve_location): New function.
(dst_check_allocation): New function.
(image_dump): Call dst_check_allocation.
(image_write_b): Ditto.
(image_write_w): Ditto.
(image_write_l): Ditto.
(image_write_q): Ditto.
(cmd_name): Handle STA_LW, STA_QW, STO_OFF, STO_IMM, STO_IMMR, STO_LW,
STO_QW, OPR_ADD, CTL_SETRB, STC_LP_PSB, CTL_DFLOC, CTL_STLOC,
CTL_STKDL.
Call error handler instead of abort if name is not known.
(etir_sta): Add quarter_relocs argument and set it.
Fix cast.
(etir_sto): Ditto.
(etir_opr): Ditto, return FALSE in case of error.
(etir_ctl): Add quarter_relocs argument and set it, fix cast.
Fix CTL_DFLOC, CTL_STLOC, CTL_STKDL.
(etir_stc): Add quarter_relocs argument and set it, fix cast.
Fix STC_LP, STC_LP_PSB, STC_GBL and STC_CGA.
Handle STC_LP_PSB, STC_BSR_GBL, STC_LDA_GBL, STC_BOH_GBL.
Move STC_NOP_PS, STC_BSR_PS, STC_LDA_PS, STC_BOH_PS, STC_NBH_PS.
Return FALSE in case of error.
(tir_sta): Change sign of psect.
(tir_ctl): Ditto.
(tir_cmd): Fix cast. Makes tir_table static const.
(etir_cmd): Add quarter_relocs argument, makes etir_table const,
add argument to explain.
(analyze_etir): Initialize maxptr, add quarter_relocs
declaration, move some declarations into inner scopes.
Handle quarter_relocs and STO_IMM.
(_bfd_vms_slurp_tir): Use constant instead of hard-coded values.
(_bfd_vms_slurp_relocs): New function.
(_bfd_vms_decode_relocs): New function.
(sto_imm): Rewritten.
(start_first_etbt_record): New function.
(start_another_etbt_record): Ditto.
(etir_output_check): Ditto.
(defer_reloc_p): Ditto.
(_bfd_vms_write_tir): Remove nextoffset, convert a while-loop to
a for-loop.  Correctly deals with contents, deals with .vmsdebug,
rewritte relocations handling.
(_bfd_vms_write_tbt): Removed.
(_bfd_vms_write_dbg): Ditto.

* vms-misc.c: Update copyright year, Fix comments.
(_bfd_vms_get_header_values): Use 'size' instead of 'length'.
(maybe_adjust_record_pointer_for_object): New function.
(_bfd_vms_get_first_record): New function, replaces ...
(_bfd_vms_get_record): ..  removed.
(_bfd_vms_get_object_record): New function.
(_bfd_vms_get_object_record): New function.
(vms_get_remaining_object_record): New function, replaces ...
(_bfd_vms_get_next_record): ... removed.
(add_new_contents): Removed.
(_bfd_save_vms_section): Removed.
(_bfd_get_vms_section): Removed.
(_bfd_vms_output_flush): Write in VAR format.
(new_symbol): Don't make UND section.

* vms-hdr.c: Update copyright year, update list of record handled.
(_bfd_vms_slurp_hdr): rec_length renamed to rec_size.
(_bfd_vms_write_hdr): Strip vms and unix patches,
add comments, truncate module name at 31 characters,
use constants instead of hard-coded value,
write BFD version instead of a fixed string.
(_bfd_vms_slurp_ihd): New function.
(_bfd_vms_slurp_isd): Ditto.
(_bfd_vms_slurp_ihs): Ditto.
(new_module): Ditto.
(parse_module): Ditto
(build_module_list): Ditto.
(module_find_nearest_line): Ditto.
(_bfd_vms_find_nearest_dst_line): Ditto.
(vms_slurp_debug): Ditto.
(_bfd_vms_slurp_dbg): Ditto.
(_bfd_vms_slurp_tbt): Ditto.
(_bfd_vms_write_dbg): Ditto.
(_bfd_vms_write_tbt): Ditto.

* vms-gsd.c: Update copyright year, update list of records handled.
(EVAX_LITERALS_NAME): New macro.
(evax_section_flags): Add an entry for EVAX_LITERALS_NAME.
(gpsflagdesc, gsyflagdesc): Moved out of _bfd_vms_slurp_gsd.
(register_universal_symbol): New function and prototype.
(_bfd_vms_slurp_gsd): Fix indentations and casts,
improve debug messages,
use constants instead of hard-coded value,
fix missing endianness conversion,
handle global symbol (SYMG).
(bfd_vms_set_section_flags): New function.
(_bfd_vms_write_gsd): Don't write .vmsdebug section,
handle section literals,
fix indentation,
handle section bfd and vms flags,
don't output LIB$INITIALIZE symbol,
fix handling of weak symbols,
fix evax vs vax procedure descriptor,
handle absolute symbols.

* reloc.c (BFD_RELOC_ALPHA_NOP, BFD_RELOC_ALPHA_BSR,
BFD_RELOC_ALPHA_LDA, BFD_RELOC_ALPHA_BOH): New relocations.

* makefile.vms (DEFS): Fix flags for VMS.

* bfdio.c (real_fopen): Handle multiple VMS fopen attributes.

* bfd-in2.h: Regenerated.
* libbfd.h: Regenerated.

15 years agomerge from gcc
DJ Delorie [Mon, 23 Feb 2009 00:16:38 +0000 (00:16 +0000)]
merge from gcc

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

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

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

15 years ago * vmsutil.c (vms_file_stats_name): Fix incorrect use of st_mtime
Cary Coutant [Fri, 20 Feb 2009 18:53:12 +0000 (18:53 +0000)]
* vmsutil.c (vms_file_stats_name): Fix incorrect use of st_mtime
in struct stat.

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

15 years agogas/testsuite/
Peter Bergner [Thu, 19 Feb 2009 21:18:46 +0000 (21:18 +0000)]
gas/testsuite/
* gas/ppc/e500mc.d ("lfdepx", "stfdepx"): Fix tests to expect a
floating point register.

opcodes/
* ppc-opc.c (powerpc_opcodes) <"lfdepx", "stfdepx">: Fix the first
operand to be a float point register (FRT/FRS).

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

15 years agoopcodes/
Adam Nemet [Wed, 18 Feb 2009 20:51:59 +0000 (20:51 +0000)]
opcodes/
* mips-opc.c (mips_builtin_opcodes): Move the Octeon-specific
dmfc2 and dmtc2 before the architecture-level variants.

gas/testsuite/
* gas/mips/octeon.s: Add more tests for dmfc2 and dmtc2.
* gas/mips/octeon.d: Update.
* gas/mips/octeon-ill.l: Update error message.

15 years ago PR gas/7059
Dave Korn [Wed, 18 Feb 2009 18:38:06 +0000 (18:38 +0000)]
PR gas/7059
* coffcode.h (coff_write_object_contents):  Don't let the string
table offset overflow the s_name field when using long section names.

15 years agobfd/ChangeLog
Dave Korn [Wed, 18 Feb 2009 18:23:08 +0000 (18:23 +0000)]
bfd/ChangeLog

* coff-alpha.c (alpha_ecoff_backend_data):  Initialise fields which
control long section name handling with ECOFF_NO_LONG_SECTION_NAMES.
* coff-mips.c (mips_ecoff_backend_data):  Likewise.
* coff-rs6000.c (bfd_xcoff_backend_data):  Initialise fields which
control long section name handling with XCOFF_NO_LONG_SECTION_NAMES.
(bfd_pmac_xcoff_backend_data):  Likewise.
* coff64-rs6000.c (bfd_xcoff_backend_data):  Likewise.
(bfd_xcoff_aix5_backend_data):  Likewise.
(xcoff64_write_object_contents):  Delete unused long_section_names
local variable.
* coff-sh.c (bfd_coff_small_swap_table):  Initialise long section
name members using COFF_DEFAULT_LONG_SECTION_NAMES and make entire
struct non-const.
* coffcode.h (documentation):  Update to describe long section names.
(COFFLONGSECTIONCATHELPER):  New helper macro.
(BLANKOR1TOODD):  Likewise.
(COFF_ENABLE_LONG_SECTION_NAMES):  Likewise.
(COFF_LONG_SECTION_NAMES_SETTER):  Likewise.
(COFF_DEFAULT_LONG_SECTION_NAMES):  Likewise.
(bfd_coff_set_long_section_names_allowed):  New function.
(bfd_coff_set_long_section_names_disallowed):  Likewise.
(struct bfd_coff_backend_data):  Add new backend hook function
pointer _bfd_coff_set_long_section_names.
(bfd_coff_set_long_section_names):  New backend hook.
(coff_write_object_contents):  Only generate long section names if
bfd_coff_long_section_names() indicates they are currently enabled.
(bfd_coff_std_swap_table):  Make non-const, and initialise long
section name fields using COFF_DEFAULT_LONG_SECTION_NAMES.
(ticoff0_swap_table):  Likewise to both.
(ticoff1_swap_table):  Again, likewise to both.
* coffgen.c (make_a_section_from_file):  Allow long section names
as inputs even if not currently allowed for outputs.
* ecoff.c (_bfd_ecoff_no_long_sections):  New function.
* efi-app-ia32.c (COFF_LONG_SECTION_NAMES):  Define to 0, not blank.
* efi-app-ia64.c (COFF_LONG_SECTION_NAMES):  Likewise.
* efi-app-x86_64.c (COFF_LONG_SECTION_NAMES):  Likewise.
* efi-bsdrv-ia32.c (COFF_LONG_SECTION_NAMES):  Likewise.
* efi-bsdrv-ia64.c (COFF_LONG_SECTION_NAMES):  Likewise.
* efi-bsdrv-x86_64.c (COFF_LONG_SECTION_NAMES):  Likewise.
* efi-rtdrv-ia32.c (COFF_LONG_SECTION_NAMES):  Likewise.
* efi-rtdrv-ia64.c (COFF_LONG_SECTION_NAMES):  Likewise.
* efi-rtdrv-x86_64.c (COFF_LONG_SECTION_NAMES):  Likewise.
* pei-arm.c (COFF_LONG_SECTION_NAMES):  Likewise.
* pei-i386.c (COFF_LONG_SECTION_NAMES):  Likewise.
* pei-mcore.c (COFF_LONG_SECTION_NAMES):  Likewise.
* pei-mips.c (COFF_LONG_SECTION_NAMES):  Likewise.
* pei-ppc.c (COFF_LONG_SECTION_NAMES):  Likewise.
* pei-sh.c (COFF_LONG_SECTION_NAMES):  Likewise.
* pei-x86_64.c (COFF_LONG_SECTION_NAMES):  Likewise.
* libcoff-in.h:  Update copyright year to cause updated copyright
year in generated libcoff.h, and fix typo.
* libcoff.h:  Regenerated.
* libecoff.h (ECOFF_NO_LONG_SECTION_NAMES):  New macro.
(_bfd_ecoff_no_long_sections):  Add prototype.
* libxcoff.h (XCOFF_NO_LONG_SECTION_NAMES):  New macro.
* pe-mips.c (COFF_LONG_SECTION_NAMES):  Define empty if not already
defined by an including .c file.
* ticoff.h (ticoff0_swap_table):  Make non-const, and initialise
long section name fields using COFF_DEFAULT_LONG_SECTION_NAMES.
(ticoff1_swap_table):  Likewise to both.

ld/ChangeLog

* ld.texinfo:  Update to mention long section name options.
* NEWS:  Mention new behaviour and command-line options.
* pe-dll.c (pe_use_coff_long_section_names):  New global variable.
(pe_output_file_set_long_section_names):  New function.
(pe_dll_build_sections):  Call it on output BFDs.
(pe_exe_build_sections):  Likewise.
(pe_dll_fill_sections):  Likewise.
(pe_exe_fill_sections):  Likewise.
* pe-dll.h (pe_use_coff_long_section_names):  Declare extern.
(pe_output_file_set_long_section_names):  Add prototype.
* pep-dll.c (pe_use_coff_long_section_names):  Define pep_ alias.
(pe_output_file_set_long_section_names):  Likewise.
* pep-dll.h (pep_use_coff_long_section_names):  Declare extern.
(pep_output_file_set_long_section_names):  Add prototype.
* pe.em (OPTION_ENABLE_LONG_SECTION_NAMES):  New getopt value macro.
(OPTION_DISABLE_LONG_SECTION_NAMES):  Likewise.
(gld${EMULATION_NAME}_add_options):  Add new options to xtra_long[].
(gld_${EMULATION_NAME}_list_options):  Describe them.
(gld${EMULATION_NAME}_handle_option):  Set or clear global
pe_use_coff_long_section_names flag when options recognised.
(gld_${EMULATION_NAME}_after_open):  En/disable long section names
for main output bfd by calling pe_output_file_set_long_section_names.
* pep.em (enum options):  Extend enum with new getopt option values.
(gld${EMULATION_NAME}_add_options):  Add new options to xtra_long[].
(gld_${EMULATION_NAME}_list_options):  Describe them.
(gld${EMULATION_NAME}_handle_option):  Set or clear global
pe_use_coff_long_section_names flag when options recognised.
(gld_${EMULATION_NAME}_after_open):  En/disable long section names
for main output bfd by calling pep_output_file_set_long_section_names.

ld/testsuite/ChangeLog

* ld-pe/longsecn-1.d:  New test file.
* ld-pe/longsecn-2.d:  Likewise.
* ld-pe/longsecn-3.d:  Likewise.
* ld-pe/longsecn-4.d:  Likewise.
* ld-pe/longsecn-5.d:  Likewise.
* ld-pe/longsecn.d:  Likewise.
* ld-pe/longsecn.exp:  New test control script.
* ld-pe/longsecn.s:  New test source file.

15 years ago * fr30-opc.c: Regenerate.
Nick Clifton [Wed, 18 Feb 2009 17:13:04 +0000 (17:13 +0000)]
    * fr30-opc.c: Regenerate.
        * frv-opc.c: Regenerate.
        * ip2k-opc.c: Regenerate.
        * iq2000-opc.c: Regenerate.
        * lm32-opc.c: Regenerate.
        * m32c-opc.c: Regenerate.
        * m32r-opc.c: Regenerate.
        * mep-opc.c: Regenerate.
        * mt-opc.c: Regenerate.
        * xc16x-opc.c: Regenerate.
        * xstormy16-opc.c: Regenerate.
        * tic54x-dis.c (print_instruction): Avoid compiler warning on
        sprintf call.

        * opc-itab.scm (<>_cgen_init_opcode_table): Avoid compiler warning
        about calling memset with a zero length.

15 years ago2009-02-18 Christophe Lyon <christophe.lyon@st.com>
Christophe Lyon [Wed, 18 Feb 2009 16:56:37 +0000 (16:56 +0000)]
2009-02-18  Christophe Lyon  <christophe.lyon@st.com>

bfd/
* elf32-arm.c (arm_build_one_stub): Fix relocation target for pic
stub. Catch default case error.
(arm_map_one_stub): Add missing Thumb mapping symbol.

testsuite/
* ld-arm/farcall-arm-arm-pic-veneer.d,
ld-arm/farcall-arm-thumb-blx-pic-veneer.d,
ld-arm/farcall-arm-thumb-pic-veneer.d,
ld-arm/farcall-thumb-arm-blx-pic-veneer.d,
ld-arm/farcall-thumb-thumb-blx-pic-veneer.d: Fix expected stub
target.

15 years ago PR 9841
Nick Clifton [Wed, 18 Feb 2009 15:28:56 +0000 (15:28 +0000)]
    PR 9841
        * elf32-avr.c: Handle case where no local symbos exist correctly.

15 years ago2009-02-16 Christophe Lyon <christophe.lyon@st.com>
Christophe Lyon [Wed, 18 Feb 2009 12:45:38 +0000 (12:45 +0000)]
2009-02-16  Christophe Lyon  <christophe.lyon@st.com>

bfd/
* elf32-arm.c (arm_long_branch_stub,
arm_thumb_v4t_long_branch_stub,
arm_thumb_thumb_long_branch_stub,
arm_thumb_arm_v4t_long_branch_stub,
arm_thumb_arm_v4t_short_branch_stub,
arm_pic_long_branch_stub):
Renamed to elf32_arm_stub_long_branch_any_any,
elf32_arm_stub_long_branch_v4t_arm_thumb,
elf32_arm_stub_long_branch_thumb_only,
elf32_arm_stub_long_branch_v4t_thumb_arm,
elf32_arm_stub_short_branch_v4t_thumb_arm,
elf32_arm_stub_long_branch_any_any_pic.
(arm_stub_long_branch, arm_thumb_v4t_stub_long_branch,
arm_thumb_thumb_stub_long_branch,
arm_thumb_arm_v4t_stub_long_branch,
arm_thumb_arm_v4t_stub_short_branch, arm_stub_pic_long_branch):
Renamed to arm_stub_long_branch_any_any,
arm_stub_long_branch_v4t_arm_thumb,
arm_stub_long_branch_thumb_only,
arm_stub_long_branch_v4t_thumb_arm,
arm_stub_short_branch_v4t_thumb_arm,
arm_stub_long_branch_any_any_pic.

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

15 years agodaily update
Alan Modra [Tue, 17 Feb 2009 00:00:06 +0000 (00:00 +0000)]
daily update

15 years ago * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Don't emit
Dave Korn [Mon, 16 Feb 2009 10:42:12 +0000 (10:42 +0000)]
* emultempl/pe.em (gld_${EMULATION_NAME}_after_open):  Don't emit
inadvertent .reloc sections caused by refactoring accident.

15 years ago * gas/mips/e32-rel2.d: Adjust expected output to remove the 0x4000
Nick Clifton [Mon, 16 Feb 2009 09:19:32 +0000 (09:19 +0000)]
    * gas/mips/e32-rel2.d: Adjust expected output to remove the 0x4000
        offset.
        * gas/mips/e32el-rel2.d: Likewise.
        * gas/mips/elf-rel2.d: Likewise.
        * gas/mips/elf-rel9-mips16.d: Likewise.
        * gas/mips/elf-rel9.d: Likewise.
        * gas/mips/elfel-rel2.d: Likewise.
        * gas/mips/lb.d: Likewise.
        * gas/mips/mips-abi32.d: Likewise.
        * gas/mips/mips-gp32-fp32.d: Likewise.
        * gas/mips/mips-gp32-fp64.d: Likewise.
        * gas/mips/mips-gp64-fp32.d: Likewise.
        * gas/mips/mips-gp64-fp64.d: Likewise.
        * gas/mips/mips32-sf32.d: Likewise.

15 years ago * ldlang.c (process_insert_statements): ASSERT that output section
Alan Modra [Mon, 16 Feb 2009 08:02:29 +0000 (08:02 +0000)]
* ldlang.c (process_insert_statements): ASSERT that output section
statements are in order.

15 years ago * ldlang.c (push_stat_ptr, pop_stat_ptr): New functions.
Alan Modra [Mon, 16 Feb 2009 07:25:52 +0000 (07:25 +0000)]
* ldlang.c (push_stat_ptr, pop_stat_ptr): New functions.
(stat_save, stat_save_ptr): New variables.
(lang_insert_orphan): Use push_stat_ptr and pop_stat_ptr.
(load_symbols): Likewise.  Delete dead "bad_load" code.
(open_input_bfds): Warn on script containing output sections.
(lang_enter_output_section_statement): Use push_stat_ptr.
(lang_enter_group): Likewise.
(lang_leave_output_section_statement): Use pop_stat_ptr.
(lang_leave_group): Likewise.
* ldlang.h (push_stat_ptr, pop_stat_ptr): Declare.
* ldctor.c (ldctor_build_sets): Use push_stat_ptr and pop_stat_ptr.
* emultempl/beos.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
* emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
* emultempl/pep.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
* emultempl/spuelf.em (spu_place_special_section): Likewise.
* emultempl/xtensaelf.em (ld_xtensa_insert_page_offsets): Likewise.

15 years agodaily update
Alan Modra [Mon, 16 Feb 2009 00:00:09 +0000 (00:00 +0000)]
daily update

15 years ago * elf-hppa.h (elf_hppa_final_link_relocate): Correct addend value used
Dave Anglin [Sun, 15 Feb 2009 19:39:44 +0000 (19:39 +0000)]
* elf-hppa.h (elf_hppa_final_link_relocate): Correct addend value used
in branch offset check.

15 years ago * elf64-ppc.c (struct _ppc64_elf_section_data): Delete t_symndx,
Alan Modra [Sun, 15 Feb 2009 12:14:14 +0000 (12:14 +0000)]
* elf64-ppc.c (struct _ppc64_elf_section_data): Delete t_symndx,
add toc.symndx and toc.add.
(ppc64_elf_check_relocs): Don't set htab->tls_get_addr here.
Set up toc.add.
(get_tls_mask): Add toc_addend param, set from toc.add.  Adjust all
callers.
(ppc64_elf_tls_setup): Set htab->tls_get_addr and tls_get_addr_fd.
(branch_reloc_hash_match): New function, extracted from..
(ppc64_elf_tls_optimize): ..here.
(ppc64_elf_relocate_section): Properly set addends when optimizing
tls sequences.  Avoid unnecessary reading and writing of insns.
Only redo reloc when symbol changed.  Bypass symbol checks when
using tlsld_got.
* elf32-ppc.c (ppc_elf_tls_setup): Correct comment.
(branch_reloc_hash_match): New function, extracted from..
(ppc_elf_tls_optimize): ..here.
(ppc_elf_relocate_section): Avoid unnecessary reading of insns.
Don't clear addend on zapped __tls_get_addr reloc.

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

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

15 years ago (From Rafael Espindola)
Cary Coutant [Fri, 13 Feb 2009 19:04:45 +0000 (19:04 +0000)]
(From Rafael Espindola)
* archive.cc (Archive::include_member): Update calls to add_symbols.
* dynobj.cc (Sized_dynobj<size, big_endian>::make_version_map): Add
the Layout argument.
* dynobj.h (do_add_symbols): Add the Layout argument.
* object.cc (Sized_relobj<size, big_endian>::do_add_symbols): Add the
Layout argument.
* object.h (Object::add_symbols): Add the Layout argument.
(Object::do_add_symbols): Add the Layout argument.
(Sized_relobj::do_add_symbols): Add the Layout argument.
* plugin.cc (Sized_pluginobj<size, big_endian>::do_add_symbols):
Unify the two versions.
(Add_plugin_symbols): Remove.
* plugin.h (Pluginobj::add_symbols, Pluginobj::do_add_symbols): Remove.
(Sized_pluginobj::do_add_symbols): Unify the two versions.
(Add_plugin_symbols): Remove.
* readsyms.cc (Read_symbols::do_read_symbols): Update call to
Add_symbols. Use Add_symbols instead of Add_plugin_symbols.
(Add_symbols::run): Make it work with Pulginobj.

15 years agodaily update
Alan Modra [Thu, 12 Feb 2009 23:59:29 +0000 (23:59 +0000)]
daily update

15 years ago PR 9827
Nick Clifton [Thu, 12 Feb 2009 15:06:55 +0000 (15:06 +0000)]
    PR 9827
        * elflink.c (bfd_elf_final_link): When counting the relocations,
        if the header size has not been set yet then assume that it will
        match the output section's reloc type.

15 years ago * corefile.c (core_create_function_syms): Remove "<locore>" and
Alan Modra [Thu, 12 Feb 2009 12:47:39 +0000 (12:47 +0000)]
    * corefile.c (core_create_function_syms): Remove "<locore>" and
        "<hicore>" sentinels.
        * gprof.c: Likewise.
        * cg_print.c (cg_print_function_ordering): Likewise.
        * alpha.c (alpha_find_call): Add check for return value of sym_lookup.
        * mips.c (mips_find_call): Likewise.
        * sparc.c (sparc_find_call): Likewise.
        * tahoe.c (tahoe_find_call): Likewise.
        * vax.c (vax_find_call): Likewise.

15 years ago gas/
Nathan Sidwell [Thu, 12 Feb 2009 08:31:03 +0000 (08:31 +0000)]
gas/
* config/tc-m68k.c (mcf51qe_ctrl): Add CPUCR.
(mcf52259_ctrl, mcf52277_ctrl, mcf53017_ctrl): New.
(mcf5307_ctrl): Add VBR.
(no_mac): New variable.
(m68k_extensions): Refer to no_mac mask.
(m68k_cpus): Add 51, 51ac, 51cn, 51em, 51jm, 52274, 52277,
52252..52259, 53011..53017.
(m68k_ip): Process CPUCR.
(init_table): Add cpucr entry.
(m68k_set_extension): Allow negated mask to refer to a variable.
(md_show_usage): Use '%s' to silence fprintf warning.
* config/m68k-parse.h (CPUCR): New control register.

gas/testsuite/
* m68k/br-isac.d, m68k/br-isac.s: Add stldsr test.

opcodes/
* m68k-opc.c (m68k_opcodes): Add stldsr instruction.

15 years ago * elf32-mips.c (mips_elf_final_gp): Don't add 0x4000 offset for
Nathan Sidwell [Thu, 12 Feb 2009 08:28:19 +0000 (08:28 +0000)]
* elf32-mips.c (mips_elf_final_gp): Don't add 0x4000 offset for
relocatable link.

15 years agodaily update
Alan Modra [Wed, 11 Feb 2009 23:59:30 +0000 (23:59 +0000)]
daily update

15 years agodaily update
Alan Modra [Tue, 10 Feb 2009 23:59:32 +0000 (23:59 +0000)]
daily update

15 years ago * config/tc-ppc.c (ppc_insert_operand, md_assemble): Use '%s' for
Nathan Sidwell [Tue, 10 Feb 2009 08:07:31 +0000 (08:07 +0000)]
* config/tc-ppc.c (ppc_insert_operand, md_assemble): Use '%s' for
as_bad calls to silence compiler warning.

15 years agodaily update
Alan Modra [Mon, 9 Feb 2009 23:59:33 +0000 (23:59 +0000)]
daily update

15 years ago2009-02-09 Kai Tietz <kai.tietz@onevision.com>
Kai Tietz [Mon, 9 Feb 2009 15:40:24 +0000 (15:40 +0000)]
2009-02-09  Kai Tietz  <kai.tietz@onevision.com>

* windres.c (set_endianess): Copy name without leading '-'.

15 years ago Missing piece of 2009-01-26 commit
Nathan Sidwell [Mon, 9 Feb 2009 14:46:40 +0000 (14:46 +0000)]
Missing piece of 2009-01-26 commit
* ldlang.c (lang_process): Don't consider relocatable flag when
checking for overlap.

15 years ago * elf32-spu.c (spu_elf_find_overlays): Call bfd_set_error on errors.
Alan Modra [Mon, 9 Feb 2009 14:24:41 +0000 (14:24 +0000)]
* elf32-spu.c (spu_elf_find_overlays): Call bfd_set_error on errors.
(find_function): Likewise.
(pasted_function): Don't error if no prior function found.
(discover_functions): Revert 2008-12-10 change.  Extend first
function range to start of section.

15 years ago2009-02-09 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Mon, 9 Feb 2009 09:14:15 +0000 (09:14 +0000)]
2009-02-09  Tristan Gingold  <gingold@adacore.com>

* NEWS: Mention feature match between objdump and readelf for dumping
dwarf info.

* doc/binutils.texi (objdump): Document -W/--dwarf improvments to
objdump.

* objdump.c (usage): Update documentation for -W/--dwarf.
(enum option_values): Add OPTION_DWARF.
(long_options): --dwarf can accept arguments.
(dump_dwarf_section): Also check enabled field.
(main): Option -W can accept arguments, code moved to
dwarf.c and call dwarf_select_sections_all instead.
* readelf.c (process_section_headers): Remove do_debug_lines_decoded.
(parse_args): Move code to...
* dwarf.c (dwarf_select_sections_by_letters,
dwarf_select_sections_by_names): : ...here (new functions).
(do_debug_lines_decoded): Remove and replaced by ...
(FLAG_DEBUG_LINES_RAW, FLAG_DEBUG_LINES_DECODED): ... new macros.
(display_debug_lines): Adjust for previous change.
(dwarf_select_sections_all): New function.
(debug_displays): Add initializer for enabled field.
* dwarf.h (do_debug_lines_decoded): Remove.
Add prototypes for the new functions.
(struct dwarf_section_display): Add enabled field.

15 years agodaily update
Alan Modra [Sun, 8 Feb 2009 23:59:35 +0000 (23:59 +0000)]
daily update

15 years ago * elf64-hppa.c: Remove PARAMS macro. Replace PTR with void *. Convert
Dave Anglin [Sun, 8 Feb 2009 17:08:31 +0000 (17:08 +0000)]
* elf64-hppa.c: Remove PARAMS macro.  Replace PTR with void *.  Convert
functions to C90.
* elf64-hppa.h: Likewise.

15 years ago * object.cc (Sized_relobj::do_layout): Make info message start
Ian Lance Taylor [Sat, 7 Feb 2009 01:05:15 +0000 (01:05 +0000)]
* object.cc (Sized_relobj::do_layout): Make info message start
with lower case letter.

15 years ago * binary.cc: Fix file comment.
Ian Lance Taylor [Sat, 7 Feb 2009 01:03:32 +0000 (01:03 +0000)]
* binary.cc: Fix file comment.

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

15 years ago * options.h (enum Incremental_disposition): Define.
Ian Lance Taylor [Fri, 6 Feb 2009 23:49:43 +0000 (23:49 +0000)]
* options.h (enum Incremental_disposition): Define.
(class General_options): Add new options: --incremental,
--incremental_changed, --incremental_unchanged,
--incremental_unknown.  Add incremental_disposition_ and
implicit_incremental_ fields.
(General_options::incremental_disposition): New function.
(class Position_dependent_options): Add incremental_disposition
option.
(Position_dependent_options::copy_from_options): Set incremental
dispositions.
* options.cc (General_options::parse_incremental_changed): New
function.
        (General_options::parse_incremental_unchanged): New function.
        (General_options::parse_incremental_unknown): New function.
        (General_options::General_options): Initialize new fields
incremental_disposition_ and implicit_incremental_.
        (General_options::finalize): Check for uasge of --incremental-*
without --incremental.

15 years ago * i386.h: Add comment regarding sse* insns and prefixes.
Doug Evans [Fri, 6 Feb 2009 23:14:34 +0000 (23:14 +0000)]
* i386.h: Add comment regarding sse* insns and prefixes.

15 years ago2009-02-06 Chris Demetriou <cgd@google.com>
Chris Demetriou [Fri, 6 Feb 2009 19:20:10 +0000 (19:20 +0000)]
2009-02-06  Chris Demetriou  <cgd@google.com>

* gold.h (gold_undefined_symbol): Change to take only a Symbol
pointer and to report location as the file name associated with
the symbol.
(gold_undefined_symbol_at_location): New function to replace the
old gold_undefined_symbol functionality.
* target-reloc.h (relocate_section): Update to use
gold_undefined_symbol_at_location.
* symtab.cc (Symbol_table::warn_about_undefined_dynobj_symbol):
Call gold_undefined_symbol function rather than gold_error.
* errors.h (Errors::undefined_symbol): Take location as a
string, rather than calculating it from a relocation.
* errors.cc (Errors::fatal): Print "fatal error:" before the
formatted message.
(Errors::error, Errors::error_at_location): Print "error: "
before the formatted message.
(Errors::undefined_symbol): Take location as a string, rather
than calculating it from a relocation.
(gold_undefined_symbol_at_location): New function akin to
old gold_undefined_symbol, calculates location from relocation.
(gold_undefined_symbol): Change to take only a Symbol pointer
and to report location as the file name associated with the symbol.
* testsuite/debug_msg.sh: Update for changed error messages.
* testsuite/undef_symbol.sh: Likewise.

15 years ago * lib/ld-lib.exp (check_gc_sections_available): Return 0 for
Joseph Myers [Fri, 6 Feb 2009 16:56:12 +0000 (16:56 +0000)]
* lib/ld-lib.exp (check_gc_sections_available): Return 0 for
*-*-mingw*.

15 years ago * elfxx-mips.c (_bfd_mips_elf_section_processing): Remove special
Joseph Myers [Fri, 6 Feb 2009 14:11:00 +0000 (14:11 +0000)]
* elfxx-mips.c (_bfd_mips_elf_section_processing): Remove special
.sbss handling.

15 years ago PR 9814
Nick Clifton [Fri, 6 Feb 2009 12:51:52 +0000 (12:51 +0000)]
    PR 9814
        * config/tc-arm.c (MODE_RECORDED): New define.
        (output_inst): Record the thumb_mode in the current frag.
        (arm_handle_align): Ignore the MODE_RECORDED bit in tc_frag_data.
        (arm_init_frag): Only set the tc_frag_data field if it has not
        already been set.

15 years ago* gas/mips/beq.d: Make no assumptions about the symbols used as
Nick Clifton [Fri, 6 Feb 2009 12:20:12 +0000 (12:20 +0000)]
* gas/mips/beq.d: Make no assumptions about the symbols used as
        branch targets in the disassembly, or the names of the relocs
        produced.
        * gas/mips/bge.d: Likewise.
        * gas/mips/bgeu.d: Likewise.
        * gas/mips/blt.d: Likewise.
        * gas/mips/bltu.d: Likewise.
        * gas/mips/mips32-sf32.d: Likewise.
        * gas/mips/mips1-fp.d: Likewise.
        * gas/mips/branch-misc-1.d: Skip for the mips-ecoff target.
        * gas/mips/branch-misc-2-64.d: Likewise.
        * gas/mips/branch-misc-2.d: Likewise.
        * gas/mips/branch-misc-2pic-64.d: Likewise.
        * gas/mips/branch-misc-2pic.d: Likewise.
        * gas/mips/branch-swap.d: Likewise.

15 years ago * gas/elf/symtab.d: But do not run the test for the Alpha or HPPA
Nick Clifton [Fri, 6 Feb 2009 12:09:40 +0000 (12:09 +0000)]
    * gas/elf/symtab.d: But do not run the test for the Alpha or HPPA
        ports.

15 years agoUpdated Vietnamese translation.
Nick Clifton [Fri, 6 Feb 2009 10:47:33 +0000 (10:47 +0000)]
Updated Vietnamese translation.

15 years agogas/testsuite/
Peter Bergner [Fri, 6 Feb 2009 01:50:54 +0000 (01:50 +0000)]
gas/testsuite/
* gas/ppc/booke.s ("dcbt", "dcbtst"): New tests.
* gas/ppc/booke.d: Likewise.
* gas/ppc/power4_32.s: Likewise.
* gas/ppc/power4_32.d: Likewise.

opcodes/
        * ppc-opc.c: Update copyright year.
        (powerpc_opcodes) <"dcbt", "dcbtst">: Deprecate the Embedded operand
        ordering for POWER4 and later and use the correct Server ordering.

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

15 years ago2009-02-05 Catherine Moore <clm@codesourcery.com>
Joseph Myers [Thu, 5 Feb 2009 21:58:41 +0000 (21:58 +0000)]
2009-02-05  Catherine Moore  <clm@codesourcery.com>

* gas/elf/elf.exp: Really run the symtab test.

15 years ago * ld-arm/arm-elf.exp (armeabitests): Restore thumb2-b-interwork.
Joseph Myers [Thu, 5 Feb 2009 21:54:43 +0000 (21:54 +0000)]
* ld-arm/arm-elf.exp (armeabitests): Restore thumb2-b-interwork.

15 years ago * emulparams/m68kelf.sh: Add newline at end of file.
Joseph Myers [Thu, 5 Feb 2009 21:52:36 +0000 (21:52 +0000)]
* emulparams/m68kelf.sh: Add newline at end of file.

15 years ago* Makefile.tpl (stage_last): Define $r and $s before using cgen-snapshot-20090301
Andreas Schwab [Thu, 5 Feb 2009 15:45:55 +0000 (15:45 +0000)]
* Makefile.tpl (stage_last): Define $r and $s before using
$(RECURSE_FLAGS_TO_PASS).
* Makefile.in: Regenerate

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

15 years agoFix my ChangeLog entry date.
Eric B. Weddington [Wed, 4 Feb 2009 16:25:34 +0000 (16:25 +0000)]
Fix my ChangeLog entry date.

15 years agogas/
H.J. Lu [Wed, 4 Feb 2009 16:03:31 +0000 (16:03 +0000)]
gas/

2009-02-04  H.J. Lu  <hongjiu.lu@intel.com>

AVX Programming Reference (January, 2009)
* config/tc-i386.c (CPU_FLAGS_PCLMUL_MATCH): New.
(CPU_FLAGS_AVX_MATCH): Updated.
(CPU_FLAGS_32BIT_MATCH): Likewise.
(cpu_flags_match): Likewise.

gas/testsuite/

2009-02-04  H.J. Lu  <hongjiu.lu@intel.com>

AVX Programming Reference (January, 2009)
* gas/i386/arch-avx-1-3.l: New.
* gas/i386/arch-avx-1-3.s: Likewise.
* gas/i386/arch-avx-1-4.l: Likewise.
* gas/i386/arch-avx-1-4.s: Likewise.
* gas/i386/arch-avx-1-5.l: Likewise.
* gas/i386/arch-avx-1-5.s: Likewise.
* gas/i386/arch-avx-1-6.l: Likewise.
* gas/i386/arch-avx-1-6.s: Likewise.

* gas/i386/arch-10.s: Add vpclmul instructions.
* gas/i386/arch-avx-1.s: Likewise.
* gas/i386/avx.s: Likewise.
* gas/i386/x86-64-arch-2.s: Likewise.
* gas/i386/x86-64-avx.s: Likewise.

* gas/i386/sse2avx.s: Add pclmul instructions.
* gas/i386/x86-64-sse2avx.s: Likewise.

* gas/i386/arch-10.d: Updated.
* gas/i386/arch-10-1.l: Likewise.
* gas/i386/arch-10-2.l: Likewise.
* gas/i386/arch-10-3.l: Likewise.
* gas/i386/arch-10-4.l: Likewise.
* gas/i386/arch-avx-1.d: Likewise.
* gas/i386/arch-avx-1-1.l: Likewise.
* gas/i386/arch-avx-1-2.l: Likewise.
* gas/i386/avx.d: Likewise.
* gas/i386/avx-intel.d: Likewise.
* gas/i386/sse2avx.d: Likewise.
* gas/i386/x86-64-arch-2.d: Likewise.
* gas/i386/x86-64-avx.d: Likewise.
* gas/i386/x86-64-avx-intel.d: Likewise.
* gas/i386/x86-64-sse2avx.d: Likewise.

* gas/i386/i386.exp: Run arch-avx-1-3, arch-avx-1-4,
arch-avx-1-5 and arch-avx-1-6.

opcodes/

2009-02-04  H.J. Lu  <hongjiu.lu@intel.com>

AVX Programming Reference (January, 2009)
* i386-dis.c (PREFIX_VEX_3A44): New.
(VEX_LEN_3A44_P_2): Likewise.
(PREFIX_VEX_3A48): Updated.
(VEX_LEN_3A4C_P_2): Likewise.
(prefix_table): Add PREFIX_VEX_3A44.
(vex_table): Likewise.
(vex_len_table): Add VEX_LEN_3A44_P_2.

* i386-opc.tbl: Add PCLMUL + AVX instructions.
* i386-tbl.h: Regenerated.

15 years ago PR 9812
Ian Lance Taylor [Wed, 4 Feb 2009 15:18:51 +0000 (15:18 +0000)]
PR 9812
* reduced_debug_output.h
(Output_reduced_debug_abbrev_section::failed): Use format for
gold_warning.
(Output_reduced_debug_info_section::faild): Likewise.

15 years ago PR 9805
Nick Clifton [Wed, 4 Feb 2009 09:13:22 +0000 (09:13 +0000)]
    PR 9805
        * ld.texinfo (--allow-shlib-undefined): Correct description of
        default settings and tidy up the rest of the entry.

15 years ago * emultempl/spuelf.em (spu_after_open): Don't combine .text.ia.*
Alan Modra [Wed, 4 Feb 2009 02:43:17 +0000 (02:43 +0000)]
* emultempl/spuelf.em (spu_after_open): Don't combine .text.ia.*
during relocatable link.

15 years ago * elf32-spu.c (spu_elf_build_stubs): Define __icache_neg_log2_linesize.
Alan Modra [Wed, 4 Feb 2009 02:42:57 +0000 (02:42 +0000)]
* elf32-spu.c (spu_elf_build_stubs): Define __icache_neg_log2_linesize.
Define __icache_ptr_handler*, not __icache_ptr___icache_bi_handler*.

15 years agodaily update
Alan Modra [Tue, 3 Feb 2009 23:59:38 +0000 (23:59 +0000)]
daily update

15 years ago* gas/mep/relocs.d: Updated for new configuration.
DJ Delorie [Tue, 3 Feb 2009 21:58:20 +0000 (21:58 +0000)]
* gas/mep/relocs.d: Updated for new configuration.
* gas/mep/complex-relocs.exp: Likewise.

15 years agobfd:
Joseph Myers [Tue, 3 Feb 2009 18:16:04 +0000 (18:16 +0000)]
bfd:
2009-02-03  Sandip Matte  <sandip@rmicorp.com>

* aoutx.h (NAME (aout, machine_type)): Handle bfd_mach_mips_xlr.
* archures.c (bfd_mach_mips_xlr): Define.
* bfd-in2.h: Regenerate.
* cpu-mips.c (I_xlr): Define.
(arch_info_struct): Add XLR entry.
* elfxx-mips.c (_bfd_elf_mips_mach): Handle E_MIPS_MACH_XLR.
(mips_set_isa_flags): Handle bfd_mach_mips_xlr
(mips_mach_extensions): Add XLR entry.

binutils:
2009-02-03  Sandip Matte  <sandip@rmicorp.com>

* readelf.c (get_machine_flags): Handle E_MIPS_MACH_XLR.

gas:
2009-02-03  Sandip Matte  <sandip@rmicorp.com>

* config/tc-mips.c (macro): Handle M_MSGSND, M_MSGLD, M_MSGLD_T,
M_MSGWAIT and M_MSGWAIT_T.
(mips_cpu_info_table): Add XLR entry.
* doc/c-mips.texi (-march): Document xlr.

gas/testsuite:
2009-02-03  Sandip Matte  <sandip@rmicorp.com>

* gas/mips/mips.exp (xlr): New architecture.
(xlr-ext): Run test.
* gas/mips/xlr-ext.d, gas/mips/xlr-ext.s: New.

include/elf:
2009-02-03  Sandip Matte  <sandip@rmicorp.com>

* mips.h (E_MIPS_MACH_XLR): Define.

include/opcode:
2009-02-03  Sandip Matte  <sandip@rmicorp.com>

* mips.h (INSN_XLR): Define.
(INSN_CHIP_MASK): Update.
(CPU_XLR): Define.
(OPCODE_IS_MEMBER): Update.
(M_MSGSND, M_MSGLD, M_MSGLD_T, M_MSGWAIT, M_MSGWAIT_T): Define.

opcodes:
2009-02-03  Sandip Matte  <sandip@rmicorp.com>

* mips-dis.c (mips_cp0_names_xlr, mips_cp0sel_names_xlr): Define.
(mips_arch_choices): Add XLR entry.
* mips-opc.c (XLR): Define.
(mips_builtin_opcodes): Add XLR instructions.

15 years ago/gas:
Eric B. Weddington [Tue, 3 Feb 2009 17:24:36 +0000 (17:24 +0000)]
/gas:
2009-01-29  Eric B. Weddington  <eric.weddington@atmel.com>

* config/tc-avr.c (mcu_types): Add ata6289.
* doc/c-avr.texi: Likewise.

15 years ago/bfd:
Eric B. Weddington [Tue, 3 Feb 2009 17:21:02 +0000 (17:21 +0000)]
/bfd:
2009-02-03  Eric B. Weddington  <eric.weddington@atmel.com>

* elf32-avr.c (avr_final_link_relocate): Allow avr25 to wraparound.

15 years ago PR 9797
Nick Clifton [Tue, 3 Feb 2009 17:04:53 +0000 (17:04 +0000)]
    PR 9797
        * ld.texinfo (Constants): Document the base-encoding suffixes
        supported in linker scripts.

15 years agobinutils/
H.J. Lu [Tue, 3 Feb 2009 15:56:59 +0000 (15:56 +0000)]
binutils/

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

* NEWS: Move --as-needed change to ...
* ../ld/NEWS: Here.

ld/

2009-02-03  Alan Modra  <amodra@bigpond.net.au>

* NEWS: Mention --as-needed change.

15 years agobfd:
Joseph Myers [Tue, 3 Feb 2009 15:54:05 +0000 (15:54 +0000)]
bfd:
2009-02-03  Carlos O'Donell  <carlos@codesourcery.com>

* configure.in: AC_SUBST pdfdir.
* Makefile.am: Add install-pdf, install-pdf-am
and install-pdf-recursive targets. Define pdfdir.
* doc/Makefile.am: Define pdf__strip_dir. Add
install-pdf and install-pdf-am targets.
* po/Make-in: Add install-pdf target.
* configure: Regenerate.
* Makefile.in: Regenerate
* doc/Makefile.in: Regenerate.

binutils:
2009-02-03  Carlos O'Donell  <carlos@codesourcery.com>

* configure.in: AC_SUBST pdfdir.
* Makefile.am: Add install-pdf, install-pdf-am,
and install-pdf-recursive targets.
* doc/Makefile.am: Define pdf__strip_dir. Add
install-pdf and install-pdf-am targets.
* po/Make-in: Add install-pdf target.
* configure: Regenerate.
* Makefile.in: Regenerate.
* doc/Makefile.in: Regenerate.

etc:
2009-02-03  Carlos O'Donell  <carlos@codesourcery.com>

* configure.in: AC_SUBST pdfdir.
* configure: Regenerate.

gas:
2009-02-03  Carlos O'Donell  <carlos@codesourcery.com>

* configure.in: AC_SUBST pdfdir.
* Makefile.am: Add install-pdf, install-pdf-am,
and install-pdf-recursive targets.
* doc/Makefile.am: Define pdf__strip_dir. Add
install-pdf and install-pdf-am targets.
* po/Make-in: Add install-pdf target.
* configure: Regenerate.
* Makefile.in: Regenerate.
* doc/Makefile.in: Regenerate.

gprof:
2009-02-03  Carlos O'Donell  <carlos@codesourcery.com>

* configure.in: AC_SUBST pdfdir.
* Makefile.am: Add install-pdf, install-pdf-am,
and install-pdf-recursive targets. Define pdf__strip_dir.
* po/Make-in: Add install-pdf target.
* configure: Regenerate.
* Makefile.in: Regenerate.

ld:
2009-02-03  Carlos O'Donell  <carlos@codesourcery.com>

* configure.in: AC_SUBST pdfdir.
* Makefile.am: Add install-pdf, install-pdf-am,
and install-pdf-recursive targets. Define pdf__strip_dir.
* po/Make-in: Add install-pdf target.
* configure: Regenerate.
* Makefile.in: Regenerate.

opcodes:
2009-02-03  Carlos O'Donell  <carlos@codesourcery.com>

* Makefile.am: Add install-pdf target.
* po/Make-in: Add install-pdf target.
* Makefile.in: Regenerate.

15 years ago2009-02-03 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Tue, 3 Feb 2009 15:48:50 +0000 (15:48 +0000)]
2009-02-03  H.J. Lu  <hongjiu.lu@intel.com>

PR binutils/9784
* NEWS: Mention --prefix=PREFIX and --prefix-strip=LEVEL.

* doc/binutils.texi: Document --prefix=PREFIX and
--prefix-strip=LEVEL.

* objdump.c: Include "filenames.h".
(prefix): New.
(prefix_strip): Likewise.
(prefix_length): Likewise.
(usage): Add --prefix=PREFIX and --prefix-strip=LEVEL.
(option_values): Add OPTION_PREFIX and OPTION_PREFIX_STRIP.
(long_options): Likewise.
(show_line): Handle prefix and prefix_strip.
(main): Handle OPTION_PREFIX and OPTION_PREFIX_STRIP.

* readelf.c (PATH_MAX): Moved to ...
* sysdep.h: Here.

15 years agonew files accidentally omitted from previous delta
Nick Clifton [Tue, 3 Feb 2009 14:48:32 +0000 (14:48 +0000)]
new files accidentally omitted from previous delta

15 years ago M68K TLS support.
Nick Clifton [Tue, 3 Feb 2009 14:36:47 +0000 (14:36 +0000)]
    M68K TLS support.

        ld/testsuite/
        * ld-m68k/got-multigot-12-13-14-34-35-ok.d: Update.
        * ld-m68k/got-multigot-14-ok.d: Update.
        * ld-m68k/m68k-got.exp: Update.
        * ld-m68k/got-negative-12-13-14-34-ok.d: Update.
        * ld-m68k/got-negative-14-ok.d: Update.
        * ld-m68k/tls-gd-1.d, ld-m68k/tls-gd-2.d: New tests.
        * ld-m68k/tls-gd-ie-1.d, ld-m68k/tls-ie-1.d: New tests.
        * ld-m68k/tls-ld-1.d, ld-m68k/tls-ld-2.d: New tests.
        * ld-m68k/tls-ld-1.s, ld-m68k/tls-ld-2.s, ld-m68k/tls-le-1.s:
        New test sources.
        * ld-m68k/tls-no-1.s, ld-m68k/tls-gd-ie-1.s, ld-m68k/tls-gd-1.s:
        New test sources.
        * ld-m68k/tls-gd-2.s, ld-m68k/tls-ie-1.s: New test sources.
        * ld-m68k/m68k.exp: Run new tests.
        (merge isa-a isa-a:nodiv): Fix.

        gas/testsuite/
        * gas/m68k/tls-gd-3.d, gas/m68k/tls-gd-3.s: New test.
        * gas/m68k/all.exp: Run it.

        gas/
        * config/m68k-parse.h (enum pic_relocation): Add values for TLS
        relocations.
        * config/m68k-parse.y (yylex): Parse TLS relocations.
        * config/tc-m68k.c (m68k_elf_cons): New static function.
        (md_pseudo_table): Use it.
        (get_reloc_code, tc_m68k_fix_adjustable, tc_gen_reloc): Handle TLS
        relocations.
        (md_apply_fix): Fix to set thread local flag.
        (m68k_elf_suffix): New static function; helper for m68k_elf_cons.

        include/elf/
        * m68k.h: Map TLS relocations to numbers.

        bfd/
        * bfd-in2.h: Regenerate.
        * elf32-m68k.c: Handle 2-slot GOT entries.  Rename variables and
        fields from n_entries to n_slots where appropriate, update comments.
        (HOWTO): Add TLS relocations.
        (reloc_map): Map BFD_RELOC_68K_TLS_* to R_68K_TLS_*.
        (enum elf_m68k_got_offset_size): New enum.
        (struct elf_m68k_got_entry.type): Move field to ...
        (struct elf_m68k_got_entry_key): ... here.  Update all uses.
        (elf_m68k_reloc_got_type, elf_m68k_reloc_got_offset_size): New static
        functions.
        (elf_m68k_reloc_got_n_entries, elf_m68k_reloc_tls_p): New static
        functions.
        (struct elf_m68k_got): merge rel_8o_n_entries and rel_8o_16o_n_entries
        fields into n_entries array.  Update comments.
        (elf_m68k_init_got): Simplify, update all uses.
        (elf_m68k_init_got_entry_key): Handle R_68K_TLS_LDM32 reloc, update.
        (ELF_M68K_REL_8O_MAX_N_ENTRIES_IN_GOT): Adjust to handle 2-slot
        GOT entries; update name, update all uses.
        (ELF_M68K_REL_8O_16O_MAX_N_ENTRIES_IN_GOT): Ditto.
        (elf_m68k_get_got_entry): Update.
        (elf_m68k_update_got_entry_type): Rewrite to handle TLS GOT entries,
        simplify.
        (elf_m68k_remove_got_entry_type): Simplify.
        (elf_m68k_add_entry_to_got, elf_m68k_can_merge_gots_1): Update.
        (elf_m68k_can_merge_gots): Update.
        (elf_m68k_merge_gots_1, elf_m68k_merge_gots): Update.
        (struct elf_m68k_finalize_got_offsets_arg): Rewrite to handle 2-slot
        GOT entries, simplify.
        (elf_m68k_finalize_got_offsets_1, elf_m68k_finalize_got_offsets): Same.
        (struct elf_m68k_partition_multi_got_arg): Add slots_relas_diff
        field, remove obsoleted local_n_entries field.
        (elf_m68k_partition_multi_got_2): New static function.
        (elf_m68k_partition_multi_got_1, elf_m68k_partition_multi_got): Use it;
        update.
        (elf_m68k_remove_got_entry_type): Update.
        (elf_m68k_install_rela, dtpoff_base, tpoff): New static functions.
        (elf_m68k_check_relocs): Handle TLS relocations.  Remove unnecessary
        update of sgot->size and srelgot->size.
        (elf_m68k_gc_sweep_hook): Update.
        (elf_m68k_install_rela, dtpoff_base, tpoff): New static functions.
        (elf_m68k_relocate_section, elf_m68k_finish_dynamic_symbol): Handle
        TLS relocations.
        * reloc.c (BFD_RELOC_68K_TLS_*): Declare TLS relocations.
        * libbfd.h (bfd_reloc_code_real_names): Add BFD_RELOC_68K_TLS_*.

15 years ago PR 9779
Nick Clifton [Tue, 3 Feb 2009 10:58:46 +0000 (10:58 +0000)]
    PR 9779
        * config/tc-pdp11.c (parse_op_no_deferred): Fix handling of
        indexed addressing for symbolic expressions.

15 years ago* elf32-mep.c (config_names): Regenerate configuration.
DJ Delorie [Tue, 3 Feb 2009 02:15:57 +0000 (02:15 +0000)]
* elf32-mep.c (config_names): Regenerate configuration.

* mep-asm.c: Regenerate.
* mep-desc.c: Regenerate.
* mep-desc.h: Regenerate.
* mep-dis.c: Regenerate.
* mep-ibld.c: Regenerate.
* mep-opc.c: Regenerate.
* mep-opc.h: Regenerate.

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

15 years ago * config/tcl.m4 (SC_PATH_TCLCONFIG): Don't exit 0 if tclconfig fails.
Doug Evans [Mon, 2 Feb 2009 23:18:05 +0000 (23:18 +0000)]
* config/tcl.m4 (SC_PATH_TCLCONFIG): Don't exit 0 if tclconfig fails.
(SC_PATH_TKCONFIG): Don't exit 0 if tkconfig fails.
(SC_LOAD_TCLCONFIG): Quote all uses of TCL_BIN_DIR, it may contain
"# no Tcl configs found".
(SC_LOAD_TKCONFIG): Similarily for TK_BIN_DIR.

* gdb/configure.ac (gdbkt): Check both no_tcl/no_tk first, before
doing any further tcl/tk configury.  Don't configure gdbtk if
tcl or tk check fails.
* gdb/aclocal.m4: Regenerate.
* gdb/configure: Regenerate.
* gdb/gdbtk/plugins/aclocal.m4: Regenerate.
* gdb/gdbtk/plugins/configure: Regenerate.

15 years agofile deffilep.h was initially added on branch binutils-2_19-branch.
Tristan Gingold [Mon, 2 Feb 2009 10:38:50 +0000 (10:38 +0000)]
file deffilep.h was initially added on branch binutils-2_19-branch.

15 years agofile deffilep.c was initially added on branch binutils-2_19-branch.
Tristan Gingold [Mon, 2 Feb 2009 10:38:50 +0000 (10:38 +0000)]
file deffilep.c was initially added on branch binutils-2_19-branch.

15 years ago * elf-bfd.h (bfd_elf_get_str_section): Don't declare.
Alan Modra [Mon, 2 Feb 2009 03:52:38 +0000 (03:52 +0000)]
* elf-bfd.h (bfd_elf_get_str_section): Don't declare.
(bfd_elf_find_section, _sh_elf_set_mach_from_flags): Likewise.
* elf.c (bfd_elf_get_str_section): Make static.
(bfd_elf_find_section): Delete.
* libbfd.h: Regenerate.

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

15 years agobfd/ sid-snapshot-20090201
Jan Kratochvil [Sun, 1 Feb 2009 12:05:25 +0000 (12:05 +0000)]
bfd/
* elf-eh-frame.c (REQUIRE_CLEARED_RELOCS) Remove.
(_bfd_elf_parse_eh_frame): Do not check relocations for removed FDEs.

ld/testsuite/
* ld-elf/eh-group2.s: New `.cfi_lsda' referencing `.gcc_except_table'.
* ld-elf/eh-group.exp: New test and conditional defininiton of `ELF64'.

15 years ago * script.cc (Lazy_demangler): New class.
Ian Lance Taylor [Sun, 1 Feb 2009 00:45:28 +0000 (00:45 +0000)]
* script.cc (Lazy_demangler): New class.
        (Version_script_info::get_symbol_version_helper): Demangle a
symbol only once.

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

15 years agobinutils/
Alan Modra [Sat, 31 Jan 2009 11:44:38 +0000 (11:44 +0000)]
binutils/
* NEWS: Mention --as-needed change.
ld/
* ld.texinfo (--as-needed): Update.
bfd/
* elflink.c (on_needed_list): New function.
(elf_link_add_object_symbols): Link in --as-needed libs if they
satisfy undefined symbols in other libs.

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