summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2013-10-05 * src/arch-s390.c (s390_prelink_conflict_rela): For R_390_IRELATIVE,20131005upstream-svn-r209jakub
always use that relocation type in the conflict section. git-svn-id: http://sourceware.org/svn/prelink@209 94c539fb-cf18-0410-b60f-edeeb537fa16
2013-10-01 * testsuite/ifunc.h (IFUNC_ASM): Add s390x and s390 version.jakub
git-svn-id: http://sourceware.org/svn/prelink@208 94c539fb-cf18-0410-b60f-edeeb537fa16
2013-09-30 * src/arch-s390.c (s390_prelink_conflict_rela): Fix handling ofjakub
R_390_IRELATIVE. * src/arch-s390x.c (s390x_prelink_conflict_rela): Likewise. git-svn-id: http://sourceware.org/svn/prelink@207 94c539fb-cf18-0410-b60f-edeeb537fa16
2013-07-19 * doc/prelink.8 (--usage): Document it. jakub
(--layout-page-size=): Likewise. git-svn-id: http://sourceware.org/svn/prelink@206 94c539fb-cf18-0410-b60f-edeeb537fa16
2013-05-03 * src/cache.c (prelink_save_cache_check): For ET_CACHE_DYNjakub
or ET_UNPRELINKABLE dependencies, call prelink_save_cache_check recursively. * testsuite/Makefile.am (TESTS): Add unprel1.sh. * testsuite/Makefile.in: Regenerated. * testsuite/unprel1.sh: New test. * testsuite/unprel1.c: New file. * testsuite/unprel1lib1.c: New file. * testsuite/unprel1lib2.c: New file. git-svn-id: http://sourceware.org/svn/prelink@205 94c539fb-cf18-0410-b60f-edeeb537fa16
2013-05-03 * src/prelink.h (R_390_IRELATIVE): Define if not defined.jakub
git-svn-id: http://sourceware.org/svn/prelink@204 94c539fb-cf18-0410-b60f-edeeb537fa16
2013-04-25 * src/arch-s390.c (s390_adjust_rela, s390_prelink_rela,jakub
s390_apply_conflict_rela, s390_prelink_conflict_rela, s390_undo_prelink_rela): Handle R_390_IRELATIVE. * src/arch-s390x.c (s390x_adjust_rela, s390x_prelink_rela, s390x_apply_conflict_rela, s390x_prelink_conflict_rela, s390x_undo_prelink_rela, s390x_reloc_size): Likewise. git-svn-id: http://sourceware.org/svn/prelink@203 94c539fb-cf18-0410-b60f-edeeb537fa16
2013-04-18 * testsuite/reloc4.sh: Add libraries to link lines to makejakub
testsuite work both with --no-add-needed and with --add-needed, including latest ld.bfd. * testsuite/reloc5.sh: Likewise. * testsuite/reloc8.sh: Likewise. * testsuite/reloc9.sh: Likewise. git-svn-id: http://sourceware.org/svn/prelink@202 94c539fb-cf18-0410-b60f-edeeb537fa16
2013-04-17 * testsuite/ifunc.h (IFUNC_DECL): Fix up .size on ppc64.jakub
* testsuite/cxx1.sh: Add libraries to link lines to make testsuite work both with --no-add-needed and with --add-needed, including latest ld.bfd. * testsuite/cxx2.sh: Likewise. * testsuite/cxx3.sh: Likewise. * testsuite/deps1.sh: Likewise. * testsuite/deps2.sh: Likewise. * testsuite/ifunc1.sh: Likewise. * testsuite/ifunc2.sh: Likewise. * testsuite/ifunc3.sh: Likewise. * testsuite/quick1.sh: Likewise. * testsuite/quick2.sh: Likewise. * testsuite/quick3.sh: Likewise. * testsuite/reloc1.sh: Likewise. * testsuite/reloc10.sh: Likewise. * testsuite/reloc11.sh: Likewise. * testsuite/reloc3.sh: Likewise. * testsuite/reloc6.sh: Likewise. * testsuite/reloc7.sh: Likewise. * testsuite/shuffle1.sh: Likewise. * testsuite/shuffle2.sh: Likewise. * testsuite/shuffle3.sh: Likewise. * testsuite/shuffle4.sh: Likewise. * testsuite/shuffle5.sh: Likewise. * testsuite/shuffle6.sh: Likewise. * testsuite/shuffle7.sh: Likewise. * testsuite/shuffle8.sh: Likewise. * testsuite/shuffle9.sh: Likewise. * testsuite/tls1.sh: Likewise. * testsuite/tls2.sh: Likewise. * testsuite/tls3.sh: Likewise. * testsuite/tls4.sh: Likewise. * testsuite/tls5.sh: Likewise. * testsuite/tls6.sh: Likewise. * testsuite/undo1.sh: Likewise. git-svn-id: http://sourceware.org/svn/prelink@201 94c539fb-cf18-0410-b60f-edeeb537fa16
2012-06-28 * src/get.c (is_ldso_soname): Add arm dynamic linker SONAMEs.jakub
git-svn-id: http://sourceware.org/svn/prelink@200 94c539fb-cf18-0410-b60f-edeeb537fa16
2012-06-28 * src/dwarf2.h (DW_FORM_GNU_ref_alt,jakub
DW_FORM_GNU_strp_alt): Define. * src/dwarf2.c (read_abbrev): Allow those forms. (adjust_attributes): Handle them. git-svn-id: http://sourceware.org/svn/prelink@199 94c539fb-cf18-0410-b60f-edeeb537fa16
2012-04-10 * src/dwarf2.c (DEBUG_MACRO): Define.jakub
(debug_sections): Add .debug_macro entry. git-svn-id: http://sourceware.org/svn/prelink@198 94c539fb-cf18-0410-b60f-edeeb537fa16
2012-04-02 * src/dwarf2.c (adjust_attributes): For DWARF4+ treatjakub
DW_AT_data_member_location with DW_FORM_data[48] as large constant instead of loclistptr. git-svn-id: http://sourceware.org/svn/prelink@197 94c539fb-cf18-0410-b60f-edeeb537fa16
2011-10-12 * src/main.c (layout_page_size): New variable.jakub
(OPT_LAYOUT_PAGE_SIZE): Define. (options): Add --layout-page-size option. (set_default_layout_page_size): New function in i?86/x86_64 resp. empty macro on other architectures. (main): Call it. * src/arch-i386.c (i386_layout_libs_init): Fail if l->max_page_size is larger than 2MB and exec_shield is true. Compute reg0s as REG0S rounded up to l->max_page_size boundary and use it instead of REG0S. (i386_layout_libs_pre): Compute reg0s as REG0S rounded up to l->max_page_size boundary and use it instead of REG0S. Fix up a pasto in computation of virt parameter for third i386_find_free_addr call. * src/prelink.h (layout_page_size): New decl. * src/layout.c (layout_libs): Set max_page_size and l.max_page_size to maximum of plarch->max_page_size and layout_page_size. Fail if mmap_base or mmap_end aren't max_page_size aligned. * src/arch-ppc.c (ppc_layout_libs_pre): Give up if l->max_page_size is larger than 64KB. git-svn-id: http://sourceware.org/svn/prelink@196 94c539fb-cf18-0410-b60f-edeeb537fa16
2011-08-26 * src/arch-arm.c (PL_ARCH): Change .dynamic_linker tojakub
/lib/ld-linux.so.3. git-svn-id: http://sourceware.org/svn/prelink@195 94c539fb-cf18-0410-b60f-edeeb537fa16
2011-08-26 * src/arch-arm.c (PL_ARCH): Change .dynamic_linker tojakub
/lib/ld-linux.so.3. git-svn-id: http://sourceware.org/svn/prelink@194 94c539fb-cf18-0410-b60f-edeeb537fa16
2011-08-25 * src/gather.c (gather_func): When looking for PT_PHDR header,jakub
skip any PT_LOPROC ... PR_HIPROC phdrs. git-svn-id: http://sourceware.org/svn/prelink@193 94c539fb-cf18-0410-b60f-edeeb537fa16
2011-08-25 * testsuite/cxx1.sh: Don't check for any "Removing C++ conflict"jakub
messages on arm. * testsuite/cxx2.sh: Likewise. * testsuite/cxx3.sh: New test. * testsuite/cxx3.C: New file. * testsuite/cxx3.h: New file. * testsuite/cxx3lib1.C: New file. * testsuite/cxx3lib2.C: New file. * testsuite/Makefile.am (TESTS): Add cxx3.sh. * testsuite/Makefile.in: Regenerated. git-svn-id: http://sourceware.org/svn/prelink@192 94c539fb-cf18-0410-b60f-edeeb537fa16
2011-08-25 * testsuite/shuffle2.c: Use %nobits instead of @nobitsjakub
to be arm assembler friendly. * testsuite/shuffle9.c: Likewise. * testsuite/reloc5.c (main): Likewise. git-svn-id: http://sourceware.org/svn/prelink@191 94c539fb-cf18-0410-b60f-edeeb537fa16
2011-06-22 * src/dwarf2.h (DW_OP_GNU_parameter_ref): Define.jakub
* src/dwarf2.c (adjust_location_list): Handle DW_OP_GNU_parameter_ref. git-svn-id: http://sourceware.org/svn/prelink@190 94c539fb-cf18-0410-b60f-edeeb537fa16
2011-05-11 * src/dwarf2.h (DW_OP_GNU_const_type, DW_OP_GNU_regval_type,jakub
DW_OP_GNU_deref_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret): Define. * src/dwarf2.c (adjust_location_list): Handle DW_OP_GNU_const_type, DW_OP_GNU_retval_type, DW_OP_GNU_defer_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret. git-svn-id: http://sourceware.org/svn/prelink@189 94c539fb-cf18-0410-b60f-edeeb537fa16
2011-04-01 * src/dwarf2.h (DW_TAG_GNU_template_template_param,jakub
DW_TAG_GNU_template_parameter_pack, DW_TAG_GNU_formal_parameter_pack, DW_TAG_GNU_call_site, DW_TAG_GNU_call_site_parameter, DW_AT_GNU_vector, DW_AT_GNU_guarded_by, DW_AT_GNU_pt_guarded_by, DW_AT_GNU_guarded, DW_AT_GNU_pt_guarded, DW_AT_GNU_locks_excluded, DW_AT_GNU_exclusive_locks_required, DW_AT_GNU_shared_locks_required, DW_AT_GNU_odr_signature, DW_AT_GNU_template_name, DW_AT_GNU_call_site_value, DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target, DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call, DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites, DW_AT_GNU_all_source_call_sites, DW_OP_GNU_entry_value): Define. * src/dwarf2.c (adjust_location_list): Handle DW_OP_GNU_entry_value. (adjust_attributes): Handle DW_AT_GNU_call_site_value, DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target and DW_AT_GNU_call_site_target_clobbered. git-svn-id: http://sourceware.org/svn/prelink@188 94c539fb-cf18-0410-b60f-edeeb537fa16
2010-11-23 * src/dwarf2.h (DW_OP_GNU_implicit_pointer): Define.jakub
* src/dwarf2.c (adjust_location_list): Add CU argument, fix handling of DW_OP_call_ref, handle DW_OP_GNU_implicit_pointer. (adjust_dwarf2_loc): Add CU argument, adjust adjust_location_list caller. (adjust_attributes): Adjust adjust_location_list and adjust_dwarf2_loc callers. (adjust_dwarf2_frame): Likewise. git-svn-id: http://sourceware.org/svn/prelink@187 94c539fb-cf18-0410-b60f-edeeb537fa16
2010-11-22 * src/dso.c: Include sys/xattr.h.jakub
(copy_xattrs): New function. (set_security_context): Call it. git-svn-id: http://sourceware.org/svn/prelink@186 94c539fb-cf18-0410-b60f-edeeb537fa16
2010-07-14 * src/prelink.h (copy_fd_to_file): New prototype.jakub
* src/undo.c (prelink_undo): If undo_output and .gnu.prelink_undo section is not present, don't reopen_dso, just return 0. * src/main.c (main): If dso isn't writable with undo_output, copy_fd_to_file dso->fd. * src/dso.c (copy_fd_to_file): New function. (update_dso): Use it. git-svn-id: http://sourceware.org/svn/prelink@185 94c539fb-cf18-0410-b60f-edeeb537fa16
2010-04-13 * testsuite/reloc8.sh: Don't use -Wl,-z,nocopyreloc onjakub
sparc64. * testsuite/reloc9.sh: Likewise. git-svn-id: http://sourceware.org/svn/prelink@184 94c539fb-cf18-0410-b60f-edeeb537fa16
2010-04-13 * src/dwarf2.c (DEBUG_TYPES): Define.jakub
(debug_sections): Add .debug_types entry. (read_abbrev): Handle new DWARF4 forms. (adjust_attributes): DW_AT_segment can be a loclistptr. DW_AT_byte_size, DW_AT_bit_offset, DW_AT_bit_size, DW_AT_string_length, DW_AT_lower_bound, DW_AT_return_addr, DW_AT_bit_stride, DW_AT_upper_bound, DW_AT_count, DW_AT_segment, DW_AT_static_link, DW_AT_use_location, DW_AT_allocated, DW_AT_associated, DW_AT_data_location and DW_AT_byte_stride can be exprloc. Handle new DWARF4 forms. (adjust_dwarf2_line): Handle adjusting DWARF4 .debug_line sections. (adjust_dwarf2_frame): Handle adjusting DWARF4 .debug_frame section. (adjust_dwarf2_info): New function, moved from adjust_dwarf2. Handle DWARF4 .debug_info and handle .debug_types too. (adjust_dwarf2): Call it for .debug_info and .debug_types sections. * src/dwarf2.h (DW_TAG_type_unit, DW_TAG_rvalue_reference_type, DW_TAG_template_alias, DW_FORM_sec_offset, DW_FORM_exprloc, DW_FORM_flag_present, DW_FORM_ref_sig8, DW_AT_bit_stride, DW_AT_byte_stride, DW_AT_description, DW_AT_binary_scale, DW_AT_decimal_scale, DW_AT_small, DW_AT_decimal_sign, DW_AT_digit_count, DW_AT_picture_string, DW_AT_mutable, DW_AT_threads_scaled, DW_AT_explicit, DW_AT_object_pointer, DW_AT_endianity, DW_AT_elemental, DW_AT_pure, DW_AT_recursive, DW_AT_signature, DW_AT_main_subprogram, DW_AT_data_bit_offset, DW_AT_const_expr, DW_AT_enum_class, DW_AT_linkage_name, DW_LNS_set_prologue_end, DW_LNS_set_epilogue_begin, DW_LNS_set_isa, DW_LNE_set_discriminator, DW_LANG_Python): Define. git-svn-id: http://sourceware.org/svn/prelink@183 94c539fb-cf18-0410-b60f-edeeb537fa16
2010-04-13 * src/prelink.h (send_file): New prototype.jakub
* src/execstack.c (send_file): New dummy function. * src/verify.c (send_file): No longer static. Don't loop forever if write or read return 0. * src/undo.c (prelink_undo): If undo_output is -, use /tmp/undo instead of - as temp file prefix. * src/dso.c (set_security_context): Drop unused dso argument, add ignore_errors argument. If it is non-zero, don't error if setfilecon failed. (update_dso): If orig_name is non-NULL, don't error if fchown or fchmod fails. If rename fails or name1 is - and orig_name is non-NULL, copy the temporary file to name1 (or to stdout if name1 is -) instead of failing. git-svn-id: http://sourceware.org/svn/prelink@182 94c539fb-cf18-0410-b60f-edeeb537fa16
2010-01-06 * src/arch-s390.c (s390_prelink_conflict_rela) <case R_390_PC32DBL>:jakub
Ensure negative addends are sign-extended to 64-bits, instead of zero-extended. git-svn-id: http://sourceware.org/svn/prelink@181 94c539fb-cf18-0410-b60f-edeeb537fa16
2010-01-05 * src/arch-s390.c (s390_prelink_rela, s390_apply_rela,jakub
s390_prelink_conflict_rela, s390_prelink_conflict_rela, s390_undo_prelink_rela, s390_reloc_size): Handle R_390_{PC32DBL,16,PC16,PC16DBL,8} relocs. git-svn-id: http://sourceware.org/svn/prelink@180 94c539fb-cf18-0410-b60f-edeeb537fa16
2009-12-16 * testsuite/reloc2.sh: Don't assume textrel works if getenforcejakub
exists, but doesn't print Permissive or Disabled. * testsuite/reloc8.sh: Likewise. * testsuite/reloc9.sh: Likewise. * testsuite/tls3.sh: Likewise. git-svn-id: http://sourceware.org/svn/prelink@179 94c539fb-cf18-0410-b60f-edeeb537fa16
2009-11-03 * src/arch-x86_64.c (x86_64_reloc_size): Handle R_X86_64_IRELATIVE.jakub
* src/prelink.h (R_PPC_IRELATIVE, R_PPC64_IRELATIVE, R_PPC64_JMP_IREL): Define if not defined. * src/undo.c (undo_sections, prelink_undo): Allow .iplt section to change from SHT_NOBITS to SHT_PROGBITS. * src/arch-ppc.c (ppc_adjust_rela, ppc_prelink_rela, ppc_apply_conflict_rela, ppc_undo_prelink_rela): Handle R_PPC_IRELATIVE. (ppc_prelink_conflict_rela): Handle R_PPC_IRELATIVE and conflict->ifunc conflicts. * src/arch-ppc64.c (ppc64_adjust_rela, ppc64_prelink_rela, ppc64_undo_prelink_rela): Handle R_PPC64_IRELATIVE and R_PPC64_JMP_IREL. (ppc64_apply_conflict_rela, ppc64_reloc_size): Handle R_PPC64_IRELATIVE. (ppc64_prelink_conflict_rela): Handle R_PPC64_IRELATIVE, R_PPC64_JMP_IREL and conflict->ifunc conflicts. * testsuite/ifunc.h (IFUNC_ASM): Add powerpc definition. (IFUNC_DECL): Define. (IFUNC): Use IFUNC_DECL. git-svn-id: http://sourceware.org/svn/prelink@178 94c539fb-cf18-0410-b60f-edeeb537fa16
2009-10-19 * src/conflict.c (prelink_build_conflicts): Use >= not > tojakub
determine whether a relocation points outside the first bss section. git-svn-id: http://sourceware.org/svn/prelink@177 94c539fb-cf18-0410-b60f-edeeb537fa16
2009-10-19 * m4/libelf.m4: Resync with version of code in aclocal.m4.jakub
git-svn-id: http://sourceware.org/svn/prelink@176 94c539fb-cf18-0410-b60f-edeeb537fa16
2009-09-25 * src/dwarf2.c (adjust_location_list) <case DW_OP_implicit_value>: Addjakub
missing break statement. git-svn-id: http://sourceware.org/svn/prelink@175 94c539fb-cf18-0410-b60f-edeeb537fa16
2009-08-07 * src/dwarf2.c (dwarf2_write_le64, dwarf2_write_be64): Shift by 56prelink_r174jakub
not 58 for MSB. git-svn-id: http://sourceware.org/svn/prelink@174 94c539fb-cf18-0410-b60f-edeeb537fa16
2009-07-09 * src/conflict.c (prelink_build_conflicts): Don't calljakub
prelink_conflict_rel{,a} on .gnu.conflict section in executables. git-svn-id: http://sourceware.org/svn/prelink@173 94c539fb-cf18-0410-b60f-edeeb537fa16
2009-06-15 * src/prelink.h (R_386_IRELATIVE, R_X86_64_IRELATIVE): Definejakub
if not defined. (struct PLArch): Add dest_addr argument to apply_conflict_rela hook. (struct prelink_conflict): Change used type from int to unsigned char, add ifunc field. (get_relocated_mem): Add dest_addr argument. * src/get.c (prelink_record_relocations): Handle lookups resolving to STT_GNU_IFUNC symbols. * src/conflict.c (get_relocated_mem): Add dest_addr argument, pass it through to the apply_conflict_rela hook. Fail if apply_conflict_rela hook failed. (prelink_build_conflicts): Build conflicts even in the executable, and for libraries even if no conflicts were reported by the dynamic linker. In the executable ignore any unused conflicts except for ifunc conflicts. Adjust get_relocated_mem callers. * src/cxx.c (remove_redundant_cxx_conflicts): Adjust get_relocated_mem callers. * arch-alpha.c (alpha_apply_conflict_rela): Add dest_addr argument. (alpha_prelink_conflict_rela): Return early if info->dso == dso. * arch-arm.c (arm_apply_conflict_rela): Add dest_addr argument. (arm_prelink_conflict_rel, arm_prelink_conflict_rela): Return early if info->dso == dso. * arch-cris.c (cris_apply_conflict_rela): Add dest_addr argument. (cris_prelink_conflict_rela): Return early if info->dso == dso. * arch-ia64.c (ia64_apply_conflict_rela): Add dest_addr argument. (ia64_prelink_conflict_rela): Return early if info->dso == dso. * arch-ppc.c (ppc_apply_conflict_rela): Add dest_addr argument. (ppc_prelink_conflict_rela): Return early if info->dso == dso. * arch-ppc64.c (ppc64_apply_conflict_rela): Add dest_addr argument. (ppc64_prelink_conflict_rela): Return early if info->dso == dso. * arch-s390.c (s390_apply_conflict_rela): Add dest_addr argument. (s390_prelink_conflict_rela): Return early if info->dso == dso. * arch-s390x.c (s390x_apply_conflict_rela): Add dest_addr argument. (s390x_prelink_conflict_rela): Return early if info->dso == dso. * arch-sh.c (sh_apply_conflict_rela): Add dest_addr argument. (sh_prelink_conflict_rela): Return early if info->dso == dso. * arch-sparc.c (sparc_apply_conflict_rela): Add dest_addr argument. (sparc_prelink_conflict_rela): Return early if info->dso == dso. * arch-sparc64.c (sparc64_apply_conflict_rela): Add dest_addr argument. (sparc64_prelink_conflict_rela): Return early if info->dso == dso. * arch-mips.c (mipz_apply_conflict_rela): Add dest_addr argument. (mips_prelink_conflict_reloc, mips_arch_prelink_conflict): Return early if info->dso == dso. * arch-i386.c (i386_adjust_rel, i386_adjust_rela, i386_prelink_rel, i386_prelink_rela, i386_rel_to_rela, i386_undo_prelink_rel, i386_rela_to_rel): Handle R_386_IRELATIVE. (i386_apply_conflict_rela): Add dest_addr argument, handle R_386_IRELATIVE. (i386_prelink_conflict_rel, i386_prelink_conflict_rela): Handle R_386_IRELATIVE and conflict->ifunc conflicts. * arch-x86_64.c (x86_64_adjust_rela, x86_64_prelink_rela, x86_64_undo_prelink_rela): Handle R_X86_64_IRELATIVE. (x86_64_apply_conflict_rela): Handle R_X86_64_IRELATIVE and conflict->ifunc conflicts. * testsuite/Makefile.am (TESTS): Add ifunc1.sh, ifunc2.sh and ifunc3.sh. * testsuite/Makefile.in: Regenerated. * testsuite/ifunc1.sh: New test. * testsuite/ifunc2.sh: New test. * testsuite/ifunc3.sh: New test. * testsuite/ifunc1.c: New file. * testsuite/ifunc1lib1.c: New file. * testsuite/ifunc1lib2.c: New file. * testsuite/ifunc3.c: New file. * testsuite/ifunc3lib1.c: New file. * testsuite/ifunc.h: New file. * testsuite/ifunctest.c: New file. git-svn-id: http://sourceware.org/svn/prelink@172 94c539fb-cf18-0410-b60f-edeeb537fa16
2009-06-15 * src/Makefile.am (DEFS, AM_CFLAGS): Add -Wno-pointer-sign.jakub
* src/Makefile.in: Regenerated. * src/data.c (reopen_dso): Initialize data variable to avoid warnings. git-svn-id: http://sourceware.org/svn/prelink@171 94c539fb-cf18-0410-b60f-edeeb537fa16
2009-06-15Fix up last CL entry.jakub
git-svn-id: http://sourceware.org/svn/prelink@170 94c539fb-cf18-0410-b60f-edeeb537fa16
2009-06-15 * dwarf2.h (DW_TAG_condition, DW_TAG_shared_type): Define.jakub
(DW_OP_form_tls_address, DW_OP_call_frame_cfa, DW_OP_bit_piece, DW_OP_implicit_value, DW_OP_stack_value, DW_OP_GNU_uninit, DW_OP_GNU_encoded_addr): Define. (DW_ATE_packed_decimal, DW_ATE_numeric_string, DW_ATE_edited, DW_ATE_signed_fixed, DW_ATE_unsigned_fixed, DW_ATE_decimal_float): Define. (DW_CFA_val_offset, DW_CFA_val_offset_sf, DW_CFA_val_expression): Define. (DW_LANG_PLI, DW_LANG_ObjC, DW_LANG_ObjC_plus_plus, DW_LANG_UPC, DW_LANG_D): Define. * dwarf2.c (debug_sections): Add .debug_pubtypes. (DEBUG_PUBTYPES): Define. (DEBUG_MACINFO, DEBUG_LOC, DEBUG_STR, DEBUG_FRAME, DEBUG_RANGES): Adjust. (struct cu_data): Add cu_version field. (read_abbrev): Adjust error messages not to be DWARF-2 specific. (adjust_location_list): Likewise. Fix up DW_OP_call_ref handling, handle DW_OP_form_tls_address, DW_OP_call_frame_cfa, DW_OP_GNU_uninit, DW_OP_bit_piece, DW_OP_stack_value and DW_OP_implicit_value. (adjust_attributes): For cu->cu_version == 2 skip ptr_size bytes instead of just 4. Adjust error messages not to be DWARF-2 specific. (adjust_dwarf2_line): Handle version 3 of .debug_line. (adjust_dwarf2_frame): Just that CIE version is 1 or 3, for version 1 skip just one byte instead of uleb128 for return address column. Handle DW_CFA_val_offset, DW_CFA_val_offset_sf and DW_CFA_val_expression. (adjust_dwarf2): Handle version 3 of .debug_info, initialize cu.cu_version. Adjust error messages not to be DWARF-2 specific. Note that .debug_pubtypes doesn't need adjustments. git-svn-id: http://sourceware.org/svn/prelink@169 94c539fb-cf18-0410-b60f-edeeb537fa16
2009-03-11 * src/prelink.h (PLArch): Add rtype_class_valid field.jakub
* src/get.c (prelink_record_relocations): If not /4, or dso->arch->rtype_class_valid instead of RTYPE_CLASS_VALID into reloc_class. * src/cxx.c (remove_redundant_cxx_conflicts): Use info->dso->arch->rtype_class_valid instead of RTYPE_CLASS_VALID. * src/arch-ppc64.c (ppc64_reloc_class): For R_PPC64_COPY return RTYPE_CLASS_COPY | RTYPE_CLASS_PLT, for non-TLS relocs return RTYPE_CLASS_PLT. (PL_ARCH): Set rtype_class_valid to RTYPE_CLASS_PLT. * src/arch-alpha.c (PL_ARCH): Set rtype_class_valid to RTYPE_CLASS_VALID. * src/arch-arm.c (PL_ARCH): Likewise. * src/arch-cris.c (PL_ARCH): Likewise. * src/arch-i386.c (PL_ARCH): Likewise. * src/arch-ia64.c (PL_ARCH): Likewise. * src/arch-mips.c (PL_ARCH): Likewise. * src/arch-ppc.c (PL_ARCH): Likewise. * src/arch-s390.c (PL_ARCH): Likewise. * src/arch-s390x.c (PL_ARCH): Likewise. * src/arch-sh.c (PL_ARCH): Likewise. * src/arch-sparc.c (PL_ARCH): Likewise. * src/arch-sparc64.c (PL_ARCH): Likewise. * src/arch-x86_64.c (PL_ARCH): Likewise. git-svn-id: http://sourceware.org/svn/prelink@168 94c539fb-cf18-0410-b60f-edeeb537fa16
2009-03-10 * testsuite/reloc2.sh, testsuite/tls3.sh: Add ARM to architecturesjakub
requiring PIC shared libraries. git-svn-id: http://sourceware.org/svn/prelink@167 94c539fb-cf18-0410-b60f-edeeb537fa16
2009-03-10 * src/arch-arm.c (arm_prelink_rel, arm_prelink_rela,jakub
arm_prelink_conflict_rel, arm_prelink_conflict_rela, arm_rel_to_rela, arm_rela_to_rel, arm_need_rel_to_rela, arm_undo_prelink_rel, arm_reloc_class): Handle TLS relocations. * src/prelink.h (R_ARM_TLS_DTPMOD32, R_ARM_TLS_DTPOFF32, R_ARM_TLS_TPOFF32): Define if R_ARM_TLS_DTPMOD32 not already defined. git-svn-id: http://sourceware.org/svn/prelink@166 94c539fb-cf18-0410-b60f-edeeb537fa16
2009-03-10 * src/arch-arm.c (arm_adjust_dyn, arm_adjust_rel, arm_adjust_rela,jakub
arm_prelink_rel, arm_prelink_rela, arm_apply_conflict_rela, arm_apply_rel, arm_apply_rela, arm_prelink_conflict_rela, arm_rel_to_rela, arm_rela_to_rel, arm_need_rel_to_rela, arm_arch_prelink, arm_arch_undo_prelink, arm_undo_prelink_rel): Use endian-neutral functions. git-svn-id: http://sourceware.org/svn/prelink@165 94c539fb-cf18-0410-b60f-edeeb537fa16
2008-10-09 * src/arch-sparc64.c (sparc64_prelink_rela,jakub
sparc64_prelink_conflict_rela, sparc64_undo_prelink_rela, sparc64_reloc_class): Handle TLS relocations. (PL_ARCH): Update mmap_base and mmap_end for TASK_UNMAPPED_BASE change to 0xfffff80100000000. git-svn-id: http://sourceware.org/svn/prelink@164 94c539fb-cf18-0410-b60f-edeeb537fa16
2007-12-20Correct typo in last entry.drow
git-svn-id: http://sourceware.org/svn/prelink@163 94c539fb-cf18-0410-b60f-edeeb537fa16
2007-12-04 * gather.c (gather_object): Print an error if nftw64 fails.drow
git-svn-id: http://sourceware.org/svn/prelink@162 94c539fb-cf18-0410-b60f-edeeb537fa16
2007-10-09 * src/cxx.c (remove_redundant_cxx_conflicts): Allow .sdatajakub
section as well. git-svn-id: http://sourceware.org/svn/prelink@161 94c539fb-cf18-0410-b60f-edeeb537fa16
2007-10-09 * src/prelink.h (struct prelink_conflict): Add next2 field.jakub
(struct prelink_conflicts): Add hash2 field. * src/get.c (prelink_record_relocations): Clear next2 fields. * src/prelink.c (free_info): Also free hash2 table. * src/cxx.c (remove_redundant_cxx_conflicts): Populate hash2 if not populated yet, use it to speed up pltref checking. git-svn-id: http://sourceware.org/svn/prelink@160 94c539fb-cf18-0410-b60f-edeeb537fa16