summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* bfd/Alan Modra2005-04-1440-659/+685
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Makefile.am (NO_WERROR): Define. * warning.m4: New file * acinclude.m4: Include warning.m4. * configure.in: Invoke AM_BINUTILS_WARNINGS. * Makefile.in: Regenerate. * configure: Regenerate. bfd/doc/ * Makefile.in: Regenerate. binutils/ * Makefile.am (NO_WERROR): Define. Use instead of -Wno-error. * configure.in: Include ../bfd/warning.m4 contents. * Makefile.in: Regenerate. * configure: Regenerate. * doc/Makefile.in: Regenerate. gas/ * Makefile.am (NO_WERROR): Define. Use instead of -Wno-error. * acinclude.m4: Include ../bfd/warning.m4. * configure.in: Invoke AM_BINUTILS_WARNINGS. * Makefile.in: Regenerate. * configure: Regenerate. * doc/Makefile.in: Regenerate. gprof/ * Makefile.am (NO_WERROR): Define. * acinclude.m4: Include ../bfd/warning.m4. * configure.in: Invoke AM_BINUTILS_WARNINGS. * Makefile.in: Regenerate. * aclocal.m4: Regenerate. * configure: Regenerate. ld/ * Makefile.am (NO_WERROR): Define. Use instead of -Wno-error. * configure.in: Include ../bfd/warning.m4 contents. * Makefile.in: Regenerate. * configure: Regenerate. opcodes/ * Makefile.am (NO_WERROR): Define. * configure.in: Invoke AM_BINUTILS_WARNINGS. * Makefile.in: Regenerate. * aclocal.m4: Regenerate. * configure: Regenerate.
* * merge.c (sec_merge_emit): Tidy. Check for bfd_zmalloc errors.Alan Modra2005-04-142-11/+27
| | | | Write trailing padding.
* merge from gccDJ Delorie2005-04-145-4/+24
|
* * merge.c (merge_strings): Round up section size for alignment.Alan Modra2005-04-142-0/+9
|
* daily updateAlan Modra2005-04-141-1/+1
|
* *** empty log message ***gdbadmin2005-04-141-1/+1
|
* 2005-04-14 David S. Miller <davem@davemloft.net>Jakub Jelinek2005-04-1318-849/+3005
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bfd/ Add TLS support for 64-bit Sparc ELF. * elf64-sparc.c (sparc64_elf_dyn_relocs, sparc64_elf_link_hash_entry, sparc64_elf_obj_tdata): New structs. (GOT_UNKNOWN, GOT_NORMAL, GOT_TLD_GD, GOT_TLD_IE, sparc64_elf_hash_entry, sparc64_elf_tdata, sparc64_elf_local_got_tls_type): New defines. (sparc64_elf_mkobject): New function. (sparc64_elf_link_hash_table): Add members for dynamic linker sections PLT, RELPLT, DYNBSS, and RELBSS. Add tls_ldm_got uion to track TLS GOT references. Add sym_sec to cache mappings from local sym to section. (link_hash_newfunc): New function. (sparc64_elf_bfd_link_hash_table_create): Rename to sparc64_elf_link_hash_table_create for consistency. Pass link_hash_newfunc to _bfd_elf_link_hash_table_init. (sparc64_elf_create_dynamic_sections): Initialize new section members of sparc64_elf_link_hash_table. Only init srelbss if not-shared. (sparc64_elf_copy_indirect_symbol, sparc64_elf_tls_transition): New functions. (SPARC_NOP): Define. (sparc64_elf_build_plt, sparc64_elf_plt_entry_offset, sparc64_elf_plt_ptr_offset): Delete. (sparc64_plt_entry_build): New function to build PLT entries gradually instread of all at once at the end of linking. (sparc64_elf_check_relocs): Delete dynobj, sgot, and srelgot local vars. Get them from sparc64_elf_hash_table instead. Check early on if r_symndx is in bounds. Handle TLS transitions. Account for TLS GOT references and DF_STATIC_TLS, as needed. For TLS relocs, record the tls_type in either sparc64_elf_local_got_tls_type or sparc64_elf_hash_entry as appropriate. For R_SPARC_TLS_{GD,LDM}_CALL, emit a reference to the __tls_get_addr symbol. For PLT relocs, track references via h->plt.refcount. When R_SPARC_{PC10,PC22,PC_HH22,PC_HM10, PC_LM22} and h not-NULL, set h->non_got_ref. For global data symbol references, count the number of relocations needed for that symbol. For default switch case, don't error, this lets the TLS relocs not explicitly handled by this function get accepted. (sparc64_elf_gc_mark_hook, sparc64_gc_sweep_hook): New functions. (sparc64_elf_adjust_dynamic_symbol): Remove dynobj local var, get it from sparc64_elf_hash_table. Store the real PLT offset in h->plt.offset, and build PLT entries one at a time. Also get .dynbss section pointer from htab. (allocate_dynrelocs, readonly_dynrelocs, sparc64_omit_section_dynsym): New functions. (sparc64_elf_omit_section_dynsym): Use these new functions as helpers. (dtpoff_base, tpoff): New functions. (sparc64_elf_relocate_section): Kill dynobj, sgot, and splt locals, get them from sparc64_elf_hash_table. Handle TLS relocations and refcounting in main relocation loop. (sparc64_elf_finish_dynamic_symbol): Use sparc64_elf_link_hash_table. Build PLT entries as we see them. Handle TLS GOT relocations. (sparc64_elf_finish_dynamic_sections): Get sgot and dynobj from sparc64_elf_hash_table. Initialize only PLT header not all entries since we not build PLT entries one by one. (elf_backend_copy_indirect_symbol, bfd_elf64_mkobject, elf_backend_gc_mark_hook, elf_backend_gc_sweep_hook, elf_backend_can_gc_sections, elf_backend_can_refcount): Define. ld/testsuite/ * ld-selective/sel-dump.exp: Do not exclude sparc64-*. * ld-selective/selective.exp: Likewise. * ld-sparc/sparc.exp: Add {32,64}-bit prefix to test names so we know which one is failing. Run sparc64 TLS tests on multi-arch sparc platforms. * ld-sparc/tls64.sd, ld-sparc/tlssunbin64.dd, ld-sparc/tlssunbin64.rd, ld/testsuite/ld-sparc/tlssunbin64.sd, ld-sparc/tlssunbin64.td, ld-sparc/tlssunnopic64.dd, ld-sparc/tlssunnopic64.rd, ld-sparc/tlssunnopic64.sd, ld-sparc/tlssunpic64.dd, ld-sparc/tlssunpic64.rd, ld-sparc/tlssunpic64.sd, ld-sparc/tlssunpic64.td): Update now that sparc64 ELF does support TLS.
* gas/:Maciej W. Rozycki2005-04-1314-193/+1844
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * config/tc-mips.c (IS_ZEXT_32BIT_NUM): New macro. (normalize_address_expr): New function to sign-extend address offsets that fit into 32 bits in 32-bit mode. (macro_build_ldst_constoffset): Use normalize_address_expr() instead of a handcoded sequence. (load_register): Likewise. Report oversized numbers in a useful way. (macro) [ld_st, ldd_std]: Reject all oversized offsets, not only for constant addresses. Report oversized numbers in a useful way. (mips_ip): Use normalize_address_expr() for addresses. gas/testsuite/: * gas/mips/ldstla-32.s: Exclude offsets that are now meant to fail and include more instructions/offsets that are meant to succeed. Use $4 instead $3 to avoid register dependencies. * gas/mips/ldstla-32.d: Update accordingly. * gas/mips/ldstla-32-shared.d: Likewise. * gas/mips/ldstla-32-mips3.d: New test based on the above, except for mips3. * gas/mips/ldstla-32-mips3-shared.d: Similarly, for PIC. * gas/mips/ldstla-32-mips3.s: Source for the new tests. * gas/mips/ldstla-32-1.s: New test for offsets that are meant to fail. * gas/mips/ldstla-32-mips3-1.s: Likewise, for mips3. * gas/mips/ldstla-32-1.l: Stderr output for the new test. * gas/mips/ldstla-32-mips3-1.l: Likewise. * gas/mips/mips.exp: Run the new tests.
* Move entries in ChangeLog-9103 to appropriate */ChangeLog-9103.H.J. Lu2005-04-136-74/+83
|
* Move entries to appropriate ChangeLog files.H.J. Lu2005-04-133-77/+73
|
* bfd/H.J. Lu2005-04-135-0/+32
| | | | | | | | | | | | | | 2005-04-13 Daniel Jacobowitz <dan@codesourcery.com> * elflink.c (elf_link_input_bfd): Update check for removed sections. ld/testsuite/ 2005-04-13 H.J. Lu <hongjiu.lu@intel.com> * ld-elf/empty.d: New file. * ld-elf/empty.s: Likewise.
* merge from gccDJ Delorie2005-04-131-2/+2
|
* merge from gccDJ Delorie2005-04-132-8/+13
|
* *** empty log message ***gdbadmin2005-04-131-1/+1
|
* daily updateAlan Modra2005-04-131-1/+1
|
* 2005-04-12 Paul Gilliam <pgilliam@us.ibm.com>Paul Gilliam2005-04-122-1/+5
| | | | * lib/gdb.exp (test_compiler_info): Give argument a default value.
* 2005-04-12 Paul Brook <paul@codesourcery.com>Paul Brook2005-04-122-16/+20
| | | | * opcode/m88k.h: Rename psr macros to avoid conflicts.
* include/opcode/ChangeLog:Mark Kettenis2005-04-124-32/+36
| | | | | | | | * i386.h (i386_optab): Mark VIA PadLock instructions as ImmExt and adjust them accordingly. gas/ChangeLog: * config/tc-i386.c (output_insn): Handle VIA PadLock instructions similar to other instructions now that they're marked as ImmExt.
* merge from gccDJ Delorie2005-04-124-0/+305
|
* * hash.c (DEFAULT_SIZE): Delete. Replace with:Nick Clifton2005-04-128-19/+120
| | | | | | | | | | | | | | | | (gas_hash_table_size): New static variable. (set_gas_hash_table_size): New function: Records a requested size for the hash tables. (get_gas_hash_table_size): New function: Return a prime number near the requested size of the hash table. (hash_new): Use get_gas_hash_table_size. * hash.h: Add a prototype for set_gas_hash_table_size. * as.c (show_usage): Add description of new switches: --hash-size and --reduce-memory-overheads. (option_values): Add OPTION_HASH_TABLE_SIZE and OPTION_REDUCE_MEMORY_OVERHEADS. (std_longpopts): Add entries for the new options. (parse_args): Handle the new options. * Makefile.am: Add a dependency of as.c on hash.h. * Makefile.in: Regenerate. * doc/as.texinfo: Document the new switches. * NEWS: Mention the new switches.
* PR gas/818Nick Clifton2005-04-122-4/+11
| | | | * config/tc-hppa.c (pre_defined_registers): Fix %farg[0-3] synonyms.
* bfd/Alan Modra2005-04-1220-1662/+1963
| | | | | | | | | | | | | | | | | | | | | | | | | | * Makefile.am: Run "make dep-am". * Makefile.in: Regenerate. * aclocal.m4: Regenerate. * libcoff.h: Regenerate. bfd/doc/ * Makefile.in: Regenerate. binutils/ * Makefile.am: Run "make dep-am". (syslex.o, sysinfo.o, arparse.o, arlex.o): Add -Wno-error to command. (sysroff.o, defparse.o, deflex.o): Likewise. (nlmheader.o, rcparse.o, rclex.o): Likewise. * Makefile.in: Regenerate. * aclocal.m4: Regenerate. * config.in: Regenerate. * configure: Regenerate. gas/ * Makefile.am: Run "make dep-am". * Makefile.in: Regenerate. ld/ * Makefile.am: Run "make dep-am". (ldgram.o, ldlex.o, deffilep.o): Add -Wno-error to command. * Makefile.in: Regenerate. * config.in: Regenerate.
* *** empty log message ***gdbadmin2005-04-121-1/+1
|
* daily updateAlan Modra2005-04-121-1/+1
|
* * config/tc-xtensa.c (check_t1_t2_reads_and_writes): Fix typo.Bob Wilson2005-04-112-1/+6
|
* * gas/all/gas.exp: Don't run fastcall labels test onMark Kettenis2005-04-112-1/+6
| | | | i*86-*-openbsd*.
* * configure.tgt (generic_target): Add support for OpenBSD/i386 ELF.Mark Kettenis2005-04-112-1/+8
|
* 2005-04-11 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2005-04-114-6/+27
| | | | | | | | | | | * linker.c (_bfd_generic_link_output_symbols): Also check if the output section of an input section has been removed from the output file. * section.c (bfd_section_list_remove): Clear the next field of the removed section. (bfd_section_removed_from_list): New. * bfd-in2.h: Regenerated.
* 2005-04-11 David S. Miller <davem@davemloft.net>Jakub Jelinek2005-04-117-33/+57
| | | | | | | | | | | | | | | * elf32-sparc.c (elf32_sparc_relocate_section, R_SPARC_TLS_LDO_{HIX22,LOX10}): When not shared, transition to R_SPARC_TLS_LE_{HIX22,LOX10}. (elf32_sparc_relocate_section, R_SPARC_TLS_{LDO,LE}_HIX22): Only xor relocation with 0xffffffff if R_SPARC_TLS_LE_HIX22. (elf32_sparc_relocate_section, R_SPARC_TLS_{LDO,LE}_LOX10): Only or 0x1c00 into relocation if R_SPARC_TLS_LE_HIX22. * ld-sparc/tlssunbin32.dd: Update for TLS relocation fixes. * ld-sparc/tlssunbin32.rd: Likewise. * ld-sparc/tlssunbin32.sd: Likewise. * ld-sparc/tlssunpic32.dd: Likewise.
* merge from gccDJ Delorie2005-04-119-7/+172
|
* 2005-04-11 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2005-04-112-1/+5
| | | | * coffcode.h (STRING_SIZE_SIZE): Updated to match libcoff-in.h.
* binutils/Jan Beulich2005-04-112-0/+5
| | | | | | 2005-04-11 Jan Beulich <jbeulich@novell.com> * MAINTAINERS: Add myself as ix86 Intel mode maintainer.
* * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): IgnoreAlan Modra2005-04-112-0/+16
| | | | | as_needed libs that were not needed. (gld${EMULATION_NAME}_check_needed): Likewise.
* gdb/Daniel Jacobowitz2005-04-119-7/+21
| | | | | | | | | | | | | | | * config/djgpp/fnchange.lst: Remove entries for gdb.gdbserver. gdb/testsuite/ * Makefile.in (ALL_SUBDIRS): Replace gdb.gdbserver with gdb.server. * configure.ac: Likewise. * configure: Regenerated. * gdb.gdbserver/Makefile.in: Moved to... * gdb.server/Makefile.in: ... here. * gdb.gdbserver/server.c: Moved to... * gdb.server/server.c: ... here. * gdb.gdbserver/server-run.exp: Moved to... * gdb.server/server-run.exp: ... here.
* gas/Jan Beulich2005-04-119-71/+231
| | | | | | | | | | | | | | | | | | | | | | | | 2005-04-11 Jan Beulich <jbeulich@novell.com> * NEWS: Mention these changes and their effects. * macro.c (get_token): Use is_name_beginner/is_part_of_name/ is_name_ender. (check_macro): Likewise. (buffer_and_nest): Likewise. Permit multiple labels. Don't discard labels together with the closing pseudo-op. (macro_expand_body): Adjust comment. Range-check input before use. Adjust mis-spelled diagnostic. Use is_name_beginner. * read.c (try_macro): New. (read_a_source_file): New static variable last_eol. Don't list macro expansion lines more than once. Call try_macro. (s_macro): Set section of line_label to absolute instead of undefined. * doc/as.texinfo: Add information on the caveats of these changes. gas/testsuite/ 2005-04-11 Jan Beulich <jbeulich@novell.com> * gas/macros/dot.[ls]: New. * gas/macros/macros.exp: Run new test.
* Convert to ISO C90 formattingNick Clifton2005-04-1134-11542/+9139
|
* * symbols.c (symbol_X_add_number): Change return type to "offsetT *".Alan Modra2005-04-113-4/+9
| | | | * symbols.h (symbol_X_add_number): Update prototype.
* *** empty log message ***gdbadmin2005-04-111-1/+1
|
* daily updateAlan Modra2005-04-111-1/+1
|
* 2005-04-10 Eric Christopher <echristo@redhat.com>Eric Christopher2005-04-102-1/+5
| | | | * symbols.c (symbol_X_add_number): Fix warning.
* Update copyright years.Eli Zaretskii2005-04-101-2/+3
|
* * rs6000-tdep.c (ppc_supply_fpregset): Increment offset by 8 forMark Kettenis2005-04-102-3/+9
| | | | | floating-point registers. (ppc_collect_fpregset): Likewise. Fix collection of registers.
* 2005-04-10 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2005-04-102-3/+8
| | | | | * config/tc-m68k.c (md_begin): Support 64bit host. (get_num): Support 64bit BFD on 32bit host.
* 2005-04-10 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2005-04-102-2/+6
| | | | * config/tc-mips.c (md_apply_fix3): Fix typos in BFD_RELOC_64.
* daily updateAlan Modra2005-04-101-1/+1
|
* *** empty log message ***gdbadmin2005-04-101-1/+1
|
* * gdb.texinfo (Print Settings): Document "set/show printEli Zaretskii2005-04-092-108/+541
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pascal_static-members", "set print repeats", "show print null-stop". Improve indexing. Fix documentation of "set print union". (Pascal): New section. (Supported languages): Rename from "Support"; all references updated. Add a menu item for Pascal. (Numbers): Document "set radix. (Screen Size): Document "set/show pagination". (MIPS Embedded): Remove "set processor" documentation. (Remote configuration): Document "set/show X/P/Z-packet", "set/show read-aux-vector-packet", "set/show remote symbol-lookup-packet", "set/show remote verbose-resume-packet", "set/show remoteaddresssize", "set/show remotebaud", "set/show remotedebug", "set/show remotebreak", "set/show remotedevice", "set/show remotelogfile". (Auxiliary Vector): Add reference to the description of the read-aux-vector-packet setting. (Set Watchpoints): Add a cross-reference to "set remote hardware-breakpoint-limit". (General Query Packets): Add indexing of requests and cross-references to related commands in "Remote configuration". (File-I/O Overview, The system call): Fix wording and typos. (Thread Stops): Add index entries. (Continuing and Stepping): Document "show step-mode". (i386): New node. Document "set/show struct-convention". (Files): Document "show trust-readonly-sections". (Calling): Document "set/show unwindonsignal". (Messages/Warnings): Add index entries. (Maintenance Commands): Document "set/show watchdog". (Annotations Overview): Document "show annotate". (Set Watchpoints): Add index entries. (Symbols): Fix doc of case-sensitive. (ABI): Document "show coerce-float-to-double". (Convenience Vars, Help): Improve indexing. (Machine Code): Document "show disassembly-flavor". (Debugging C plus plus): Document "show overload-resolution". (Value History, Signaling): Add index entries. * gdb.texinfo (Show): Move @kindex entries to their proper places. (Processes): Fix wording. (History, List, Logging output, Define, Symbols, Print Settings): Improve indexing.
* * ppcobsd-tdep.c: Update copyright year. Include "trad-frame.h"Mark Kettenis2005-04-093-4/+71
| | | | | | | | and "tramp-frame.h". (ppcobsd_sigtramp_cache_init): New function. (ppcobsd_sigtramp): New variable. (ppcobsd_init_abi): Prepend signal trampoline unwinder. * Makefile.in (ppcobsd-tdep.o): Update dependencies.
* * read.c (assign_symbol): Remove const from parm. Fix xcallocAlan Modra2005-04-092-11/+16
| | | | | | call. Don't do the COFF hacks for multi-emulation gas. Move demand_empty_rest_of_line back to caller. (s_set, equals): demand_empty_rest_of_line here.
* PR gas/827Alan Modra2005-04-096-130/+149
| | | | | | | | | | | | | | | | | * as.h (rs_dummy): Define. * symbols.c (symbol_X_add_number): New function. * symbols.h (symbol_X_add_number): Declare. * stabs.c (aout_process_stab): Tidy symbol frag setting. * read.c (assign_symbol): New function, split out from s_set. Use symbol_find_or_make. Leave fr_type of dummy frag as rs_dummy. Fix COFF hacks for multi-emulation gas. (s_set): Call assign_symbol. Remove "register" keyword. (set_zero_frag): New function. (pseudo_set): Always check for assignment to section syms. Always set segment and frag of symbol, and likewise extern for aout/bout. Handle assignment of sym=sym+/-const specially. Don't special case exp.X_add_number non-zero for O_symbol expressions. (equals): Use assign_symbol.