Age | Commit message (Collapse) | Author |
|
2008-03-06 Daniel Jacobowitz <dan@codesourcery.com>
* src/ld-do-lookup.h: Check for STO_MIPS_PLT on MIPS.
* src/ld-libs.c (reloc_type_class): Handle copy and PLT relocs.
* src/prelink.h (R_MIPS_TLS_DTPMOD32, R_MIPS_TLS_DTPREL32)
(R_MIPS_TLS_TPREL32, R_MIPS_GLOB_DAT): Remove duplicate definitions.
(R_MIPS_COPY, R_MIPS_JUMP_SLOT, STO_MIPS_PLT, DT_MIPS_PLTGOT)
(DT_MIPS_PLTNO, DT_MIPS_RWPLT): Define.
(DSO): Add info_DT_MIPS_PLTGOT.
* src/arch-mips.c (mips_prelink_reloc): Handle R_MIPS_JUMP_SLOT and
R_MIPS_COPY.
(mips_prelink_conflict_reloc): Handle R_MIPS_COPY.
(mips_apply_conflict_rela): Handle R_MIPS_JUMP_SLOT.
(mips_apply_reloc): Handle R_MIPS_JUMP_SLOT and R_MIPS_COPY.
(mips_rel_to_rela, mips_rela_to_rel): Handle R_MIPS_COPY.
(mips_need_rel_to_rela): Handle R_MIPS_COPY and R_MIPS_JUMP_SLOT.
Correct error message.
(mips_reloc_class): Handle R_MIPS_COPY and R_MIPS_JUMP_SLOT. Use
RTYPE_CLASS_VALID by default.
(mips_arch_prelink): Save .plt in gotplt[1].
(mips_arch_undo_prelink): Clear gotplt[1].
(mips_undo_prelink_rel): Undo R_MIPS_JUMP_SLOT relocations.
(PL_ARCH): Set R_COPY and R_JMP_SLOT.
* src/dso.c (read_dynamic): Save DT_MIPS_PLTGOT.
Conflicts:
trunk/ChangeLog.csl
|
|
Conflicts:
src/data.c
trunk/src/dso.c
trunk/src/prelink.h
trunk/testsuite/reloc5.c
trunk/testsuite/shuffle2.c
Updated versioning in:
trunk/src/execstack.c
trunk/src/ld-libs.c
trunk/src/main.c
* src/arch-arm.c: remove read_une32, write_ne32, buf_write_ne32,
buf_read_une32
* src/dso-readonly.c: sync to changes in src/dso.c
|
|
(DT_MIPS_TIME_STAMP): Likewise.
(DT_MIPS_ICHECKSUM): Likewise.
(DT_MIPS_IVERSION): Likewise.
(DT_MIPS_FLAGS): Likewise.
(DT_MIPS_BASE_ADDRESS): Likewise.
(DT_MIPS_CONFLICT): Likewise.
(DT_MIPS_LIBLIST): Likewise.
(DT_MIPS_LOCAL_GOTNO): Likewise.
(DT_MIPS_CONFLICTNO): Likewise.
(DT_MIPS_LIBLISTNO): Likewise.
(DT_MIPS_SYMTABNO): Likewise.
(DT_MIPS_UNREFEXTNO): Likewise.
(DT_MIPS_GOTSYM): Likewise.
(DT_MIPS_HIPAGENO): Likewise.
(DT_MIPS_RLD_MAP): Likewise.
(R_MIPS_TLS_DTPMOD): Likewise.
(R_MIPS_TLS_DTPREL): Likewise.
(R_MIPS_TLS_TPREL): Likewise.
(R_MIPS_GLOB_DAT): Likewise.
(DSO): Add info_DT_MIPS_LOCAL_GOTNO, info_DT_MIPS_GOTSYM,
and info_DT_MIPS_SYMTABNO.
* src/dso.c (read_dynamic): Initialize the new DSO fields.
(adjust_symbol_p): Handle stub values on MIPS.
* src/prelink.c (prelink_prepare): Handle SHT_DYNAMIC and
SHT_MIPS_REGINFO on MIPS.
git-svn-id: http://sourceware.org/svn/prelink@145 94c539fb-cf18-0410-b60f-edeeb537fa16
|
|
* src/dso.c (adjust_dso): Use it, if defined.
git-svn-id: http://sourceware.org/svn/prelink@139 94c539fb-cf18-0410-b60f-edeeb537fa16
|
|
* src/dso.c (adjust_symbol_p): New function, extracted from...
(adjust_symtab): ...here.
git-svn-id: http://sourceware.org/svn/prelink@138 94c539fb-cf18-0410-b60f-edeeb537fa16
|
|
git-svn-id: http://sourceware.org/svn/prelink@134 94c539fb-cf18-0410-b60f-edeeb537fa16
|