Jeppe Johansen
|
0251263234
Move some of the local reloc calculation out of aasmcpu, and into COFF and ELF writers.
|
há 9 anos atrás |
yury
|
b26fa07f1a
* Fixed notes "var is assigned but not used".
|
há 10 anos atrás |
yury
|
432248cbf1
* Removed lot of unused vars.
|
há 10 anos atrás |
Jonas Maebe
|
991e1f49bd
* store a pointer to the used tasminfo record in every assembler writer, so
|
há 10 anos atrás |
nickysn
|
d204aaab72
* refactored "ar" object writer creation in the internal assembler to allow
|
há 10 anos atrás |
Jeppe Johansen
|
7f34ab27d2
Fixed issue with COFF linker. The addend wasn't shifted up by four before being added.
|
há 10 anos atrás |
Jeppe Johansen
|
a3fd3ee3ab
Fixed bug in ARM coff writer. Relocations just ORed the offset onto the instruction instead of adding, but they are emitted as bl 0xFFFFFE, and not bl 0x0.
|
há 10 anos atrás |
Jeppe Johansen
|
9e5979e8be
Implemented UAL syntax support in the ARM assembler reader. Can be toggled with a field for now, but not implemented yet. Still using pre-UAL syntax for now.
|
há 10 anos atrás |
sergei
|
8c61990078
* ogcoff.pas: when encountering symbol of unsupported type in input object file, give a meaningful error message instead of internal error. Mantis #27020.
|
há 10 anos atrás |
nickysn
|
7cfd7a66cd
+ create a special 'heap' segment with reserved space equal to heapsize (i.e.
|
há 11 anos atrás |
nickysn
|
3cc8ff11e3
+ generate the stack segment for i8086 far data memory models from within fpc
|
há 11 anos atrás |
sergei
|
db621780d5
* x86_64-win64: fixed handling of RELOC_RELATIVE_1..RELOC_RELATIVE_5 COFF relocations, they were off by 4 bytes, causing failure in tests/test/tcalext.pp.
|
há 11 anos atrás |
florian
|
4d5119bf1c
* fixes several issues which cause warnings by the dfa code when using it to detect uninitialized variables
|
há 11 anos atrás |
sergei
|
1fea5a82c1
* Replaced oso_disabled flag by TExeSection.Disabled boolean property. Makes code a bit nicer to read.
|
há 12 anos atrás |
sergei
|
9dc5b07a68
* COFF: fixed setting section flags. Content type and access bits must be set for non-loadable sections as well.
|
há 12 anos atrás |
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).
|
há 12 anos atrás |
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.
|
há 12 anos atrás |
sergei
|
d762ef9e78
+ PECOFF targets: support more than 65535 relocations per object section, resolves #23752. DJCOFF targets: give a fatal error, since this object file format does not support extended relocations.
|
há 12 anos atrás |
florian
|
db68214e88
+ support setpeoptflags directive, resolves #23447
|
há 12 anos atrás |
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.
|
há 12 anos atrás |
sergei
|
0369a30f49
* Internal linker: made sec_rodata_norel read-only.
|
há 12 anos atrás |
pierre
|
b851a5a065
Accept range/overflow for address computation inside unit
|
há 13 anos atrás |
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.
|
há 13 anos atrás |
sergei
|
c41b407119
* Changed TObjSection.WriteStr method to write a zero byte after the string.
|
há 13 anos atrás |
sergei
|
ec56677927
+ Added method TObjSection.writeReloc_internal to write relocations to given section+offset without need to have a symbol at target location.
|
há 13 anos atrás |
sergei
|
45d27ef82e
* Relocating common symbols needs adjusting by symbol size only on DJCOFF targets, not on PECOFF ones.
|
há 13 anos atrás |
sergei
|
95535ea845
- Do not create any default object sections. On targets with section-based smartlink these sections remain empty and only cause linker to do useless job of removing them. The same happens when loading object files because duplicate section names are allowed at that time. On targets without smartlink they don't stay empty, but the internal assembler creates sections when required, so not creating initial sections effectively doesn't change anything.
|
há 13 anos atrás |
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.
|
há 13 anos atrás |
sergei
|
06844fdb23
* Entirely moved relocation fixup functionality from TObjSection to TExeOutput.
|
há 13 anos atrás |
sergei
|
3b3da49ad6
* Merged TElfObjSection.secshidx and TCoffObjSection.secidx into TObjSection.index.
|
há 13 anos atrás |