Age | Commit message (Collapse) | Author |
|
The upstream project appears to be dead now. So switch to a more git friendly
directory, no reason to maintain the SVN trunk any longer.
2015-10-22 Mark Hatle <mark.hatle@windriver.com>
* Upstream project appears to have been abandoned
* Update the project to remove the SVN like 'trunk' dir
* Adjust the AUTHORS file
* Move the previous ChangeLog to ChangeLog.1
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
|
|
(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
|
|
* 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
|
|
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
|
|
* 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
|
|
a "struct prelink_info *" argument, not a "DSO *" argument.
* src/prelink.c (prelink): Adjust call accordingly.
* src/arch-alpha.c (alpha_arch_prelink): Adjust definition accordingly.
* src/arch-arm.c (arm_arch_prelink): Likewise.
* src/arch-cris.c (cris_arch_prelink): Likewise.
* src/arch-i386.c (i386_arch_prelink): Likewise.
* src/arch-ia64.c (ia64_arch_prelink): Likewise.
* src/arch-ppc.c (ppc_arch_prelink): Likewise.
* src/arch-s390.c (s390_arch_prelink): Likewise
* src/arch-s390x.c (s390x_arch_prelink): Likewise
* src/arch-sh.c (sh_arch_prelink): Likewise.
* src/arch-sparc64.c (sparc64_arch_prelink): Likewise.
* src/arch-sparc.c (sparc_arch_prelink): Likewise
* src/arch-x86_64.c (x86_64_arch_prelink): Likewise.
git-svn-id: http://sourceware.org/svn/prelink@140 94c539fb-cf18-0410-b60f-edeeb537fa16
|
|
git-svn-id: http://sourceware.org/svn/prelink@134 94c539fb-cf18-0410-b60f-edeeb537fa16
|