nickysn
|
7cfd7a66cd
+ create a special 'heap' segment with reserved space equal to heapsize (i.e.
|
преди 11 години |
nickysn
|
3cc8ff11e3
+ generate the stack segment for i8086 far data memory models from within fpc
|
преди 11 години |
sergei
|
46f8e78d1f
+ Support GOT/gp-relative constants in GAS and internal assemblers, MIPS and i386.
|
преди 11 години |
florian
|
4d5119bf1c
* fixes several issues which cause warnings by the dfa code when using it to detect uninitialized variables
|
преди 11 години |
sergei
|
1f8a67f552
+ Property TObjSymbol.ObjData, allows to access owning TObjData for external/common symbols, i.e. ones with ObjSection=nil.
|
преди 12 години |
sergei
|
5b6e50c9da
* It is incorrect to use var_align() in linker code: it depends on current_settings.alignment, which is valid only while compiling, not while linking. Replaced with size_2_align().
|
преди 12 години |
sergei
|
1fea5a82c1
* Replaced oso_disabled flag by TExeSection.Disabled boolean property. Makes code a bit nicer to read.
|
преди 12 години |
sergei
|
b86372ccec
+ Internal linker: process unreferenced .pdata sections on x86_64-win64, restores the possibility to use GAS on win64 (which got broken by introducing SEH).
|
преди 12 години |
sergei
|
c3f8086598
+ Internal linker: base support for sections that aren't referenced but must be linked if section referenced by them is linked (like win64 .pdata). Actual handling is still to be implemented in descendant classes.
|
преди 12 години |
sergei
|
999c3a0a02
* COFF linker: postpone import section generation until unreferenced sections (and imports) are removed, and put all remaining imports into a single section. This is much more efficient than generating multiple smart-linkable import sections and immediately discarding a good half of them.
|
преди 12 години |
sergei
|
cded05ccef
+ MIPS linker: support linking PIC object files with non-PIC ones, by routing absolute calls into PIC code through stubs that load R25.
|
преди 12 години |
sergei
|
1d32b107f5
* Made address comparison 64-bit safe.
|
преди 12 години |
florian
|
20a534e63f
* fixed code which causes range check errors when compiled with -Cr
|
преди 12 години |
sergei
|
6484911f05
* TExeOutput.FixupRelocations method made virtual.
|
преди 12 години |
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.
|
преди 12 години |
sergei
|
2bba4e2d44
+ Stabs debug info needs swapping when linking for different endianness.
|
преди 12 години |
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.
|
преди 12 години |
sergei
|
00ca4a74a3
* Reworked/fixed TExeSymbol.State behavior:
|
преди 12 години |
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.
|
преди 12 години |
sergei
|
129d737523
+ Allow TObjRelocation to be created without a symbol, such relocations are being used to tag specific positions on non-x86 targets.
|
преди 12 години |
sergei
|
0369a30f49
* Internal linker: made sec_rodata_norel read-only.
|
преди 12 години |
sergei
|
1aea22a6ca
+ Internal linker: generic and ELF-specific support for grouped sections, allow same symbol to be defined in several COMDAT groups.
|
преди 12 години |
sergei
|
d019670495
- Removed generic implementation of TObjData.sectionname, its existence is useless because it is completely overridden by all TObjData descendants.
|
преди 12 години |
sergei
|
8a56c9f7dc
* TExeOutput.Order_Symbol and Order_ProvideSymbol: Instead of searching objsection by name, search for the symbol and use its objsection.
|
преди 12 години |
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.
|
преди 12 години |
sergei
|
ee62a1ed50
* Fixed unclosed comment from r22775.
|
преди 12 години |
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.
|
преди 12 години |
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.
|
преди 12 години |
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.
|
преди 12 години |
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.
|
преди 13 години |