summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-11-22Eliminate a warning while generating the test cases.Logan Chien
Change-Id: Iee7a98e21b6006eeb7f95d465727b5f5e6f10bd5
2011-11-22Remove the generated binary.Logan Chien
You can generate the test case object files by running gen-testcases.sh. Change-Id: Ib8b3ffd4a522447e06098f564d720e5af5c3b13a
2011-11-21Re-enable mmap() address randomization (got turned off by accident)Andrew Hsieh
Change-Id: Ie1c75ba5861bebf7a4f9d084f8fda66d8d6da07b
2011-11-18Surpress pointer to uint32_t cast warning.Logan Chien
Since these code is only for ARM architecture, we should use 32bit unsigned integer to store address. However, this casting may cause compilation warning on the other platform. So we are going to cast to uintptr_t then truncate to uint32_t. Change-Id: I5f43f57306e2a1eac75708dd59fd8599d046aad9
2011-11-16Fix linker bug where addend != 0 for High16 and Low16.Shih-wei Liao
Change-Id: I74b3b87741952b0b441bd440630b4e92b2a9c0a1
2011-11-17Fix "still too far" bug.Logan Chien
Before this commit, we are only generating stubs for external functions. However, it is possible that two PROGBITS sections are far from each other, and result in "still too far" assertion failure. In order to fix this problem, we have to generate stubs for both internal and external functions. Change-Id: I27adf50abf508c80fdedc36e97f288b123ccb22d
2011-11-12Conform to PP 4-16 to 4-19 in ↵android-sdk-4.0.3_r1android-sdk-4.0.3-tools_r1android-cts-verifier-4.0_r1android-cts-verifier-4.0.3_r1android-cts-4.0.3_r2android-cts-4.0.3_r1android-4.0.4_r2.1android-4.0.4_r2android-4.0.4_r1.2android-4.0.4_r1.1android-4.0.4_r1android-4.0.3_r1.1android-4.0.3_r1ics-mr1-releaseShih-wei Liao
http://www.sco.com/developers/devspecs/mipsabi.pdf. Fix to allow Bit 15 overflow. Change-Id: I9ff679ffba3b6139d929291e6d857d03d57cece4
2011-11-10Fix relocations in linking loader.Shih-wei Liao
Remember to flush cache when needed. Otherwise I-cache and d-cache may become incoherent. Change-Id: I47f1745ff6e9fc3600cff783f27a2c566fc4b05f
2011-09-28Add relocation to movw/movt of external globalandroid-sdk-adt_r16.0.1android-cts-4.0_r1android-4.0.2_r1android-4.0.1_r1.2android-4.0.1_r1.1android-4.0.1_r1ics-mr0-releaseics-mr0ics-factoryrom-2-releaseAndrew Hsieh
Change-Id: I889b55388eba0d4ef587d5247754d8ecb6ea32b3
2011-08-10Get the align info for COMMON symbols.Shih-wei Liao
BUG=5057160. Tested on x86, crespo and stingray. Change-Id: I4a28604a8412d08f2636e2e470793887973666c7 TODO: I did a workaround for .lcomm directives bug of LLVM ARM MC code generator. Remove this when the LLVM bug is fixed. TODO: Need to refactor initSHNCommonDataSize.
2011-08-10Add relocate messageShih-wei Liao
Tested on x86, crespo and stingray. Change-Id: Ib20d790a6de8a6666942b4165d37efa9af968ea5
2011-08-09Count size for common variable before relocate.Shih-wei Liao
BUG=5057160. Tested on x86, crespo and stingray. TODO: I did a workaround for .lcomm directives bug of LLVM ARM MC code generator. Remove this when the LLVM bug is fixed. TODO: Need to refactor initSHNCommonDataSize. Change-Id: I060c5306586224ddb92e79744c80f2a5925b3dff
2011-07-22Move stubs from ELFObject to ELFSectionProgBits by TDYShih-wei Liao
Text section problem in BUG=5057160. Tested on x86, crespo and stingray. TODO: Not every section need stub. TODO: May not be able to call getExternFuncCount() every progbits section. TODO: May be too many stubs Note that every .text section should have its own stub. Change-Id: I4a98ed51cc7b171b96840430198bd15409978014
2011-07-17Ensure that only the path today that supports mode-switching (ARM/Thumb2) is ↵Shih-wei Liao
exercised. BUG=5039224, 5036610, 5036755 Change-Id: Ie2b7562f18fa50373838139f1d049cafeabe1b52
2011-07-05Use arbitrary address instead of 0x7e000000.Shih-wei Liao
Change-Id: I05d8a1be0dce1b006bf02893f171fae04d236ec8
2011-07-01Fix Mac build.Ying Wang
Change-Id: I6cbbcf51d570407b4ee2a1f15c45a9c6d3cf0d61
2011-07-01Fix the MAC breakage.Shih-wei Liao
Change-Id: I6deb8191dd3abbbda3a212b8c7df8e41860bf9f1
2011-07-02Rewrite the workaround for misalignment.Logan Chien
Previous workaround caused RsBenchmark crashed. This is because the inconsistency of the symbol address and relocation address. In the old patch, the relocation hole will be filled with new aligned address, while the relocation process will committed on old address. This new workaround is based on the observation that ".lcomm" directive bug will only affect .bss section (NOBITS). Besides, .bss section itself needs no relocation. So it is OK to allocate 16-byte aligned memory for .bss section.
2011-07-02Add rodata test case.Logan Chien
2011-07-02Fix MemChunk print range.Logan Chien
2011-07-02Enhance the hex dump function.Logan Chien
2011-07-01Build NameMap early.Shih-wei Liao
Change-Id: Ic1e3a992e8a0f9ef30ff2016871eeda165b041b7
2011-07-01Mark as inline function.Logan Chien
2011-07-01Reorder the function (Code cleanup)Logan Chien
2011-07-01Add some assert for ".symtab".TDYa127
2011-07-01Add inline for some function in .hxx.TDYa127
2011-07-01Use llvm::StringMap for name lookup.TDYa127
2011-07-01Use llvm/Support/ELF.h.TDYa127
2011-07-01Expose the interface for function name listing.Logan Chien
2011-06-30Log clean-up.Shih-wei Liao
Change-Id: I91e4ab1eaa83f13eaec30de116fedb6f957d9e3a
2011-06-20Debugging carousel.Shih-wei Liao
Change-Id: I341e9c5479b501b2e67766e7b01e2d88e847be60
2011-06-19Preemble for raw_ostream.cpp and raw_ostream.h.Shih-wei Liao
Change-Id: I474de4797c525b08b2b68635be26ac8b2584e17e
2011-06-19Fix flush_cpu_cache.h, helper.*, rsl_assert.*, serialize.h and traits.h.Shih-wei Liao
Change-Id: I09c071d4f2975b5b79d6cb16b7f953ba283f9c89
2011-06-19Fix simple-test.c, test.cShih-wei Liao
Change-Id: I53eb1fdf8ab49beb99378b5218e5031b6d2ab743
2011-06-19Prologue.Shih-wei Liao
Change-Id: Ibefb6c4bd25832470472b14e56d7b5c114d9d6de
2011-06-19Add prologue to stub-test.cpp.Shih-wei Liao
Change-Id: I4d5eadab5ad0c59db2bc5d77d0b60e380629803a
2011-06-19Prologuing ELFHeader.cpp, ELFSectionHeader.cp, ELFSymbol.cpp...Shih-wei Liao
and ELFTypes.cpp, MemChunk.cpp, StubLayout.cpp. Change-Id: I43d39b92d64cfedc56ce363ffe8c26202a4a8b41
2011-06-19Add prologue to implementation directory.Shih-wei Liao
Change-Id: I6b9bcd549ac225811746fbc0037d4292c7a85ba9
2011-06-19Fix ELFHeader.h, ELFObject.h, ELFReloc.h, ...Shih-wei Liao
Change-Id: I830a5e808000617996431b0c836eb219bea8972c
2011-06-19Fix librsloader.cpp, librsloader.h, and test-librsloader.c: Add prologue.Shih-wei Liao
Change-Id: I3ee6b2b78f5da7d6f92af9675fa2fc7c74a0207b
2011-06-19Fix Android.mk, SConstruct, main.cpp.Shih-wei Liao
Change-Id: Ia3d42768c978f3e2fe66417d6dea9be31a9e5fb5
2011-06-17Workaround for LLVM MC .bss mis-alignment issue.Logan Chien
2011-06-17Add rsloaderGetSymbolSize for libbcc disassembler.Logan Chien
2011-06-15Add ARM relocation type: R_ARM_ABS32.TDYa127
I didn't test this relocation type.
2011-06-15Add X86_64 relocation type: R_X86_64_64.TDYa127
2011-06-15Relocate all relocatable section.TDYa127
2011-06-14Refactor rsl_assert.Logan Chien
2011-06-14Change assert to rsl_assert.TDYa127
2011-06-14Implement our own assert.TDYa127
2011-06-14Correct variable name.TDYa127