Alan Modra
cb90edda25
daily update
2012-11-07 23:00:05 +00:00
H.J. Lu
ddda4adc28
Replace memcpy with memmove
...
* section.c (bfd_get_section_contents): Replace memcpy
with memmove.
2012-11-07 05:57:24 +00:00
Hans-Peter Nilsson
75344f2a89
PR binutils/14481
...
* aout-target.h (MY_close_and_cleanup): Make local function
instead of alias of MY_bfd_free_cached_info. Also call
_bfd_generic_close_and_cleanup.
2012-11-07 05:51:37 +00:00
H.J. Lu
9053b70efa
Change return type of bclose to bfd_boolean
...
PR binutils/14813
* bfdio.c (bfd_iovec): Change return type of bclose to
bfd_boolean.
(memory_bclose): Change return type to bfd_boolean.
* cache.c (cache_bclose): Likewise.
* opncls.c (opncls_bclose): Likewise. Return TRUE on success.
* vms-lib.c (vms_lib_bclose): Likewise. Return TRUE.
* libbfd.h: Regenerated.
2012-11-07 00:55:04 +00:00
Alan Modra
87988f9a1d
daily update
2012-11-06 23:00:05 +00:00
Tristan Gingold
4bea9418b3
2012-11-06 Tristan Gingold <gingold@adacore.com>
...
* coff-x86_64.c (_bfd_generic_find_nearest_line_discriminator):
Define as coff_find_nearest_line_discriminator.
2012-11-06 16:11:07 +00:00
Alan Modra
b374d0f8d9
PR binutils/14567
...
* opncls.c (opncls_iovec): Forward declare.
(_bfd_new_bfd_contained_in): If using opncls_iovec, copy iostream
to new bfd.
2012-11-06 09:31:12 +00:00
Alan Modra
8c746b9642
* mach-o.c (bfd_mach_o_close_and_cleanup): Don't call
...
_bfd_generic_close_and_cleanup for mach_o_fat archives.
2012-11-06 06:44:01 +00:00
Alan Modra
0df8acdee9
Allow SEC_CODE and SEC_READONLY in section flags.
2012-11-06 06:36:42 +00:00
Alan Modra
1849850340
bfd/
...
* coff-tic4x.c (tic4x_coff0_vec, tic4x_coff0_beh_vec,
tic4x_coff1_vec, tic4x_coff1_beh_vec, tic4x_coff2_vec,
tic4x_coff2_beh_vec): Allow SEC_CODE and SEC_READONLY in
section flags.
gas/
* config/tc-tic4x.c: Remove alignment TODO comments.
(tic4x_do_align): Enable subseg_text_p test.
2012-11-06 05:51:18 +00:00
Alan Modra
a38a07e07c
bfd/
...
* elf64-ppc.c (struct ppc_link_hash_table): Add dot_toc_dot.
(ppc64_elf_size_stubs): Lookup ".TOC.".
(ppc64_elf_relocate_section): Resolve special symbol ".TOC.".
gas/
* config/tc-ppc.c (ppc_elf_adjust_symtab): New function, split out..
(ppc_frob_file_before_adjust): ..from here.
(md_apply_fix): Set BSF_KEEP on .TOC. if not @tocbase.
* config/tc-ppc.h (ppc_elf_adjust_symtab): Declare.
(tc_adjust_symtab): Define.
2012-11-06 05:18:03 +00:00
Alan Modra
53d8967a85
* elf64-ppc.c (maybe_strip_output): Heed SEC_KEEP.
2012-11-06 03:44:51 +00:00
Alan Modra
c6ad7cc56e
daily update
2012-11-05 23:00:04 +00:00
Andreas Krebbel
0cb79d6955
2012-11-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
...
PR target/14788
* elf32-s390.c (elf_s390_relocate_section): Set elf.dynobj for
local ifunc symbols.
* elf64-s390.c (elf_s390_relocate_section): Likewise.
2012-11-05 12:31:08 +00:00
Alan Modra
d17dce5567
* configure.in: Apply 2012-09-10 change to config.in here.
2012-11-05 10:45:32 +00:00
Alan Modra
d4f1ee75e7
* elf64-ppc.c (ppc64_elf_edit_toc): Clear "repeat" inside
...
loop. Really mark toc entry referring to another toc entry
only if the first is used.
2012-11-05 05:17:34 +00:00
Alan Modra
d6d2d89142
daily update
2012-11-04 23:00:04 +00:00
Alan Modra
3770f6448f
daily update
2012-11-03 23:00:06 +00:00
Alan Modra
c0038b0e0b
daily update
2012-11-02 23:00:04 +00:00
Alan Modra
d1c2e12c10
daily update
2012-11-01 23:00:04 +00:00
Alan Modra
878462f3f1
daily update
2012-10-31 23:00:05 +00:00
H.J. Lu
680db949c6
Handle --enable-64-bit-bfd when setting CORE_HEADER
...
* configure.in: Also handle --enable-64-bit-bfd when setting
CORE_HEADER for 'i[3-7]86-*-linux-*'.
2012-10-30 13:30:15 +00:00
Nick Clifton
3bfcb6528e
bfd:
...
* elf32-arm.c (elf32_arm_print_private_bfd_data): Recognise and
display the new ARM hard-float/soft-float ABI flags for EABI_VER5
(elf32_arm_post_process_headers): Add the hard-float/soft-float
ABI flag as appropriate for ET_DYN/ET_EXEC in EABI_VER5.
binutils:
* readelf.c (decode_ARM_machine_flags): Recognise and display the
new ARM hard-float/soft-float ABI flags for EABI_VER5. Split out
the code for EABI_VER4 and EABI_VER5 to allow this.
elfcpp:
* arm.h: New enum for EABI soft- and hard-float flags.
gold:
* gold.cc (Target_arm::do_adjust_elf_header): Add the
hard-float/soft-float ABI flag as appropriate for ET_DYN/ET_EXEC
in EABI_VER5.
include:
* elf/arm.h (EF_ARM_ABI_FLOAT_SOFT): New define.
(EF_ARM_ABI_FLOAT_HARD): Likewise.
ld/testsuite:
* ld-arm/eabi-hard-float.s: New test source.
* ld-arm/eabi-soft-float.s: New test source.
* ld-arm/eabi-hard-float.d: New test.
* ld-arm/eabi-soft-float.d: New test.
* ld-arm/eabi-soft-float-ABI4.d: New test.
* ld-arm/eabi-soft-float-r.d: New test.
* ld-arm/arm-elf.xp: Use the new tests.
binutils:
PR binutils/14779
* configure.in: Add checks for wchar.h and mbstate_t.
* config.in: Regenerate.
* configure: Regenerate.
* readelf.c: Conditionally include wchar.h.
(print_symbol): Conditionally use mbstate_t.
2012-10-30 12:44:58 +00:00
H.J. Lu
b1bd052dee
Add Linux/x86_64 core support to i[3-7]86-*-linux
...
* configure.in: Set CORE_HEADER to hosts/x86-64linux.h for
'i[3-7]86-*-linux-*' if x86_64-*linux is enabled.
* configure: Regenerated.
* elf64-x86-64.c (elf_x86_64_write_core_note): Replace type
'prpsinfo_t' and 'prstatus_t' with 'prpsinfo64_t' and
'prstatus64_t' respectively.
* hosts/x86-64linux.h (a8_uint64_t): New.
(user_regsx32_struct): Renamed to ...
(user_regs64_struct): This. Replace uint64_t with a8_uint64_t.
(elf_gregx32_t): Renamed to ...
(elf_greg64_t): This. Replace uint64_t with a8_uint64_t.
(ELF_NGREGX32): Removed.
(ELF_NGREG64): New.
(elf_gregx32_t): Removed.
(elf_greg64_t): New.
(struct prstatus64_timeval): New.
(elf_prstatusx32): Replace elf_gregsetx32_t with elf_gregset64_t.
(elf_prstatus64): New.
(elf_prpsinfo64): New.
(prstatus64_t, prpsinfo64_t): New typedef.
2012-10-30 08:36:10 +00:00
Alan Modra
29473179ea
daily update
2012-10-29 23:00:04 +00:00
Sean Keys
d62734337d
* elf32-xgate.c(elf_xgate_howto_table): Fix src and dest mask for
...
R_XGATE_16
2012-10-29 21:28:09 +00:00
Alan Modra
bdaacd3a1c
* elf32-ppc.c (ppc_elf_howto_raw): Correct dst_mask in
...
R_PPC_VLE_LO16A, R_PPC_VLE_HI16A, R_PPC_VLE_HA16A,
R_PPC_VLE_SDAREL_LO16A, R_PPC_VLE_SDAREL_HI16A,
R_PPC_VLE_SDAREL_HA16A reloc howtos.
2012-10-29 09:51:10 +00:00
Alan Modra
9f8ca834d6
daily update
2012-10-28 23:00:04 +00:00
Alan Modra
a760a976b7
daily update
2012-10-27 23:00:05 +00:00
Alan Modra
4c2abef8de
daily update
2012-10-26 23:00:04 +00:00
Nick Clifton
31f7d8fd19
* po/hr.po: New Croation translation.
...
* configure.in (ALL_LINGUAS): Add hr.
* configure: Regenerate.
* po/uk.po: Updated Ukranian translation.
2012-10-26 15:27:18 +00:00
Alan Modra
1fe532cf60
PR target/14758
...
bfd/
* elf32-ppc.c (ppc_elf_reloc_type_lookup): Decode ppc64 _DS
bfd_reloc values. Map to corresponding D-form relocs.
(is_insn_ds_form, is_insn_qs_form): New functions.
(ppc_elf_relocate_section): Validate insn with DS-form or DQ-form
fields using D-form reloc.
gas/
* config/tc-ppc.c (ppc_setup_opcodes): Fix comment.
(md_assemble): Translate to _DS relocs for ppc32 as well as ppc64.
(tc_gen_reloc): Handle _DS relocs in ppc32 mode.
2012-10-26 03:40:37 +00:00
Alan Modra
2461266c18
daily update
2012-10-25 23:00:04 +00:00
H.J. Lu
9d4b2dba0e
Replace _GLOBAL_OFFSET_TABLE_ lookup with htab->elf.hgot
...
* elf32-i386.c (elf_i386_size_dynamic_sections): Replace
_GLOBAL_OFFSET_TABLE_ lookup with htab->elf.hgot.
* elf64-x86-64.c (elf_x86_64_size_dynamic_sections): Likewise.
2012-10-25 13:36:08 +00:00
Alan Modra
4902650971
daily update
2012-10-24 23:00:06 +00:00
H.J. Lu
64f401629b
Don't decompress the section in bfd_is_section_compressed
...
* compress.c (bfd_is_section_compressed): Don't decompress the
section.
2012-10-24 21:36:50 +00:00
Alan Modra
3258d498f4
daily update
2012-10-23 23:00:04 +00:00
Nathan Sidwell
04c3a75556
bfd/
...
* bfd-in.h (bfd_elf_stack_segment_size): Declare.
* bfd-in2.h: Rebuilt.
* elfxx-target.h (elf_backend_stack_align): New.
(elfNN_bed): Add it.
* elf-bfd.h (struct elf_backend_data): Add stack_align field.
* elf.c (bfd_elf_map_sections_to_segments): Pay attention to
stack_align and stacksize for PT_GNU_STACK segment.
(assign_file_positions_for_non_load_sections): Set p_memsz for
PT_GNU_STACK segment.
(copy_elf_program_header): Copy PT_GNU_STACK size.
* elflink.c (bfd_elf_stack_segment_size): New function, taken from
uclinux backends.
(bfd_elf_size_dynamic_sections): Determine
PT_GNU_STACK requirements after calling backend. Pay attention to
stacksize.
* elf32-bfin.c (elf32_bfinfdpic_always_size_sections): Call
bfd_elf_stack_segment_size.
(elf32_bfinfdpic_modify_program_headers): Delete.
(elf32_bfingfdpic_copy_private_bfd_data): Don't copy PT_GNU_STACK
here.
(elf_backend_stack_align): Override.
(elf_backend_modify_program_headers): Don't override.
* elf32-frv.c (frvfdpic_always_size_sections): Call
bfd_elf_stack_segment_size.
(elf32_frvfdpic_modify_program_headers): Delete.
(elf32_frvfdpic_copy_private_bfd_data): Don't copy PT_GNU_STACK
here.
(elf_backend_stack_align): Override.
(elf_backend_modify_program_headers): Don't override.
* elf32-lm32.c (lm32_elf_always_size_sections): Leave
PT_GNU_STACK creation to underlying elf support. Check
__stacksize here for backwards compatibility, and set it if
needed.
(lm32_elf_modify_segment_map): Delete.
(lm32_elf_modify_program_headers): Delete.
(elf_backend_stack_align): Override.
(elf_backend_modify_segment_map): Don't override.
(elf_backend_modify_program_headers): Don't override.
* elf32-sh.c (sh_elf_always_size_sections): Call
bfd_elf_stack_segment_size.
(sh_elf_modify_program_headers): Delete.
(sh_elf_copy_private_data): Don't copy PT_GNU_STACK
here.
(elf_backend_stack_align): Override.
(elf_backend_modify_program_headers): Don't override.
* elf32-tic6x.c (elf32_tic6x_always_size_sections): Call
bfd_elf_stack_segment_size.
(elf32_tic6x_modify_program_headers): Delete.
(elf32_tic6x_copy_private_data): Delete.
(elf_backend_stack_align): Override.
(bfd_elf32_bfd_copy_private_bfd_data): Don't override.
(elf_backend_modify_program_headers): Don't override.
include/
* bfdlink.h (struct bfd_link_info): Add stacksize option.
ld/
* ld.texinfo (stack-size): New option.
* emultempl/elf32.em: Add stack-size option.
ld/testsuite/
* ld-elf/binutils.exp: Add -z stack-size=0.
* ld-elf/elf.exp: Add stack-exec and stack-size tests.
* ld-elf/orphan-region.d: Add stack-size option. Remove xfail.
* ld-elf/stack-exec.rd: New.
* ld-elf/stack-size.rd: New.
* ld-elf/stack.s: New.
* ld-scripts/empty-aligned.d: Add stack-size option.
* ld-sh/fdpic-stack-set.d: New.
* ld-tic6x/shlib-1.rd: Remove __stacksize symbol.
* ld-tic6x/shlib-1b.rd: Likewise.
* ld-tic6x/shlib-1r.rd: Likewise.
* ld-tic6x/shlib-1rb.rd: Likewise.
* ld-tic6x/shlib-app-1.rd: Likewise.
* ld-tic6x/shlib-app-1b.rd: Likewise.
* ld-tic6x/shlib-app-1r.rd: Likewise.
* ld-tic6x/shlib-app-1rb.rd: Likewise.
* ld-tic6x/shlib-noindex.rd: Likewise.
* ld-tic6x/static-app-1.rd: Likewise.
* ld-tic6x/static-app-1b.rd: Likewise.
* ld-tic6x/static-app-1r.rd: Likewise.
* ld-tic6x/static-app-1rb.rd: Likewise.
2012-10-23 09:33:56 +00:00
Alan Modra
e4c4c631c4
daily update
2012-10-22 23:00:04 +00:00
Alan Modra
eac3aa9e9a
* cache.c (cache_bmmap): Don't use void* arithmetic.
2012-10-22 04:51:52 +00:00
Alan Modra
379b38338d
daily update
2012-10-21 23:00:04 +00:00
Alan Modra
8a72cc6e7e
bfd/
...
* compress.c (bfd_cache_section_contents): New function.
* bfd-in2.h: Regenerate.
binutils/
* objdump.c (load_specific_debug_section): Use
bfd_cache_section_contents.
2012-10-21 09:06:07 +00:00
Hans-Peter Nilsson
1e9d6fc263
Correct last entry
2012-10-21 03:25:02 +00:00
Hans-Peter Nilsson
d3a65d4dea
* linker.c (_bfd_generic_link_output_symbols): Handle a
...
no-longer-global symbol entered as a BFD_PLUGIN.
2012-10-21 03:23:37 +00:00
Alan Modra
c2762effd9
daily update
2012-10-20 23:00:05 +00:00
Alan Modra
38b774d28c
* compress.c: Reinstate 2012-10-19 change.
...
(bfd_get_full_section_contents): Don't free unless we alloc.
Use proper decompress size. Delete some vars, rename others.
2012-10-20 08:27:13 +00:00
Alan Modra
d8551d25f7
daily update
2012-10-19 23:00:05 +00:00
Tom Tromey
67d004eb5f
* compress.c: Revert previous patch.
2012-10-19 16:59:57 +00:00
Tom Tromey
06c2e2c12c
* compress.c (bfd_get_full_section_contents): Don't cache
...
decompressed contents.
2012-10-19 15:51:53 +00:00
Alan Modra
5cb3f7f4d9
daily update
2012-10-18 23:00:04 +00:00