[Mips] Implement emitting of R_MIPS_REL32 relocations:

Press ? to show keyboard shortcuts.
Auditors
Bigcheese
H2 lld Triggered Audit
Committed
atanasyanApr 28 2014, 10:21 PM
Parents
rL207493: [Mips] 80 column.
Branches
Unknown
Tags
Unknown
Subscribers
None
Description

[Mips] Implement emitting of R_MIPS_REL32 relocations:

  1. Re-implement PLT entries and dynamic relocations emitting to keep PLT

and relocations table in a consistent state.

2. Initialize st_value and st_other fields for dynamic symbols table
entry if this entry corresponds to an external function which address is
taken in a non-PIC executable. In that case the st_value field holds an
address of the function's PLT entry. Also set STO_MIPS_PLT bit in the
st_other field.

rL207494

lld/trunk/lib/ReaderWriter/ELF/Mips/MipsLinkingContext.cpp

Loading...

lld/trunk/lib/ReaderWriter/ELF/Mips/MipsLinkingContext.h

Loading...

lld/trunk/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.cpp

Loading...

lld/trunk/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp

Loading...

lld/trunk/lib/ReaderWriter/ELF/Mips/MipsSectionChunks.h

Loading...

lld/trunk/lib/ReaderWriter/ELF/Mips/MipsTargetHandler.cpp

Loading...

lld/trunk/lib/ReaderWriter/ELF/Mips/MipsTargetHandler.h

Loading...

lld/trunk/test/elf/Mips/plt-1.test

Loading...

lld/trunk/test/elf/Mips/plt-2.test

Loading...

lld/trunk/test/elf/Mips/rel-copy.test

Loading...

lld/trunk/test/elf/Mips/rel-dynamic-01.test

Loading...

lld/trunk/test/elf/Mips/rel-dynamic-02.test

Loading...

lld/trunk/test/elf/Mips/rel-dynamic-03.test

Loading...

lld/trunk/test/elf/Mips/rel-dynamic-04.test

Loading...

lld/trunk/test/elf/Mips/rel-dynamic-05.test

Loading...

lld/trunk/test/elf/Mips/rel-dynamic-06.test

Loading...

lld/trunk/test/elf/Mips/rel-dynamic-07.test

Loading...

lld/trunk/test/elf/Mips/rel-dynamic-08.test

Loading...

lld/trunk/test/elf/Mips/rel-dynamic-09.test

Loading...

lld/trunk/test/elf/Mips/rel-dynamic-10.test

Loading...

lld/trunk/test/elf/Mips/rel-dynamic-11.test

Loading...

Add Comment