Age | Commit message (Collapse) | Author |
|
* Remove DLObject virtual methods allocSegment and freeSegment.
As long as all DLObject implementations use memalign + free to
allocate/release segments, there is no point in wrapping those.
This enables further simplifications.
* Add TemplatedELFPlugin template class. Use this instead of explicit
ELFPlugin subclasses.
* Rename DLObject::discard_symtab to discardSymtab
svn-id: r54082
|
|
svn-id: r54081
|
|
svn-id: r54060
|
|
The deletePointer() method approach cannot work, as it is called
by the destructor of the base class.
A possible correct solution would be to enhance ScopedPtr with a
"deleter" object like SharedPtr. But this seems overkill as long as we
need it in only one place.
svn-id: r54057
|
|
This merge was extremely difficult to carry out. It wasn't entirely SVN's fault -- there were several merges to the branch that were done by hand. Please check for any issues and regressions. Also note that the DS makefile was not copied over since the "one at a time" plugin mode currently has too much fragmentation ie. it doesn't work.
svn-id: r54051
|
|
svn-id: r54046
|
|
svn-id: r53976
|
|
svn-id: r53968
|
|
Caused crash in some games. The problem was referring to the right segment. R_MIPS_32 relocations can be found in the Shorts segment, but still need to refer to the main segment if the symbol is found there.
svn-id: r52750
|
|
Derived virtual function wasn't overwriting base function.
svn-id: r52749
|
|
The ELF loader does not have access to the symbols of the main
executable, it just relocates symbols to it via fixed offsets. We need
to make sure that loaded plugins are from the same link process to
prevent crashes. An embedded build date is used for that.
svn-id: r52730
|
|
- Unify ELF loader handling in configure
- Rename ELF_LOADER_TARGET to USE_ELF_LOADER
svn-id: r52728
|
|
svn-id: r52612
|
|
svn-id: r52611
|
|
Avoid linking all plugins against libstdc++ to free up some memory
(about ~40kb on Wii per plugin). Enable it on GameCube, Wii, DS and PSP
(PS2 doesn't have __cxa_atexit support in its libc).
svn-id: r52607
|
|
svn-id: r52592
|
|
Adjusted to new VMA handling and fixed a few errors which caused crashes. Also removed unneeded expansion of alignment value.
svn-id: r52589
|
|
svn-id: r52588
|
|
Also added 2 TODOs for all loaders not respection that offset.
svn-id: r52577
|
|
Elf32_Phdr.p_align is to align the memory location of the loaded
segment, not to extend its size. The size of the scratch area
(like .bss and .sbss) is p_memsz-p_filesz, which has to be set to
zero by the loader.
svn-id: r52576
|
|
svn-id: r52575
|
|
No point in documenting it on every derived class.
svn-id: r52574
|
|
svn-id: r52573
|
|
Misformatted casts in an earier commit, oops.
svn-id: r52572
|
|
svn-id: r52566
|
|
No point in passing it to functions all over the place. Release the
stream when it's not required anymore.
svn-id: r52558
|
|
Use our types, get rid of some casts.
svn-id: r52557
|
|
Instead overwrite pure virtual functions in a backend specific class.
svn-id: r52556
|
|
svn-id: r52555
|
|
svn-id: r52553
|
|
svn-id: r52552
|
|
Plugins do not have to be linked at 0x0. Some platforms have limited
relocation jump offsets, which makes 0x0 unusable.
svn-id: r52551
|
|
The ELFMAG is only 4 bytes, not 6. Properly check for endianess.
svn-id: r52550
|
|
svn-id: r52549
|
|
svn-id: r52548
|
|
Use the common debug functions instead of spamming #defines.
svn-id: r52547
|
|
svn-id: r52546
|
|
svn-id: r52439
|
|
Also removed criticalSection calls from elf-loader.cpp, since now streams are used so the criticalSections are automatic.
svn-id: r52206
|
|
This could be really important. Maybe.
svn-id: r52205
|
|
svn-id: r52124
|
|
providers for a few ports into their .h files, removing the corresponding .cpp files
svn-id: r52112
|
|
svn-id: r52058
|
|
svn-id: r52053
|
|
loaded at a time and tested successfully on the DS. Added code to prevent a crash in the case where there are no engine plugins present. Removed code for R_ARM_TARGET1 in arm-loader, as it is no longer used and was never used successfully
svn-id: r52052
|
|
svn-id: r51961
|
|
svn-id: r51846
|
|
duplication in DLObject and its subtypes
svn-id: r51845
|
|
arm loaders
svn-id: r51843
|
|
instead overrode those methods in MIPSDLObject
svn-id: r51827
|