sergei
|
6484911f05
* TExeOutput.FixupRelocations method made virtual.
|
před 12 roky |
sergei
|
f98e09d86e
- TObjData.sectiontype2options: removed oso_keep flags. They don't have any effect here because this function is used only during assembling, and oso_keep cannot be represented in object files and therefore gets lost before linking.
|
před 12 roky |
sergei
|
2bba4e2d44
+ Stabs debug info needs swapping when linking for different endianness.
|
před 12 roky |
sergei
|
d7c5daeccd
* Don't calculate data position of each object section. Instead, write out a copy of exesection's memory image, i.e. every objsection is placed at the same offset from its owning exesection both on disk and in memory. This approach is simpler and works regardless of alignment requirements, while existing one could work only if SectionDataAlign<=SectionMemAlign.
|
před 12 roky |
sergei
|
00ca4a74a3
* Reworked/fixed TExeSymbol.State behavior:
|
před 12 roky |
sergei
|
36859068f5
* Propagate AS_NEEDED flag further into Load_DynamicObject and handle it properly: shared objects marked with AS_NEEDED are added to dependencies only if they actually resolve some symbol.
|
před 12 roky |
sergei
|
129d737523
+ Allow TObjRelocation to be created without a symbol, such relocations are being used to tag specific positions on non-x86 targets.
|
před 12 roky |
sergei
|
0369a30f49
* Internal linker: made sec_rodata_norel read-only.
|
před 12 roky |
sergei
|
1aea22a6ca
+ Internal linker: generic and ELF-specific support for grouped sections, allow same symbol to be defined in several COMDAT groups.
|
před 12 roky |
sergei
|
d019670495
- Removed generic implementation of TObjData.sectionname, its existence is useless because it is completely overridden by all TObjData descendants.
|
před 13 roky |
sergei
|
8a56c9f7dc
* TExeOutput.Order_Symbol and Order_ProvideSymbol: Instead of searching objsection by name, search for the symbol and use its objsection.
|
před 13 roky |
sergei
|
499162ca50
* Internal linker: fixed alignment routines. Neither of existing ones is suitable for 64-bit targets: cutils.align() is 32-bit only and moreover signed, system.align() crashes on zero alignment values and handles only pointer size of source platform.
|
před 13 roky |
sergei
|
ee62a1ed50
* Fixed unclosed comment from r22775.
|
před 13 roky |
sergei
|
6d70009f06
+ ELF linker. Works on x86_64-linux and i386-linux good enough to pass the testsuite, but still requires a lot of work in nearly all aspects. In particular, no attempt to resolve symbols from shared libs is done, everything is just treated as imports. Symbol versioning isn't supported either.
|
před 13 roky |
sergei
|
a178e28275
+ Extend TObjRelocation to hold untranslated platform-specific relocation types. This allows to avoid translating relocations into generic format when reading object files (which is just waste of time), and allows TObjRelocationType enumeration contain only types that are actually produced by compiler.
|
před 13 roky |
sergei
|
3d63b1a2b2
+ Added a flag allowing a section to be written into both .dbg and executable files. This is needed at least for ELF SHT_NOTE sections.
|
před 13 roky |
sergei
|
fde944bf5d
+ Declare AT_TLS and AT_GNU_IFUNC symbol types, these are needed to handle object files created by gcc in ELF internal linker.
|
před 13 roky |
sergei
|
c41b407119
* Changed TObjSection.WriteStr method to write a zero byte after the string.
|
před 13 roky |
sergei
|
b1b175dacc
+ Internal linker support for weak symbols.
|
před 13 roky |
sergei
|
6f4e8927cd
* Specify explicitly whether properties of an ObjSection should be considered when adding it to ExeSection, instead of deciding it implicitly.
|
před 13 roky |
sergei
|
d79511f96e
+ Basic ld script parsing capabilities (barely enough to parse glibc2.1 'libc.so' files, lacks any error handling).
|
před 13 roky |
sergei
|
ec56677927
+ Added method TObjSection.writeReloc_internal to write relocations to given section+offset without need to have a symbol at target location.
|
před 13 roky |
sergei
|
c1e7e9c85e
* TObjData.symbolref: don't lose the weak binding of asm symbol. This fixes tests/tweaklib*.pp at least for Linux x86 targets with internal assembler.
|
před 13 roky |
sergei
|
1d09005542
+ Implemented two-stage removal of empty exe sections. Candidates for removal are first marked with oso_disabled flag, then actually removed. Descendants of TExeOutput that override MemPos_Start may modify list of sections pending removal. In particular, the COFF-specific .reloc section no longer has to be handled in base TExeOutput class.
|
před 13 roky |
sergei
|
31d004e056
+ Basic executable stack support in TExeOutput.
|
před 13 roky |
sergei
|
24c7b7f433
* If alignment requirement of data is bigger than alignment of the section being written to, increase section alignment to match. This mostly affects cases of non-smart linking, where wrong initial alignment used to cause hard to catch misalignment issues. It also largely obsoletes the need to supply the initial section alignment (hidden tai_section constructor,etc).
|
před 13 roky |
sergei
|
06844fdb23
* Entirely moved relocation fixup functionality from TObjSection to TExeOutput.
|
před 13 roky |
sergei
|
2bc792fe97
* TObjData.FName made protected.
|
před 13 roky |
sergei
|
3b3da49ad6
* Merged TElfObjSection.secshidx and TCoffObjSection.secidx into TObjSection.index.
|
před 13 roky |
sergei
|
712f5d1c26
- Removed oso_readonly and oso_noload section options, it is enough to have just oso_write and oso_load to express possible section states.
|
před 13 roky |