Joseph Myers
104d59d19c
bfd:
...
* elf-attrs.c: New.
* Makefile.am (BFD32_BACKENDS): Add elf-attrs.lo.
(BFD32_BACKENDS_CFILES): Add elf-attrs.c.
(elf-attrs.lo): Generate dependencies.
* Makefile.in: Regenerate.
* configure.in (elf): Add elf-attrs.lo.
* configure: Regenerate.
* elf-bfd.h (struct elf_backend_data): Add entries for object
attributes.
(NUM_KNOWN_OBJ_ATTRIBUTES, obj_attribute, obj_attribute_list,
OBJ_ATTR_PROC, OBJ_ATTR_GNU, OBJ_ATTR_FIRST, OBJ_ATTR_LAST,
Tag_NULL, Tag_File, Tag_Section, Tag_Symbol, Tag_compatibility):
New.
(struct elf_obj_tdata): Add entries for object attributes.
(elf_known_obj_attributes, elf_other_obj_attributes,
elf_known_obj_attributes_proc, elf_other_obj_attributes_proc):
New.
(bfd_elf_obj_attr_size, bfd_elf_set_obj_attr_contents,
bfd_elf_get_obj_attr_int, bfd_elf_add_obj_attr_int,
bfd_elf_add_proc_attr_int, bfd_elf_add_obj_attr_string,
bfd_elf_add_proc_attr_string, bfd_elf_add_obj_attr_compat,
bfd_elf_add_proc_attr_compat, _bfd_elf_attr_strdup,
_bfd_elf_copy_obj_attributes, _bfd_elf_obj_attrs_arg_type,
_bfd_elf_parse_attributes, _bfd_elf_merge_object_attributes): New.
* elf.c (_bfd_elf_copy_private_bfd_data): Copy object attributes.
(bfd_section_from_shdr): Handle attributes sections.
* elflink.c (bfd_elf_final_link): Handle attributes sections.
* elfxx-target.h (elf_backend_obj_attrs_vendor,
elf_backend_obj_attrs_section, elf_backend_obj_attrs_arg_type,
elf_backend_obj_attrs_section_type): New.
(elfNN_bed): Update.
* elf32-arm.c (NUM_KNOWN_ATTRIBUTES, aeabi_attribute,
aeabi_attribute_list): Remove.
(struct elf32_arm_obj_tdata): Remove object attributes fields.
(check_use_blx, bfd_elf32_arm_set_vfp11_fix, using_thumb2,
elf32_arm_copy_private_bfd_data, elf32_arm_merge_eabi_attributes):
Update for new object attributes interfaces.
(uleb128_size, is_default_attr, eabi_attr_size,
elf32_arm_eabi_attr_size, write_uleb128, write_eabi_attribute,
elf32_arm_set_eabi_attr_contents, elf32_arm_bfd_final_link,
elf32_arm_new_eabi_attr, elf32_arm_get_eabi_attr_int,
elf32_arm_add_eabi_attr_int, attr_strdup,
elf32_arm_add_eabi_attr_string, elf32_arm_add_eabi_attr_compat,
copy_eabi_attributes, elf32_arm_parse_attributes): Remove. Moved
to generic code in elf-attrs.c.
(elf32_arm_obj_attrs_arg_type): New.
(elf32_arm_fake_sections): Do not handle .ARM.attributes.
(elf32_arm_section_from_shdr): Do not handle SHT_ARM_ATTRIBUTES.
(bfd_elf32_bfd_final_link): Remove.
(elf_backend_obj_attrs_vendor, elf_backend_obj_attrs_section,
elf_backend_obj_attrs_arg_type,
elf_backend_obj_attrs_section_type): New.
* elf32-bfin.c (bfin_elf_copy_private_bfd_data): Copy object
attributes.
* elf32-frv.c (frv_elf_copy_private_bfd_data): Likewise.
* elf32-iq2000.c (iq2000_elf_copy_private_bfd_data): Likewise.
* elf32-mep.c (mep_elf_copy_private_bfd_data): Likewise.
* elf32-mt.c (mt_elf_copy_private_bfd_data): Likewise.
* elf32-sh.c (sh_elf_copy_private_data): Likewise.
* elf64-sh64.c (sh_elf64_copy_private_data_internal): Likewise.
binutils:
* readelf.c (display_gnu_attribute): New.
(process_arm_specific): Rearrange as process_attributes.
(process_arm_specific): Replace by wrapper of process_attributes.
gas:
* as.c (create_obj_attrs_section): New.
(main): Call create_obj_attrs_section for ELF.
* read.c (s_gnu_attribute, skip_whitespace, skip_past_char,
skip_past_comma, s_vendor_attribute): New.
(potable): Add gnu_attribute for ELF.
* read.h (s_vendor_attribute): Declare.
* config/tc-arm.c (s_arm_eabi_attribute): Replace by wrapper
round s_vendor_attribute.
(aeabi_set_public_attributes): Update for new attributes
interfaces.
(arm_md_end): Remove attributes contents setting now done
generically.
include/elf:
* arm.h (elf32_arm_add_eabi_attr_int,
elf32_arm_add_eabi_attr_string, elf32_arm_add_eabi_attr_compat,
elf32_arm_get_eabi_attr_int, elf32_arm_set_eabi_attr_contents,
elf32_arm_eabi_attr_size, Tag_NULL, Tag_File, Tag_Section,
Tag_Symbol, Tag_compatibility): Remove.
* common.h (SHT_GNU_ATTRIBUTES): Define.
ld:
* emulparams/armelf.sh (OTHER_SECTIONS): Remove .ARM.attributes.
(ATTRS_SECTIONS): Define.
* scripttempl/elf.sc, scripttempl/elf32sh-symbian.sc,
scripttempl/elf_chaos.sc, scripttempl/elfi370.sc,
scripttempl/elfxtensa.sc: Handle ATTRS_SECTIONS.
2007-06-29 16:29:17 +00:00
Paul Brook
5ab7998193
2007-06-29 Paul Brook <paul@codesourcery.com>
...
bfd/
* elf32-arm.c (bfd_elf32_arm_process_before_allocation): Suppress
call veneers for call relocations against undefined symbols.
(elf32_arm_final_link_relocate): Turn call to undefined symbol
into a jump to the next instruction.
ld/testuite/
* ld-arm/arm-elf.exp (armelftests): Add callweak.
* ld-arm/callweak.d: New test.
* ld-arm/callweak.s: New test.
2007-06-29 15:05:47 +00:00
Nick Clifton
32e8a950c4
* bfd.c (bfd_demangle): Plug memory leak (Coverity).
2007-06-29 14:36:21 +00:00
Nick Clifton
3d3d428f04
New port: National Semiconductor's CR16
2007-06-29 14:09:34 +00:00
Bernd Schmidt
7c3e1d1299
* configure.ac: Don't add target-libmudflap to noconfigdirs for
...
uclinux and linux-uclibc targets.
* configure: Regenerate.
2007-06-29 11:33:56 +00:00
H.J. Lu
f403ca9371
2007-06-28 H.J. Lu <hongjiu.lu@intel.com>
...
PR ld/4701
* ld-elf/noload-2.d: New.
2007-06-29 03:10:53 +00:00
Alan Modra
c55fe0967e
* elflink.c (_bfd_elf_link_assign_sym_version): Improve error
...
message for undefined version nodes.
(elf_gc_sweep): Don't warn when zero size sections are
removed.
2007-06-29 02:09:42 +00:00
Alan Modra
375de94a5e
* elf32-ppc.c (ppc_elf_info_to_howto): Check for invalid relocation
...
types.
2007-06-29 01:51:55 +00:00
Alan Modra
7d3287cb71
* elf32-spu.c (spu_elf_fake_sections): New function.
...
(elf_backend_fake_sections): Define.
2007-06-29 01:39:54 +00:00
H.J. Lu
36fc76aebb
Mention PR ld/4701.
2007-06-29 01:22:40 +00:00
Alan Modra
6a3cd2b4ed
* elf.c (assign_file_positions_for_load_sections): Use elf
...
section header sh_size rather than bfd section size, simplifying
.tbss handling.
2007-06-29 01:21:08 +00:00
Alan Modra
bf988460f1
* elf.c (assign_file_positions_for_load_sections): Ensure bss
...
segments meet gABI alignment requirements. Don't allocate
file space for bss sections in a segment also containing file
or program headers.
2007-06-29 01:12:52 +00:00
Michael Snyder
f08312c2d4
2007-06-28 Michael Snyder <msnyder@access-company.com>
...
* m2-typeprint.c (m2_print_type): Move pointer ref after null test
(Coverity).
2007-06-29 00:35:08 +00:00
Roland McGrath
1ac7d223d3
.
2007-06-29 00:34:18 +00:00
Roland McGrath
c1c0eb9e7b
2007-06-28 Roland McGrath <roland@frob.com>
...
* objcopy.c (setup_section): Don't reset ELF section type to
SHT_NOBITS when it is SHT_NOTE.
* doc/binutils.texi (objcopy, strip): Mention under --only-keep-debug.
2007-06-29 00:34:14 +00:00
Michael Snyder
f66d1690c3
2007-06-28 Michael Snyder <msnyder@svkmacdonelllnx>
...
* gdbint.texinfo (Table, Tuple and List Functions) Fix typo.
2007-06-29 00:23:44 +00:00
gdbadmin
d2ea1f5742
*** empty log message ***
2007-06-29 00:00:33 +00:00
Alan Modra
0f504e0094
daily update
2007-06-29 00:00:05 +00:00
Michael Snyder
a787bedf4f
2007-06-28 Michael Snyder <msnyder@access-company.com>
...
* linux-thread-db.c (thread_db_get_thread_local_address): Add
gdb_assert before using return value of find_thread_pid (Coverity).
2007-06-28 23:02:06 +00:00
Michael Snyder
77accacd47
2007-06-28 Michael Snyder <msnyder@access-company.com>
...
* source.c (unset_substitute_path_command): Plug leak (Coverity).
2007-06-28 22:14:06 +00:00
Michael Snyder
dd3526aae6
2007-06-28 Michael Snyder <msnyder@access-company.com>
...
* cli/cli-script.c (build_command_line): Add null pointer guard
(Coverity).
2007-06-28 21:48:54 +00:00
DJ Delorie
a5b3b4ddf1
* configure.ac (arm*-*-linux-gnueabi): Don't build libgloss if we're
...
not building newlib.
* configure: Regenerated.
2007-06-28 19:31:44 +00:00
H.J. Lu
40b8e679e8
2007-06-28 H.J. Lu <hongjiu.lu@intel.com>
...
* Makefile.am (HFILES): Add i386-opc.h and i386-tbl.h.
(CFILES): Add i386-gen.c.
(i386-gen): New rule.
(i386-gen.o): Likewise.
(i386-tbl.h): Likewise.
Run "make dep-am".
* Makefile.in: Regenerated.
* i386-gen.c: New file.
* i386-opc.tbl: Likewise.
* i386-reg.tbl: Likewise.
* i386-tbl.h: Likewise.
* i386-opc.c: Include "i386-tbl.h".
(i386_optab): Removed.
(i386_regtab): Likewise.
(i386_regtab_size): Likewise.
2007-06-28 14:29:56 +00:00
Richard Sandiford
d5fb0879a5
sim/mips/
...
* configure.ac, configure: Revert last patch.
2007-06-28 06:00:52 +00:00
Alan Modra
fe0a07a117
daily update
2007-06-28 00:00:05 +00:00
gdbadmin
90a6e26921
*** empty log message ***
2007-06-28 00:00:04 +00:00
Alan Modra
cc481421d0
bfd/
...
* bfd.c (struct bfd): Rename "next" to "archive_next".
* archive.c: Rename uses throughout file.
* archive64.c: Likewise.
* coff-rs6000.c: Likewise.
* ecoff.c: Likewise.
* som.c: Likewise.
* bfd-in2.h: Regenerate.
binutils/
* ar.c: Rename uses of bfd.next to bfd.archive_next throughout.
* arsup.c: Likewise.
* binemul.c: Likewise.
* objcopy.c: Likewise.
* dlltool.c: Likewise.
ld/
* pe-dll.c: Rename uses of bfd.next to bfd.archive_next throughout.
2007-06-27 11:54:10 +00:00
Daniel Jacobowitz
4105de343e
* linux-thread-db.c (thread_db_attach): Delete.
...
(thread_db_detach): Typo fix. Call target_mourn_inferior
instead of fixing up proc_handle.
(have_threads_callback, have_threads): New functions.
(thread_db_wait): Remove dead proc_handle.pid check. Only
translate PTIDs if we have registered threads. Check for new
threads if we have none.
(thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
(find_new_threads_callback): Only enable event reporting if TID == 0.
(same_ptid_callback): New.
(thread_db_get_thread_local_address): Check for new threads.
(init_thread_db_ops): Don't set to_attach, to_create_inferior,
or to_post_startup_inferior.
* thread-db.c (thread_db_find_new_threads): Add prototype.
(thread_db_create_event): Check for the main thread before adding
a new thread.
(maybe_attach_thread): Only enable event reporting if TID == 0.
(thread_db_get_tls_address): Check for new threads.
2007-06-27 11:52:02 +00:00
Alan Modra
58eb693ef1
* elf32-spu.c (spu_elf_create_sections): Properly iterate over
...
input bfds.
2007-06-27 07:12:54 +00:00
Alan Modra
60b31e8d17
* elf32-ppc.c (ppc_elf_select_plt_layout): Properly iterate over
...
input bfds.
2007-06-27 06:42:14 +00:00
gdbadmin
2cea28dd72
*** empty log message ***
2007-06-27 00:00:33 +00:00
Alan Modra
bd30bda7eb
daily update
2007-06-27 00:00:05 +00:00
Paul Brook
cd2cf30b7d
2007-06-26 Paul Brook <paul@codesourcery.com>
...
gas/
* config/tc-arm.c (parse_operands): Accept generic coprocessor regs
for OP_RVC.
(reg_names): Add fpinst, pfinst2, mvfr0 and mvfr1.
gas/testsuite/
* gas/arm/vfp1xD.d: Add new fmrx/fmxr tests.
* gas/arm/vfp1xD.s: Ditto.
* gas/arm/vfp1xD_t2.d: Ditto.
* gas/arm/vfp1xD_t2.s: Ditto.
opcodes/
* arm-dis.c (coprocessor_opcodes): Add fmxr/fmrx mvfr0/mvfr1.
2007-06-26 21:36:37 +00:00
Daniel Jacobowitz
86f78eb20c
* gdb.base/chng-syms.exp: Handle glibc's __GI_exit.
2007-06-26 20:28:47 +00:00
H.J. Lu
d431cc14f3
2007-06-29 H.J. Lu <hjl@gnu.org>
...
* ld-scripts/assert.t: Discard .reginfo sections.
2007-06-26 16:41:04 +00:00
Nick Clifton
cd6a2ed0be
PR binutils/4693
...
* Makefile.am (windres_DEPENDENCIES, windmc_DEPENDENCIES): Move dependency on $(LIBICONV) to ...
(windres_LDADD, windmc_LDADD) ... here.
2007-06-26 14:39:52 +00:00
Nick Clifton
bec42b1574
* dwarf2.c (find_line): New. Contains the duplicated code from:
...
(_bfd_dwarf2_find_nearest_line): Use it.
(_bfd_dwarf2_find_line): Use it.
2007-06-26 14:28:13 +00:00
Joseph Myers
3d3e6f9a7c
bfd:
...
* elf32-arm.c (copy_eabi_attributes): Copy type of attributes.
ld/testsuite:
* ld-arm/attr-merge.s, ld-arm/attr-merge.attr: New.
* ld-arm/arm-elf.exp (armelftests): Add new test.
2007-06-26 13:55:04 +00:00
Nick Clifton
a46ed97fe4
* gas/arm/backslash-at.d: Fix for non-ELF arm targets.
2007-06-26 12:58:55 +00:00
Richard Sandiford
2a2ce21ba2
sim/mips/
...
* configure.ac (sim_mipsisa3264_configs): New variable.
(mipsis32*-*-, mipsisa32r2*-*-*, mips64*-*-*, mips64r2*-*-*): Make
every configuration support all four targets, using the triplet to
determine the default.
* configure: Regenerate.
2007-06-26 12:16:53 +00:00
Alan Modra
5bbffd3d1d
daily update
2007-06-26 00:00:05 +00:00
gdbadmin
27a2f8743e
*** empty log message ***
2007-06-26 00:00:02 +00:00
H.J. Lu
5f15756d11
gas/
...
2007-06-25 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (process_operands): Replace regKludge
with RegKludge.
opcodes/
2007-06-25 H.J. Lu <hongjiu.lu@intel.com>
* i386-opc.h (regKludge): Renamed to ...
(RegKludge): This.
* i386-opc.c (i386_optab): Replace regKludge with RegKludge.
2007-06-25 21:20:20 +00:00
Daniel Jacobowitz
0a7692b27d
Changelog typo fix.
2007-06-25 12:24:52 +00:00
Richard Sandiford
efdcccc981
sim/mips/
...
* Makefile.in (m16_run.o): New rule.
2007-06-25 11:21:53 +00:00
Richard Sandiford
b314ec0eae
bfd/
...
* elfxx-mips.c (mips_elf_calculate_relocation): Allow local stubs
to be used for calls from MIPS16 code.
gas/
* config/tc-mips.h (TC_SYMFIELD_TYPE): New.
* config/tc-mips.c (append_insn): Record which symbols have
R_MIPS16_26 relocations against them.
(mips_fix_adjustable): Don't reduce relocations against such symbols.
ld/testsuite/
* ld-mips-elf/mips16-local-stubs-1.s,
* ld-mips-elf/mips16-local-stubs-1.d: New tests.
* ld-mips-elf/mips-elf.exp: Run them.
2007-06-25 10:13:57 +00:00
Nick Roberts
b6fd0dfb46
(Register and Memory Data): Break sections
...
into nodes and add a menu.
2007-06-25 04:21:02 +00:00
Nick Roberts
671028766f
*** empty log message ***
2007-06-25 04:20:38 +00:00
Alan Modra
10efce5dc8
daily update
2007-06-25 00:00:06 +00:00
gdbadmin
6d63cc93dc
*** empty log message ***
2007-06-25 00:00:03 +00:00