florian
1c7626715d
* the stack pointer on Risc-V points always at the last used position, resolves #39739
2022-05-28 20:10:49 +02:00
Nikolay Nikolov
34ebeb15ed
* pass the option to create shared, imported memory to the linker, in case the module is compiled with -CTwasmthreads
...
Note that this breaks running programs compiled with -CTwasmthreads with "wasmtime run --wasm-features threads", but
there's not much we can do about that, since shared memory is required for threading, and wasmtime still doesn't
support it.
2022-05-28 20:06:34 +03:00
florian
9f47e21da3
* increase default dwarf version for linux targets where current distributions exist
2022-05-16 22:56:30 +02:00
florian
deec6fc4ba
* set max. variable and constant alignment for win32 and win64 to 64 byte boundaries
2022-05-11 20:58:38 +02:00
florian
a73869b879
* arm-linux: set max. alignment for constants and variables to 32 byte boundaries
2022-05-09 22:45:21 +02:00
florian
4add05c625
* x86_64-linux and i386-linux align variables and constants up to 64 byte boundaries
2022-05-08 17:50:00 +02:00
ccrause
a6766d62ee
Fix generation of default linker script for esp-idf v4.4
2022-05-02 21:18:40 +00:00
florian
eba76dd052
* allow 32 byte alignment of constants and variables on aarch64-darwin
2022-05-01 10:55:48 +02:00
florian
366d1332d1
* nicer casing
2022-04-16 21:40:33 +02:00
Karoly Balogh
e0599bb231
* z80-amstradcpc: fixed target naming mess, so -Tamstradcpc works now, also fixed the help text
2022-03-09 13:36:47 +01:00
Karoly Balogh
cb959c2e6f
* z80-amstradcpc: add some initial files for the target (mostly just the clone of ZX Spectrum files for now)
2022-03-06 22:02:27 +01:00
Karoly Balogh
01142f11d7
* z80-msxdos: cleaned up some msdos leftovers in i_msxdos. no functional changes.
2022-03-05 17:13:17 +01:00
Karoly Balogh
4b88fa8e3b
* powerpc-morphos: add support for linker map file generation, some code cleanups
2022-02-21 11:35:24 +01:00
Nikolay Nikolov
72e88a3452
- don't write the wasm-ld command line to the screen when linking a WASM
...
library. The command line, passed to the linker is dumped when compiling with
-vv anyway.
2022-02-17 05:14:21 +02:00
Nikolay Nikolov
7711ba610a
- don't pass --export-dynamic to the linker when linking a library for the WASI target
2022-02-16 06:00:18 +02:00
Nikolay Nikolov
2a33948521
- removed commented out code for executing WASI dllcmd[2]
2022-02-16 05:42:52 +02:00
Nikolay Nikolov
e34116f7de
- removed --allow-undefined linker option when compiling a WASI library
2022-02-16 05:34:09 +02:00
Nikolay Nikolov
590c878690
+ added separate startup code for libraries, that declares _initialize, instead of _start
2022-02-16 05:24:41 +02:00
Nikolay Nikolov
d2a2240a2c
* some fixes to the WASI library compilation (not ready, yet)
2022-02-16 02:49:34 +02:00
Nikolay Nikolov
f01c841190
* set and use ExeCmd instead of DllCmd when making an WASI executable
2022-02-16 02:32:18 +02:00
Nikolay Nikolov
f7b7c39129
* use 'with' in tlinkerwasi.SetDefaultInfo
2022-02-16 02:31:23 +02:00
Nikolay Nikolov
ae17e6acb6
- removed unused comment
2022-02-16 02:31:01 +02:00
Nikolay Nikolov
ef4255c65b
- removed spurious comment
2022-02-16 02:25:32 +02:00
Karoly Balogh
ff68e7b9de
* m68k-atari: override the exeext globally, not just at the final step of the linking. this fixes 'Linking <exename>.ttp' messages, when in fact <exename>.prg gets generated
2022-02-14 15:33:36 +01:00
Nikolay Nikolov
3c91a7c01e
+ emit an error message if the ihxutil is not found when compiling an ZX Spectrum executable with the internal linker
...
+ emit a 'tried' message (fpc -vt) when using ihxutil for ZX Spectrum
2022-02-13 02:54:40 +02:00
florian
c42b8c43bd
* \t => spaces
2022-02-07 23:04:20 +01:00
florian
28964711d7
* sorted defines in the compiler: mips64 is defined on all 64 Bit mips platforms, mips64el for little endian, misp64eb for big endian
2022-02-06 21:57:01 +01:00
florian
bd82ad0d41
* register MIPS64 targets properly
2022-02-06 10:50:57 +01:00
florian
e9e8013316
+ some basic stuff for MIPS64
2022-02-05 23:25:31 +01:00
Thorsten Otto
073b48de82
atari: add -Wt<x> option to allow specifying the executable format
...
This is useful to create aoutmint format binaries using vlink,
which have a symbol table that has no limit for the name length.
2022-02-02 21:34:32 +00:00
Thorsten Otto
41d4e181ea
atari: pass tos exe flags also to ld
2022-02-02 21:34:32 +00:00
Thorsten Otto
859ae5fc7c
Fix linker script for atari/gnu ld
2022-01-30 13:34:10 +01:00
Thorsten Otto
d93c7579de
Fix linker commandline for m68k-atari
2022-01-30 13:34:10 +01:00
ccrause
181ee30174
Update build and link requirements for esp-idf v4.4. Refactor the version dependent linker fragments list into an array of version specific array of strings for easier updating in future.
2022-01-30 08:14:07 +00:00
Karoly Balogh
6010ece532
* m68k-atari: make vasm the default assembler. also don't claim we have an internal linker
2022-01-25 23:50:07 +01:00
Karoly Balogh
b3cbf07f27
+ m68k-atari: fixed bogus TOS program flags passed to VLink. added -WF argument to allow the user to specify their own flags if needed
2022-01-25 23:50:07 +01:00
Karoly Balogh
88959bdda7
* m68k-sinclairql: fix the inclusion of the target proper
2022-01-25 12:04:49 +01:00
ccrause
4640120dbd
esp32.rom.api.ld was only introduced in esp-idf v4.3. Remove invalid linker search path.
2022-01-18 21:34:26 +00:00
ccrause
73287c35d2
GenerateDefaultLinkerScripts should set out_ld_filename.
2022-01-18 21:34:26 +00:00
Robert Roland
53e5a4a03a
Adding aaarch64-embedded target
...
This adds support for aarch64-embedded, specifically for the Raspberry Pi 3.
Uses UART0 at 115200 baud 8N1 for console IO.
2022-01-05 12:29:00 +00:00
ccrause
793c157a9c
Always call DoExec to generate linker scripts. Even if cs_link_nolink is set, the ldgen scipt needs to be called in the generated ppas script.
2021-11-29 22:42:49 +01:00
ccrause
b0c0309cc1
Add output path to kconfig source file location parameters.
2021-11-29 22:42:49 +01:00
ccrause
f66dd54bc2
Extract linker script generation as separate method. Check if esp linker scripts can be found in library paths, if not then generate scritps.
2021-11-29 22:42:49 +01:00
ccrause
a58567004b
Remove unused $OUTPUT substtution and empty check of outputexedir.
2021-11-29 22:42:49 +01:00
ccrause
655a5f526c
Place IDF related files in executable output folder.
2021-11-29 22:42:49 +01:00
florian
5db20610dd
* correct idf version check
2021-11-29 22:42:49 +01:00
florian
dc161e519f
* inputfilepath might not be empty
2021-11-29 22:42:49 +01:00
ccrause
5289aab4f2
Add -WP option so that IDF version can be passed in - stored in globals.idf_version. The version is checked in t_freertos.pas and for esp-idf version 4.3.x an extra link file is added, also running ldgen.py is skipped as that seems unused.
2021-11-29 22:42:49 +01:00
Pierre Muller
222a41be7b
Change declaration of DynLinkStr local variable of MakeExecutable method to ansitring to avoid short string overflows
2021-11-28 23:57:09 +00:00
florian
feb5bde09c
* better code and data size info for FreeRTOS
2021-11-13 19:04:58 +01:00