Alan Modra
d2bcb0d1aa
PR ld/14926
...
* elf.c (_bfd_elf_map_sections_to_segments): Include elf header
size when determining phdr_in_segment.
2012-12-07 04:58:36 +00:00
Alan Modra
2a744ebb76
daily update
2012-12-06 23:00:05 +00:00
Yufeng Zhang
cd6fa7fd88
bfd/
...
2012-12-06 Yufeng Zhang <yufeng.zhang@arm.com>
* elf64-aarch64.c (elf64_aarch64_grok_prstatus): New function.
(elf_backend_grok_prstatus): Define to elf64_aarch64_grok_prstatus.
2012-12-06 15:56:38 +00:00
Alan Modra
625ef6dc55
* elfxx-mips.c (allocate_dynrelocs): Correct test for symbol
...
defined in a regular file to include common symbols.
2012-12-06 00:09:13 +00:00
Alan Modra
ad288036a7
daily update
2012-12-05 23:00:05 +00:00
Alan Modra
79056107ed
Add x86_64-*-rdos.
2012-12-05 05:48:19 +00:00
Alan Modra
68d6295870
* elf64-ppc.c (build_plt_stub): Fix off by one error in branch
...
to glink.
2012-12-05 04:58:51 +00:00
Alan Modra
bfc07f4d1a
daily update
2012-12-04 23:00:05 +00:00
Alan Modra
db53afde99
daily update
2012-12-03 23:00:05 +00:00
Maciej W. Rozycki
e6aea42dfa
PR ld/10629
...
* elfxx-mips.c (mips_elf_link_hash_table): Update comment for
use_rld_obj_head.
(_bfd_mips_elf_create_dynamic_sections): Always create a
.rld_map section if no __rld_obj_head symbol has been seen.
2012-12-03 16:37:51 +00:00
Maciej W. Rozycki
dd2bed3aca
* elf32-mips.c (mips_elf32_object_p): Return right away when the
...
ABI is not compatible.
* elfn32-mips.c (mips_elf_n32_object_p): Likewise.
2012-12-03 16:33:13 +00:00
Maciej W. Rozycki
a412bee57b
* elf32-tilepro.c (tilepro_elf_mkobject): New function.
...
(bfd_elf32_mkobject): New macro.
2012-12-03 16:30:03 +00:00
Maciej W. Rozycki
6ae68ba390
bfd/
...
* elf32-mips.c (bfd_elf32_mkobject): New macro.
* elf64-mips.c (bfd_elf64_mkobject): Likewise.
* elfn32-mips.c (bfd_elf32_mkobject): Likewise.
* elfxx-mips.h (_bfd_mips_elf_mkobject): New prototype.
* elfxx-mips.c (mips_elf_obj_tdata): New struct.
(mips_elf_tdata): New macro.
(_bfd_mips_elf_mkobject): New function.
(mips_elf_merge_obj_attributes): Report the originating input BFD
on attribute conflicts.
ld/testsuite/
* ld-mips-elf/attr-gnu-4-12.d: Update the warning message.
* ld-mips-elf/attr-gnu-4-13.d: Likewise.
* ld-mips-elf/attr-gnu-4-14.d: Likewise.
* ld-mips-elf/attr-gnu-4-15.d: Likewise.
* ld-mips-elf/attr-gnu-4-21.d: Likewise.
* ld-mips-elf/attr-gnu-4-23.d: Likewise.
* ld-mips-elf/attr-gnu-4-24.d: Likewise.
* ld-mips-elf/attr-gnu-4-25.d: Likewise.
* ld-mips-elf/attr-gnu-4-31.d: Likewise.
* ld-mips-elf/attr-gnu-4-32.d: Likewise.
* ld-mips-elf/attr-gnu-4-34.d: Likewise.
* ld-mips-elf/attr-gnu-4-35.d: Likewise.
* ld-mips-elf/attr-gnu-4-41.d: Likewise.
* ld-mips-elf/attr-gnu-4-42.d: Likewise.
* ld-mips-elf/attr-gnu-4-43.d: Likewise.
* ld-mips-elf/attr-gnu-4-45.d: Likewise.
* ld-mips-elf/attr-gnu-4-51.d: Likewise.
2012-12-03 16:17:48 +00:00
Maciej W. Rozycki
20696deded
bfd/
...
* elfxx-mips.c (mips_elf_merge_obj_attributes): Correct messages
for the -mdouble-float and -msingle-float cases throughout; make
all the messages report the output file consistently on the
left-hand side.
ld/testsuite/
* ld-mips-elf/attr-gnu-4-12.d: Adjust the warning expected
according to changes to BFD.
* ld-mips-elf/attr-gnu-4-14.d: Likewise.
* ld-mips-elf/attr-gnu-4-31.d: Likewise.
* ld-mips-elf/attr-gnu-4-32.d: Likewise.
* ld-mips-elf/attr-gnu-4-34.d: Likewise.
* ld-mips-elf/attr-gnu-4-41.d: Likewise.
2012-12-03 15:57:44 +00:00
Alan Modra
108170905a
daily update
2012-12-02 23:00:04 +00:00
Alan Modra
dae66d1066
daily update
2012-12-01 23:00:05 +00:00
Alan Modra
d7893ac43a
daily update
2012-11-30 23:00:03 +00:00
Alan Modra
ccd6faef2b
daily update
2012-11-29 23:00:03 +00:00
Roland McGrath
a0c82a2bce
bfd/
...
* elf-nacl.c (segment_eligible_for_headers): Disallow writable segments.
2012-11-29 19:07:53 +00:00
Hans-Peter Nilsson
17a5e4b875
Fix attribution for old patch:
...
2009-10-19 Edgar E. Iglesias <edgar@axis.com>
Hans-Peter Nilsson <hp@axis.com>
* elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_DTPREL>:
Don't subtract the size of the TLS block for non-shared objects
from the relocation.
2012-11-29 14:39:23 +00:00
Alan Modra
4e2cfdbdc0
daily update
2012-11-28 23:00:05 +00:00
Alan Modra
11985b7f96
daily update
2012-11-27 23:00:05 +00:00
Alan Modra
b80f948aeb
daily update
2012-11-26 23:00:10 +00:00
Roland McGrath
aa6407c6ed
bfd/
...
* elf-nacl.c (nacl_modify_segment_map): Don't crash when INFO is null.
2012-11-26 17:49:11 +00:00
Alan Modra
e898b29382
daily update
2012-11-25 23:00:05 +00:00
Alan Modra
6ee8970bb5
daily update
2012-11-24 23:00:04 +00:00
Alan Modra
ea98391bd5
daily update
2012-11-23 23:00:05 +00:00
Alan Modra
686f4cdfc5
daily update
2012-11-22 23:00:04 +00:00
Alan Modra
0f60f328f0
daily update
2012-11-21 23:00:04 +00:00
H.J. Lu
f1d8578513
Set output maxpagesize when rewriting program header
...
bfd/
PR binutils/14493
* elf.c (copy_elf_program_header): When rewriting program
header, set the output maxpagesize to the maximum alignment
of input PT_LOAD segments.
2012-11-21 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/14493
* ld-elf/maxpage5.d: New file.
* ld-elf/maxpage5.s: Likewise.
* ld-elf/maxpage5.t: Likewise.
2012-11-21 21:31:18 +00:00
Roland McGrath
a3f548ed85
bfd/
...
* elf-nacl.c (segment_nonexecutable_and_has_contents): Renamed to ...
(segment_eligible_for_headers): ... this. Take new arguments
MAXPAGESIZE and SIZEOF_HEADERS. Return false if the first section's
start address doesn't leave space for the headers.
(nacl_modify_segment_map): Update caller.
2012-11-21 20:13:04 +00:00
Alan Modra
579994610c
daily update
2012-11-20 23:00:03 +00:00
H.J. Lu
dda8ddc56f
Remove ref_dynamic_nonweak added by accident
...
bfd/
2012-11-20 H.J. Lu <hongjiu.lu@intel.com>
PR ld/14862
* elf-bfd.h (elf_link_hash_entry): Remove ref_dynamic_nonweak
added by accident.
(elf_link_add_object_symbols): Don't set nor check
ref_dynamic_nonweak.
ld/testsuite/
2012-11-20 H.J. Lu <hongjiu.lu@intel.com>
PR ld/14862
* ld-elf/shared.exp (build_tests): Build libpr14862-1.o and
libpr14862.so.
(run_tests): Test pr14862.
* ld-elf/pr14862-1.c: New file.
* ld-elf/pr14862-2.c: Likewise.
* ld-elf/pr14862.map: Likewise.
* ld-elf/pr14862.out: Likewise.
2012-11-20 22:17:27 +00:00
Alan Modra
6d8a3edee5
* elf32-rx.c (rx_elf_print_private_bfd_data): Warning fix.
2012-11-20 01:40:00 +00:00
Alan Modra
3ed43f129e
daily update
2012-11-19 23:00:03 +00:00
Alan Modra
2315ff81ea
daily update
2012-11-18 23:00:02 +00:00
Alan Modra
67f186a615
daily update
2012-11-16 23:00:04 +00:00
Yufeng Zhang
79f080079c
bfd/ChangeLog
...
2012-11-16 Joey Ye <joey.ye@arm.com>
* elf32-arm.c (elf32_arm_final_link_relocate,
case R_ARM_THM_ALU_PREL_11_0, case R_ARM_THM_PC12): Align address of
the place being relocated.
(elf32_arm_final_link_relocate, case R_ARM_THM_PC8): Align address
of the place being relocated and truncate addend.
(Pa): New macro.
2012-11-16 18:33:00 +00:00
Alan Modra
71fc5f3b4b
daily update
2012-11-15 23:00:03 +00:00
Roland McGrath
edccdf7c8b
bfd/
...
* elf32-arm.c (elf32_arm_nacl_plt0_entry): Use bic rather than bfc
instruction for data sandboxing.
gold/
* arm.cc (Output_data_plt_arm_nacl::first_plt_entry): Use bic rather
than bfc instruction for data sandboxing.
2012-11-15 00:30:11 +00:00
Alan Modra
d5673c84ee
daily update
2012-11-14 23:00:03 +00:00
Tristan Gingold
1778ad74b3
bfd/
...
2012-11-14 Tristan Gingold <gingold@adacore.com>
* mach-o.c (bfd_mach_o_read_main)
(bfd_mach_o_read_source_version): New functions.
(bfd_mach_o_read_command): Handle BFD_MACH_O_LC_DATA_IN_CODE,
BFD_MACH_O_LC_DYLIB_CODE_SIGN_DRS, BFD_MACH_O_LC_MAIN,
BFD_MACH_O_LC_SOURCE_VERSION.
* mach-o.h (bfd_mach_o_main_command)
(bfd_mach_o_source_version_command): New types.
(bfd_mach_o_load_command): Add fields for these new types.
binutils/
2012-11-14 Tristan Gingold <gingold@adacore.com>
* od-macho.c (bfd_mach_o_load_command_name): Add new definitions.
(dump_load_command): Handle BFD_MACH_O_LC_SOURCE_VERSION
and BFD_MACH_O_LC_MAIN.
2012-11-14 11:03:27 +00:00
Tristan Gingold
f4716ee22e
2012-11-14 Tristan Gingold <gingold@adacore.com>
...
* mach-o.c (bfd_mach_o_canonicalize_one_reloc): Add a special
handling for non-scattered pairs. Update comments.
2012-11-14 10:29:46 +00:00
Alan Modra
52bef019f8
daily update
2012-11-13 23:00:04 +00:00
H.J. Lu
5964fc3adc
Allocate elf_segment_map with bfd_zalloc
...
* elf.c (rewrite_elf_program_header): Allocate elf_segment_map
with bfd_zalloc, instead of bfd_alloc.
2012-11-13 22:54:21 +00:00
Alan Modra
005c560c76
daily update
2012-11-12 23:00:03 +00:00
Alan Modra
b494aad8c3
daily update
2012-11-11 23:00:04 +00:00
Alan Modra
f8869e47bf
daily update
2012-11-10 23:00:04 +00:00
Alan Modra
99443492b3
daily update
2012-11-09 23:00:03 +00:00
Nick Clifton
de863c7475
2012-11-09 Nick Clifton <nickc@redhat.com>
...
* Makefile.am (ALL_MACHINES): Add cpu-v850-rh850.lo.
(ALL_MACHINES_CFILES): Add cpu-v850-rh850.c.
* archures.c (bfd_arch_info): Add bfd_v850_rh850_arch.
* config.bfd: Likewise.
* configure.in: Add bfd_elf32_v850_rh850_vec.
* cpu-v850.c: Update printed description.
* cpu-v850_rh850.c: New file.
* elf32-v850.c (v850_elf_check_relocs): Add support for RH850 ABI
relocs.
(v850_elf_perform_relocation): Likewise.
(v850_elf_final_link_relocate): Likewise.
(v850_elf_relocate_section): Likewise.
(v850_elf_relax_section): Likewise.
(v800_elf_howto_table): New.
(v850_elf_object_p): Add support for RH850 ABI values.
(v850_elf_final_write_processing): Likewise.
(v850_elf_merge_private_bfd_data): Likewise.
(v850_elf_print_private_bfd_data): Likewise.
(v800_elf_reloc_map): New.
(v800_elf_reloc_type_lookup): New.
(v800_elf_reloc_name_lookup): New.
(v800_elf_info_to_howto): New.
(bfd_elf32_v850_rh850_vec): New.
(bfd_arch_v850_rh850): New.
* targets.c (_bfd_targets): Add bfd_elf32_v850_rh850_vec.
* Makefile.in: Regenerate.
* bfd-in2.h: Regenerate.
* configure: Regenerate.
* readelf.c (get_machine_flags): Add support for E_FLAG_RX_ABI.
(guess_is_rela): Add EM_V800.
(dump_relocations): Likewise.
(get_machine_name): Update EM_V800.
(get_machine_flags): Add support for RH850 ABI flags.
(is_32bit_abs_reloc): Add support for RH850 ABI reloc.
* config/tc-v850.c (v850_target_arch): New.
(v850_target_format): New.
(set_machine): Use v850_target_arch.
(md_begin): Likewise.
(md_show_usage): Document new switches.
(md_parse_option): Add -mgcc-abi, -mrh850-abi, -m8byte-align and
-m4byte-align.
* config/tc-v850.c (TARGET_ARCH) Use v850_target_arch.
(TARGET_FORMAT): Use v850_target_format.
* doc/c-v850.texi: Document new options.
* v850.h: Add RH850 ABI values.
* Makefile.am: (ALL_EMULATION_SOURCES): Add ev850_rh850.c.
* Makefile.in: Regenerate.
* configure.tgt (v850*-*-*): Make v850_rh850 the default
emulation. Add vanilla v850 as an extra emulation.
* emulparams/v850_rh850.sh: New file.
* scripttempl/v850_rh850.sc: New file.
* configure.in: Add bfd_v850_rh850_arch.
* configure: Regenerate.
* disassemble.c (disassembler): Likewise.
2012-11-09 17:36:19 +00:00