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.
|
пре 12 година |
florian
|
db68214e88
+ support setpeoptflags directive, resolves #23447
|
пре 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
|
0369a30f49
* Internal linker: made sec_rodata_norel read-only.
|
пре 12 година |
pierre
|
b851a5a065
Accept range/overflow for address computation inside unit
|
пре 13 година |
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 година |
sergei
|
c41b407119
* Changed TObjSection.WriteStr method to write a zero byte after the string.
|
пре 13 година |
sergei
|
ec56677927
+ Added method TObjSection.writeReloc_internal to write relocations to given section+offset without need to have a symbol at target location.
|
пре 13 година |
sergei
|
45d27ef82e
* Relocating common symbols needs adjusting by symbol size only on DJCOFF targets, not on PECOFF ones.
|
пре 13 година |
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.
|
пре 13 година |
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.
|
пре 13 година |
sergei
|
06844fdb23
* Entirely moved relocation fixup functionality from TObjSection to TExeOutput.
|
пре 13 година |
sergei
|
3b3da49ad6
* Merged TElfObjSection.secshidx and TCoffObjSection.secidx into TObjSection.index.
|
пре 13 година |
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.
|
пре 13 година |
sergei
|
c65abdeeae
* Implemented link map generation without involving TObjSection.ObjSymbolDefines, and removed the latter because it isn't used otherwise. The new approach uses CPU/memory only when map generation is requested.
|
пре 13 година |
sergei
|
0c32756ef3
- removed TCoffObjData.afteralloc, calculating MemPos there is useless because every call to afteralloc is immediately followed by call to TObjData.resetsections that resets all MemPos back to zero.
|
пре 13 година |
sergei
|
8c8883cc35
* Once TExeOutput is accessible in TObjSection.fixuprelocs, its ImageBase can be used directly, without a need to have a copy in every TObjSection.
|
пре 13 година |
sergei
|
5be97c7c9e
- Removed TDJCoffObjSection,TPECoffObjSection,TCoffExeSection,TPECoffExeSection,TDJCoffExeSection. These only add complication and no value.
|
пре 13 година |
sergei
|
7cda919547
* Pass ExeOutput as argument to TObjSection.fixuprelocs, needed for ELF targets to relocate the complex GOT stuff.
|
пре 13 година |
sergei
|
4e95b50344
* Improved performance of COFF object reader: handle string table as array of chars instead of stream, use Pos instead of Copy to determine if name starts with the given chars.
|
пре 13 година |
sergei
|
7d3294b504
* Moved 4 procedures for basic reading/writing TObjSection contents into ogcoff.pas, so they don't have to be reimplemented for every output format.
|
пре 13 година |
sergei
|
1c271251f8
- Removed tcoffexeoutput.FCoffSyms, it is never used (symbols are written directly to the output)
|
пре 13 година |
sergei
|
3a89544cd6
+ Internal linker for go32v2:
|
пре 13 година |
sergei
|
8814f56081
* Fixed oso_debug section attribute being not preserved while reading/writing DJCOFF object files.
|
пре 13 година |
sergei
|
35e3e363dd
* Changed writing section symbols to use storage class COFF_SYM_LOCAL (3), this is what is used by both GCC and MSVC. Previously used COFF_SYM_SECTION (104) is accepted by GNU binutils, but only for PE targets (and silently converted to COFF_SYM_LOCAL), for DJGPP it issues warnings.
|
пре 13 година |
sergei
|
bbb08bbf66
ogcoff.pas:
|
пре 13 година |
sergei
|
dc03282cb7
+ Support assembling expressions ".long L2-L1" where label L1 belongs to the current objsection and L2 comes from any objsection. This is done using relative relocations and is compatible with GNU AS.
|
пре 13 година |
Jonas Maebe
|
14cfe770a4
* replaced most (if not all) remaining fields/parameters in the compiler
|
пре 13 година |
Jonas Maebe
|
ac43eb9b70
+ generic implementation of ReplaceForbiddenAsmSymbolChars() instead
|
пре 13 година |
sergei
|
0b16c3565a
* Don't reject IMAGE_REL_ARM_SECREL relocations, Mantis #20467
|
пре 14 година |