Commit Graph

58432 Commits

Author SHA1 Message Date
svenbarth
06e3feb919 * don't set ASMMODE to INTEL on non-x86 targets
git-svn-id: trunk@44951 -
2020-04-21 06:06:44 +00:00
svenbarth
e01de80981 * register the DLL scanner for aarch64-win64
git-svn-id: trunk@44950 -
2020-04-21 06:06:40 +00:00
svenbarth
7f4b94e408 * generate jump tables into the same section as the code as otherwise we'll get bogus relocations (in case of clang.exe) or a future support for armasm64.exe will reject the relative symbols outright
git-svn-id: trunk@44949 -
2020-04-21 06:06:36 +00:00
svenbarth
b88107fa1d * due to an apparent bug in the clang assembler for COFF when assembling ADRP instructions we can't use symbols that are offset into their section
git-svn-id: trunk@44948 -
2020-04-21 06:06:31 +00:00
svenbarth
042aae2455 * the clang assembler does not provide support for the SEH directives we need (only the LLVM backend would be able to use them), thus we need to manually convert them to data sections
git-svn-id: trunk@44947 -
2020-04-21 06:06:28 +00:00
svenbarth
531c93a04e * regenerate msg{idx,txt}.inc
git-svn-id: trunk@44946 -
2020-04-21 06:06:24 +00:00
svenbarth
7f0d582a4a + add Win64 target to help text
git-svn-id: trunk@44945 -
2020-04-21 06:06:20 +00:00
svenbarth
6143b8b54d + add an error message if the size of a function is invalid (in case of aarch64-win64: not a multiple of 4, the instruction size)
git-svn-id: trunk@44944 -
2020-04-21 06:06:16 +00:00
svenbarth
ada6d8ce5e * the .pdata section currently only needs to be always included for arm-wince (at least until we have full SEH support there as well)
git-svn-id: trunk@44943 -
2020-04-21 06:06:13 +00:00
svenbarth
96c52ef16d + implement a main_wrapper for the default exception handler for aarch64-win64
git-svn-id: trunk@44942 -
2020-04-21 06:06:09 +00:00
svenbarth
2b59000d56 + implement compiler support for SEH on Win64
Note: due to the way we access variables in a nested function (which in this case includes exception filters) we can not extract the finally handlers and call them (like we do on i386 and x86_64, but instead we duplicate the finally code)

git-svn-id: trunk@44941 -
2020-04-21 06:06:05 +00:00
svenbarth
4e06d66d7f + implement RTL functionality for SEH for aarch64-win64
git-svn-id: trunk@44940 -
2020-04-21 06:05:59 +00:00
svenbarth
bfa5bf80e2 * inside the Win64 system unit convert FPC_USE_WIN64_SEH to a SYSTEM_USE_WIN_SEH
git-svn-id: trunk@44939 -
2020-04-21 06:05:55 +00:00
svenbarth
5c898fe795 * enable is_prefetch only for x86 code
git-svn-id: trunk@44938 -
2020-04-21 06:05:51 +00:00
svenbarth
c152796bf3 * rename RunErrorCodex64 to a more appropriate RunErrorCodeSEH
git-svn-id: trunk@44937 -
2020-04-21 06:05:46 +00:00
svenbarth
25c6f3a667 * the prefetch bug handling is specific to x86_64
git-svn-id: trunk@44936 -
2020-04-21 06:05:43 +00:00
svenbarth
f3c377f8d1 * use accessor functions to work with the TContext record
git-svn-id: trunk@44935 -
2020-04-21 06:05:39 +00:00
svenbarth
fed17122f8 * as a variant for SEH exception filters we allow them to be *duplicated* instead of being extracted; this can be done unconditionally as for extracted ones their code is set to Nil after they're done and thus won't be picked up by generate_code_exceptionfilters
git-svn-id: trunk@44934 -
2020-04-21 06:05:35 +00:00
svenbarth
26c45f550a * when building a reference with an identifier, initialize the operand so that page offsets of functions are handled correctly
git-svn-id: trunk@44933 -
2020-04-21 06:05:32 +00:00
svenbarth
1fb2d9540c * allow ADD instructions with a page offset load with either a symbol or a base register
git-svn-id: trunk@44932 -
2020-04-21 06:05:28 +00:00
svenbarth
f150fc6b7c * at least clang can savely generate relocatable readonly sections, so use "r" for aarch64-win64
git-svn-id: trunk@44931 -
2020-04-21 06:05:25 +00:00
svenbarth
329710f573 * use COFF sectionattrs for aarch64-win64 as well
git-svn-id: trunk@44930 -
2020-04-21 06:05:21 +00:00
svenbarth
3f40e00392 * the clang assembler for COFF requires at least an "r" to generate a readonly section
git-svn-id: trunk@44929 -
2020-04-21 06:05:18 +00:00
svenbarth
3f62c5f5ef + introduce a virtual method for writing the section flags
git-svn-id: trunk@44928 -
2020-04-21 06:05:14 +00:00
svenbarth
b5a4f8837c * rename the local sectionflags and sectionprogbits variables to the more clear usesectionflags and usesectionprogbits
git-svn-id: trunk@44927 -
2020-04-21 06:05:10 +00:00
svenbarth
61358b1eaa * it's rather useless that sectiontype2options is virtual as we can't use a class type, not to mention that the classes doing the overriding are for the internal assemblers/linkers, but we need it also for external
Thus we move the functionality of the overloads to the basemethod and remove the virtual directive; maybe we'll find a better solution in the future...

git-svn-id: trunk@44926 -
2020-04-21 06:05:06 +00:00
svenbarth
0cc592e9ee - remove sectiontype2options overload for mach-O, because the relevant sections have the correct flags in the base method already
git-svn-id: trunk@44925 -
2020-04-21 06:05:02 +00:00
svenbarth
12ef066897 + add functionality to store a node tree's required temp nodes and their flag upon entering the tree
git-svn-id: trunk@44924 -
2020-04-21 06:04:59 +00:00
svenbarth
41b1711589 * disable CPU and Signals units for Windows on AArch64 for now
git-svn-id: trunk@44923 -
2020-04-21 06:04:55 +00:00
svenbarth
1972b05cc8 * store and restore the 8087 control world only on x86 systems
git-svn-id: trunk@44922 -
2020-04-21 06:04:52 +00:00
svenbarth
c474b95dfc * disable some x86_64 specific assembly routines
git-svn-id: trunk@44921 -
2020-04-21 06:04:49 +00:00
svenbarth
79a4409587 * enable AArch64 for Win64 in fpmkunit and fpcmake
git-svn-id: trunk@44920 -
2020-04-21 06:04:45 +00:00
svenbarth
613a6e796a * Windows on AArch64 requires some DllCharacteristics in the header to be always set
git-svn-id: trunk@44919 -
2020-04-21 06:04:41 +00:00
svenbarth
40633835dc * Windows on Aarch64 requires a relocation section
git-svn-id: trunk@44918 -
2020-04-21 06:04:37 +00:00
svenbarth
3b1d5794e9 * Windows on AArch64 does not support ProgBits either
git-svn-id: trunk@44917 -
2020-04-21 06:04:34 +00:00
svenbarth
a6f1c04f22 * Windows does not support a GOT, so rely on page relative addressing
git-svn-id: trunk@44916 -
2020-04-21 06:04:31 +00:00
svenbarth
dfde4def62 + add a GAS compatible variant of the Clang assembler (currently used for Aarch64-Win64 as no GNU AS exists for that target, yet)
git-svn-id: trunk@44915 -
2020-04-21 06:04:27 +00:00
svenbarth
3af74d2fd2 + implement initial compiler support for Win64 on Aarch64
git-svn-id: trunk@44914 -
2020-04-21 06:04:22 +00:00
svenbarth
5b941e3cea + implement relocations for Aarch64 for the internal COFF linker
git-svn-id: trunk@44913 -
2020-04-21 06:04:15 +00:00
svenbarth
3e29742fd9 * for PE+ specific checks use a constant in systems.pas instead of an explicit list (easier to extend this way)
git-svn-id: trunk@44912 -
2020-04-21 06:04:10 +00:00
Károly Balogh
6630f47ab4 m68k-amiga: implemented LockDosList, UnlockDosList, and NextDosEntry helpers for legacy support
git-svn-id: trunk@44907 -
2020-04-21 03:01:17 +00:00
florian
b4ff93c9fe + forgotten files added
git-svn-id: trunk@44889 -
2020-04-20 20:08:19 +00:00
svenbarth
068f0d2ec8 * fix for Mantis #36935: apply patch by J. Gareth Moreton to fix a typo in cs_opt_remove_empty_proc
git-svn-id: trunk@44888 -
2020-04-20 18:42:30 +00:00
svenbarth
752ff32333 * fix WinAPI directive: the purpose is to present the OS' default calling convention which for Windows means stdcall (at least on those platforms that support stdcall) on other platforms it is cdecl (for now)
git-svn-id: trunk@44887 -
2020-04-20 18:29:28 +00:00
pierre
cd6de6a4ca Regenerate all Makefiles
git-svn-id: trunk@44882 -
2020-04-20 13:58:47 +00:00
pierre
3f9e6aa6b9 Add handling of sparc64-linux and pass -m32/-m64 to $CROSSGCC call
git-svn-id: trunk@44881 -
2020-04-20 13:57:26 +00:00
pierre
4d25558519 * Use off_t type for l_start and l_end fields instead of kernel_off_t
+ Distinguish rlim_t type depending on fs32bit macro being set or not.

git-svn-id: trunk@44879 -
2020-04-20 09:50:07 +00:00
pierre
4888c379c4 Use same field type and name as in /ust/include/sys/stat.h
git-svn-id: trunk@44878 -
2020-04-20 09:37:55 +00:00
ondrej
d1acd07e07 fpImage: fix HtmlColorNameToFPColorMap (TFPColor components are Word not Byte)
git-svn-id: trunk@44877 -
2020-04-20 08:41:18 +00:00
pierre
4b5f37c2a7 Correctly update after commit 44871
git-svn-id: trunk@44876 -
2020-04-19 21:48:58 +00:00