Károly Balogh
b64edc0170
sinclairql: reduce default stack size to 8K
...
git-svn-id: trunk@47416 -
2020-11-14 23:50:35 +00:00
pierre
eb67d87dec
Avoid uninitialized variable warning with -O4 option
...
git-svn-id: trunk@47384 -
2020-11-10 23:52:51 +00:00
pierre
d2247f6539
Use MPW linker variant also for m68k-macosclassic target
...
git-svn-id: trunk@47383 -
2020-11-10 22:37:24 +00:00
Károly Balogh
51d8ec90a7
sinclairql: now the target short name is also sinclairql as proposed by Pierre, so it's unified everywhere
...
git-svn-id: trunk@47376 -
2020-11-10 21:31:04 +00:00
pierre
bcd52d66ee
Use default linker script and only add FPC specific sections for Linux OS
...
git-svn-id: trunk@47374 -
2020-11-10 17:21:00 +00:00
nickysn
93ecf5f155
* synchronized with trunk
...
git-svn-id: branches/wasm@47357 -
2020-11-09 00:06:32 +00:00
Károly Balogh
954123deb3
sinclairql: when linking with vlink, generate an unrelocated binary with appended relocation info, so the startup code can relocate it
...
git-svn-id: trunk@47347 -
2020-11-08 20:38:42 +00:00
nickysn
d3d51d2f7e
* synchronized with trunk
...
git-svn-id: branches/wasm@47338 -
2020-11-07 22:40:43 +00:00
florian
b47d2bd2c2
* allow var alignment up to 64 bytes
...
git-svn-id: trunk@47316 -
2020-11-04 21:31:50 +00:00
Károly Balogh
eda7d535bd
* m68k: enabled vasm assembler support for the Sinclair QL, and added linking
...
git-svn-id: trunk@47312 -
2020-11-04 21:01:34 +00:00
Károly Balogh
519701960c
m68k: initial commit to add the Sinclair QL as a compiler target
...
git-svn-id: trunk@47307 -
2020-11-04 14:20:28 +00:00
nickysn
66c1a57ab4
* use the LLVM-MC assembler by default for the WebAssembly targets
...
git-svn-id: branches/wasm@47172 -
2020-10-24 15:33:35 +00:00
nickysn
8f059a6b8a
* synchronized with trunk
...
git-svn-id: branches/wasm@47106 -
2020-10-14 02:41:25 +00:00
florian
637976e83f
* patch by Marģers to unify internal error numbers, resolves #37888
...
git-svn-id: trunk@47103 -
2020-10-13 19:59:01 +00:00
nickysn
fd772822d1
* synchronized with trunk
...
git-svn-id: branches/wasm@47045 -
2020-10-03 21:39:57 +00:00
Károly Balogh
bb51a2134a
z80-zxspectrum: fix the the linking order in the bss section, so the startup code doesn't crash when linked with vlink
...
git-svn-id: trunk@47036 -
2020-10-03 01:38:01 +00:00
nickysn
1da89c6259
- removed the --export-dynamic linker option
...
git-svn-id: branches/wasm@46998 -
2020-09-28 23:37:30 +00:00
nickysn
e96faf0a76
+ readded the --no-entry option when linking wasi executables
...
git-svn-id: branches/wasm@46995 -
2020-09-28 23:17:32 +00:00
nickysn
697bd6d586
* synchronized with trunk
...
git-svn-id: branches/wasm@46993 -
2020-09-28 22:19:56 +00:00
Károly Balogh
9f8417ba52
z80: added handling of sections provided by the startup code to the vlink linker script. this fixes executable building, but the resulting executables still don't work at this point
...
git-svn-id: trunk@46980 -
2020-09-27 22:58:01 +00:00
nickysn
114d0d738b
* synchronized with trunk
...
git-svn-id: branches/wasm@46970 -
2020-09-26 23:19:51 +00:00
florian
4ced513363
* xtensa-freertos: run python helpers only on non unix by directly calling python
...
git-svn-id: trunk@46961 -
2020-09-26 20:12:28 +00:00
florian
aa8fdabe1f
* xtensa-freertos: patch by Alfred for better tool search, resolves #37308
...
git-svn-id: trunk@46958 -
2020-09-26 15:44:37 +00:00
nickysn
796eb69b1a
* synchronized with trunk
...
git-svn-id: branches/wasm@46948 -
2020-09-24 21:02:37 +00:00
nickysn
47eeaa0b83
* synchronized with trunk
...
git-svn-id: branches/wasm@46920 -
2020-09-23 00:53:13 +00:00
florian
7107c39440
* search also /usr/lib64 for libraries etc. on aarch64-linux, apparently some distros use it
...
git-svn-id: trunk@46913 -
2020-09-21 17:57:19 +00:00
nickysn
be16e3a347
* synchronized with trunk
...
git-svn-id: branches/wasm@46785 -
2020-09-06 01:54:50 +00:00
florian
aea85fcd66
* Xtensa-freeRTOS: fix linking against libc
...
git-svn-id: trunk@46782 -
2020-09-05 20:25:30 +00:00
nickysn
851d23edba
* synchronized with trunk
...
git-svn-id: branches/wasm@46729 -
2020-08-29 01:56:54 +00:00
florian
fd0515344c
* Xtensa: record alignment is upto 8 bytes done
...
git-svn-id: trunk@46727 -
2020-08-28 20:18:35 +00:00
nickysn
35a4e705db
+ define tf_smartlink_sections for the WASM targets
...
git-svn-id: branches/wasm@46703 -
2020-08-26 20:26:36 +00:00
nickysn
8b3dd67869
+ enabled tf_needs_symbol_type for the wasm targets
...
git-svn-id: branches/wasm@46702 -
2020-08-26 17:26:45 +00:00
nickysn
7bab5b6483
* synchronized with trunk
...
git-svn-id: branches/wasm@46681 -
2020-08-25 00:15:56 +00:00
Jonas Maebe
beac71ed24
* fix deleting the linksyms file after successful linking (mantis #37636 )
...
git-svn-id: trunk@46677 -
2020-08-24 20:21:10 +00:00
nickysn
438908d86a
+ added tf_under_development for the wasm32 targets
...
git-svn-id: branches/wasm@46673 -
2020-08-23 19:20:30 +00:00
nickysn
6759ef3a6c
+ added tf_needs_symbol_size for the wasm32 targets
...
git-svn-id: branches/wasm@46670 -
2020-08-23 17:06:18 +00:00
nickysn
c1197ddb90
* synchronized with trunk
...
git-svn-id: branches/wasm@46529 -
2020-08-20 21:45:40 +00:00
florian
7157bac9fd
* patch by Christo Crause, resolves #37335
...
* ESP8266 support for t_freertos.pas
+ -Ff switch to be able to pass the IDF_PATH without using an evironment variable
git-svn-id: trunk@46527 -
2020-08-20 21:29:48 +00:00
yury
5d0e1dbe5a
* msdos: Fixed section based smartlinking after my recent changes.
...
git-svn-id: trunk@46504 -
2020-08-20 11:20:10 +00:00
pierre
ca5e2ee16a
Also add platformopt to DllCmd[1], as done for ExeCmd[1]
...
git-svn-id: trunk@46501 -
2020-08-20 05:20:26 +00:00
nickysn
2b3b1b4373
* synchronized with trunk
...
git-svn-id: branches/wasm@46488 -
2020-08-18 22:38:25 +00:00
yury
c75953c12b
* msdos: Implemented library based smartlinking of the dead stripable vectorized lists. It is enabled for the internal linker and wlink. These linkers sort sections by name by default.
...
git-svn-id: trunk@46480 -
2020-08-18 11:36:39 +00:00
nickysn
5e4ddd6969
* synchronized with trunk
...
git-svn-id: branches/wasm@46305 -
2020-08-06 22:41:56 +00:00
yury
fcf085b141
* msdos: Include debug info only when it is enabled by options.
...
git-svn-id: trunk@46297 -
2020-08-06 19:04:08 +00:00
nickysn
5c8cfdf958
+ override MakeExecutable for the WASI target (not working yet, clone of MakeSharedLibrary for now)
...
git-svn-id: branches/wasm@46295 -
2020-08-06 15:08:38 +00:00
nickysn
896efa4d77
* set exe ext of the WASI target to .wasm
...
git-svn-id: branches/wasm@46289 -
2020-08-06 14:33:11 +00:00
nickysn
6a1688d45c
* use ld_none for the internal linker for the WASM32 targets, because that's the
...
convention used by FPC for targets, that don't have an internal linker
implemented yet
git-svn-id: branches/wasm@46271 -
2020-08-05 19:30:57 +00:00
nickysn
a2a4d5473a
* use as_wasm32_wabt as external assembler, since that's what's more stable. The
...
binaryen assembler can always be selected by compiling with -Abinaryen
git-svn-id: branches/wasm@46270 -
2020-08-05 19:29:05 +00:00
nickysn
914ee08cd9
* renamed as_wasm_binaryen -> as_wasm32_binaryen and as_wasm_wabt -> as_wasm32_wabt
...
git-svn-id: branches/wasm@46264 -
2020-08-05 16:13:56 +00:00
nickysn
9a0a7b42cb
* changed the long name of the WASI target
...
git-svn-id: branches/wasm@46262 -
2020-08-05 16:09:46 +00:00
nickysn
bccbcc8594
* short name of the WASI target changed to 'Wasi'
...
git-svn-id: branches/wasm@46261 -
2020-08-05 16:07:52 +00:00
nickysn
080aa1ca74
+ added target WASI, clone of the 'WASM' target
...
git-svn-id: branches/wasm@46259 -
2020-08-05 15:36:08 +00:00
nickysn
92f6840721
* more wasm -> wasm32 renames
...
git-svn-id: branches/wasm@46257 -
2020-08-05 14:44:34 +00:00
nickysn
4a74238a0d
* system_wasm_wasm32 renamed system_wasm32_wasm
...
git-svn-id: branches/wasm@46256 -
2020-08-05 14:32:41 +00:00
nickysn
62cb7c2d12
* synchronized with trunk
...
git-svn-id: branches/wasm@46214 -
2020-08-03 21:15:39 +00:00
nickysn
5df473f7de
[PATCH 83/83] using wasa assembler instead of wat2wasm. using assembler symbols to identify weak symbols (sub functions and __stack_top for regular units). Getting rid of wasmtool use wabt text output alignment with tabs
...
From 11b08b2747e7e11ef6f18a70eca2bb94009c8d3d Mon Sep 17 00:00:00 2001
From: Dmitry Boyarintsev <skalogryz.lists@gmail.com>
Date: Thu, 9 Apr 2020 13:48:36 -0400
git-svn-id: branches/wasm@45960 -
2020-07-29 19:23:50 +00:00
nickysn
5d62ef7ca1
[PATCH 82/83] replacing the $EXE for executable name
...
From 5e9a77b04b54e059375fedcb75b8eb3e34aba695 Mon Sep 17 00:00:00 2001
From: Dmitry Boyarintsev <skalogryz.lists@gmail.com>
Date: Tue, 26 Nov 2019 10:50:37 -0500
git-svn-id: branches/wasm@45959 -
2020-07-29 19:22:54 +00:00
nickysn
b81bc87120
[PATCH 81/83] fix the use of sharedlibname to exe name
...
From b9a718eb8a2aecb209dea027690f6f8b99bf0b88 Mon Sep 17 00:00:00 2001
From: Dmitry Boyarintsev <skalogryz.lists@gmail.com>
Date: Tue, 26 Nov 2019 10:09:12 -0500
git-svn-id: branches/wasm@45958 -
2020-07-29 19:22:01 +00:00
nickysn
d633176293
[PATCH 60/83] adding static linking
...
From fec5de9f0ad5c701407c765bea2af1da2403438a Mon Sep 17 00:00:00 2001
From: Dmitry Boyarintsev <skalogryz.lists@gmail.com>
Date: Fri, 27 Sep 2019 16:45:45 -0400
git-svn-id: branches/wasm@45937 -
2020-07-29 19:05:40 +00:00
nickysn
a893f06813
[PATCH 55/83] minor fixes and cleanups for the wasm target ( #1 )
...
* wasm: add support to the Makefile.fpc files. Makefiles needs to be regen'd
* wasm: include fpcdefs.inc in all units
* wasm: one more missing fpcdefs.inc
* wasm: define some system macro defaults
* + increase the size of some tsysteminfo fields, as wasm uses longer names, this fixes some warnings
* wasm: fixed mkwasmreg program name
* wasm: don't override MakeCmdLine, the inherited function serves us just fine, as it also replaces . Also fixes a warning about result being uninitialized
From 3f1ed3fd157d3ed217ef8845ade8e3e3630f424b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?K=C3=A1roly=20Balogh?= <charlie@amigaspirit.hu>
Date: Mon, 23 Sep 2019 04:08:46 +0200
git-svn-id: branches/wasm@45932 -
2020-07-29 19:02:27 +00:00
nickysn
92b1926aa3
[PATCH 53/83] change import symbols writing to be based on unit definitions
...
From 5dfeb66f8a39593a4123764fb51d7bfe2e6d44e6 Mon Sep 17 00:00:00 2001
From: Dmitry Boyarintsev <skalogryz.lists@gmail.com>
Date: Sat, 21 Sep 2019 14:21:23 -0400
git-svn-id: branches/wasm@45930 -
2020-07-29 18:59:57 +00:00
nickysn
052a35ae45
[PATCH 51/83] adding support for imported functions
...
From c027579d00902e2347ee3ad05092145194ccf350 Mon Sep 17 00:00:00 2001
From: Dmitry Boyarintsev <skalogryz.lists@gmail.com>
Date: Fri, 20 Sep 2019 16:48:12 -0400
git-svn-id: branches/wasm@45928 -
2020-07-29 18:58:28 +00:00
nickysn
690d90b1b4
[PATCH 50/83] remove debugging message
...
From 508c97bae55983a762632c2effd5bf3cf8799b94 Mon Sep 17 00:00:00 2001
From: Dmitry Boyarintsev <skalogryz.lists@gmail.com>
Date: Fri, 20 Sep 2019 11:53:08 -0400
git-svn-id: branches/wasm@45927 -
2020-07-29 17:59:42 +00:00
nickysn
0275232f16
[PATCH 37/83] update writing out of symbols, using FPC mangled names
...
From 0158592d68b22162f95cfdf07f0219cce8c262e8 Mon Sep 17 00:00:00 2001
From: Dmitry Boyarintsev <skalogryz.lists@gmail.com>
Date: Mon, 16 Sep 2019 16:00:20 -0400
git-svn-id: branches/wasm@45914 -
2020-07-29 17:38:18 +00:00
nickysn
e7fb972943
[PATCH 24/83] adding the exporter and a dummy linker that always agrees for library linkage
...
From 2dda072411fa93391a8b20866e6ffac4eca9500d Mon Sep 17 00:00:00 2001
From: Dmitry Boyarintsev <skalogryz.lists@gmail.com>
Date: Wed, 11 Sep 2019 15:00:49 -0400
git-svn-id: branches/wasm@45901 -
2020-07-29 17:06:12 +00:00
nickysn
00aa60f576
[PATCH 22/83] specifying linker target for wasm
...
From a347bf7b0562f05eb7e02dd2a5bfc56c17eb6557 Mon Sep 17 00:00:00 2001
From: Dmitry Boyarintsev <skalogryz.lists@gmail.com>
Date: Wed, 11 Sep 2019 14:58:37 -0400
git-svn-id: branches/wasm@45899 -
2020-07-29 17:04:28 +00:00
nickysn
6e7bb5927e
[PATCH 04/83] update for Wasm target. adapting Karoly's changes from webassembly branch
...
From 8acd7baf8d14236dc12781dd15bac188581ccecf Mon Sep 17 00:00:00 2001
From: Dmitry Boyarintsev <skalogryz.lists@gmail.com>
Date: Thu, 29 Aug 2019 15:09:58 -0400
git-svn-id: branches/wasm@45881 -
2020-07-29 16:28:18 +00:00
nickysn
184c559496
[PATCH 03/83] adding WASM specific files
...
From 3e72f04bc65f3da24efdf55a3102ef21479ff567 Mon Sep 17 00:00:00 2001
From: Dmitry Boyarintsev <skalogryz.lists@gmail.com>
Date: Wed, 28 Aug 2019 17:01:46 -0400
git-svn-id: branches/wasm@45880 -
2020-07-29 16:06:57 +00:00
Jonas Maebe
eb7ba1690e
* mark all external assemblers using an LLVM tool using af_llvm
...
+ added support for constructing target triplets
* pass "-target triplet" when using an LLVM assembler
o removed no longer needed $DARWINVERSION and $ARCH parameters
* consistently use as_clang_gas when clang is used to assembler GAS-style
assembly, and rename as_llcm_clang to as_clang_llvm (for consistency)
* support pipe assembling when using clang on *nix in all cases
git-svn-id: trunk@45807 -
2020-07-19 14:30:35 +00:00
pierre
bbd8fdcd81
Add MACOS to extradefines field of tsysteminfo for m68k-macosclassic and powerpc-macosclassic
...
git-svn-id: trunk@45774 -
2020-07-12 11:56:16 +00:00
Jonas Maebe
e7d1a77f9a
* rename the ARM/AArch64-Darwin targets to ARM/AArch64-iOS
...
* rename the m68k/PowerPC-MacOS targets to m68k/PowerPC-MacOSClassic
* repurpose the AArch64/Darwin target for AArch64/macOS
o make AArch64-Darwin default target for a hosted AArch64-Darwin compiler
git-svn-id: trunk@45758 -
2020-07-10 21:52:24 +00:00
florian
58dcbab10e
* (modified) patch by Michael Ring from the mailing list to fix linking for arm-freertos
...
git-svn-id: trunk@45730 -
2020-07-04 15:03:21 +00:00
florian
c29a0d029b
* reverted some stuff accidently committed in r45704
...
git-svn-id: trunk@45710 -
2020-06-28 20:33:10 +00:00
florian
4bacec0ee3
* building for arm fixed
...
git-svn-id: trunk@45704 -
2020-06-27 19:59:27 +00:00
florian
225b06e84a
* Xtensa: patch by Christo Crause: add IDF_PATH variable, read from the appropriate environment variable, part of #37242
...
git-svn-id: trunk@45698 -
2020-06-26 20:16:44 +00:00
nickysn
e41912b076
* limit the ZX Spectrum programs address space up to $FDFC, because the RTL now
...
installs an interrupt handler at $FDFD
git-svn-id: trunk@45678 -
2020-06-22 14:13:54 +00:00
svenbarth
4ec76072b4
* ensure that the BSS section for MSX-DOS is correctly initialized to 0
...
git-svn-id: trunk@45642 -
2020-06-13 09:36:18 +00:00
nickysn
dfa736bdca
+ add the _BSSEND section after the _BSS section
...
git-svn-id: trunk@45619 -
2020-06-07 22:17:47 +00:00
svenbarth
85149ab9a4
* change exe extension for MSX-DOS from exe to com
...
git-svn-id: trunk@45602 -
2020-06-06 18:20:40 +00:00
svenbarth
921e73ab0c
+ add compiler support for the Z80 MSX-DOS target
...
git-svn-id: trunk@45596 -
2020-06-06 17:16:20 +00:00
svenbarth
bf96709e39
* with ihx2tzx now also supporting binary output it makes sense to rename it to something more generic
...
git-svn-id: trunk@45594 -
2020-06-06 17:16:08 +00:00
nickysn
f5489b5678
+ allow specifying the program load address for the ZX Spectrum target via the -WB option
...
git-svn-id: trunk@45581 -
2020-06-03 20:09:27 +00:00
nickysn
d1377777be
+ enabled the ZX Spectrum internal linker
...
git-svn-id: trunk@45579 -
2020-06-03 19:36:41 +00:00
nickysn
84cd9e129b
+ ZX Spectrum internal linker: invoke the ihx2tzx to postprocess the ihx file,
...
produced by the internal linker (in the future, the code of this utility may
be integrated into the compiler)
* changed the exe extension of ZX Spectrum to '.tzx'
git-svn-id: trunk@45578 -
2020-06-03 19:33:03 +00:00
nickysn
3023a9f0e2
- removed the GetCode/Data/BssSize overrides in the ZX Spectrum internal linker,
...
since the default implementation, inherited from parent now works
git-svn-id: trunk@45576 -
2020-06-03 15:39:28 +00:00
nickysn
4a5a2f5ba2
+ set IMAGEBASE in the Z80 internal linker script
...
git-svn-id: trunk@45568 -
2020-06-02 23:01:07 +00:00
nickysn
996ab2feba
* renamed some REL sections to follow a similar naming convention
...
git-svn-id: trunk@45566 -
2020-06-02 22:44:57 +00:00
nickysn
a91b42bd8d
+ add .text, .data and .bss exe sections and define the entry point in the ZX Spectrum internal linker script
...
git-svn-id: trunk@45560 -
2020-06-01 22:37:37 +00:00
nickysn
996eaf16b3
+ override TInternalLinkerZXSpectrum.GetCode/Data/BssSize to avoid access violation error
...
git-svn-id: trunk@45550 -
2020-06-01 14:02:10 +00:00
nickysn
7eb782446e
+ create a linker script for the ZX Spectrum internal linker
...
git-svn-id: trunk@45549 -
2020-06-01 13:54:27 +00:00
nickysn
b2714052d1
+ override TInternalLinkerZXSpectrum.InitSysInitUnitName
...
git-svn-id: trunk@45546 -
2020-06-01 13:10:39 +00:00
nickysn
4a296c9f5d
* enable the Z80 internal linker (not working yet) if the compiler is compiled with the Z80_INTERNAL_LINKER define
...
git-svn-id: trunk@45542 -
2020-05-31 19:39:12 +00:00
nickysn
2353b1adee
+ started work on the Z80 internal linker
...
git-svn-id: trunk@45528 -
2020-05-29 18:13:18 +00:00
nickysn
362d2b50df
+ enable the Z80 internal assembler
...
git-svn-id: trunk@45493 -
2020-05-25 00:32:55 +00:00
florian
4559620efa
* patch by Reynaldo to generate kernel image for the raspi2 embedded port, resolves #27052
...
git-svn-id: trunk@45365 -
2020-05-14 21:16:12 +00:00
florian
a4695a7015
* xtensa-embedded: fix setting of the fpu and abi
...
git-svn-id: trunk@45270 -
2020-05-05 20:41:36 +00:00
florian
a61e18091a
* compilation with -Oodfa fixed
...
git-svn-id: trunk@45218 -
2020-05-02 09:29:36 +00:00
nickysn
950c1d1693
+ enable the Z80 internal asm (which doesn't work, yet) if the compiler is compiled with -dZ80_INTERNAL_ASM
...
git-svn-id: trunk@45215 -
2020-05-02 02:35:03 +00:00
Károly Balogh
695a260ff8
zxspectrum: added support for linking via vlink, and for pascal sysinit code. also some cleanup in the linker code
...
git-svn-id: trunk@45169 -
2020-04-29 01:32:48 +00:00
nickysn
573d69c8fe
* unfortunately tf_smartlink_sections is mutually exclusive with
...
tf_smartlink_library, and defining both breaks sdasz80, so put this behind
ifdef Z80_SMARTLINK_SECTIONS
git-svn-id: trunk@45153 -
2020-04-28 15:14:39 +00:00
Károly Balogh
23fc0fe66a
z80: added quick & dirty vasm assembler support to the target
...
git-svn-id: trunk@45152 -
2020-04-28 01:23:31 +00:00
nickysn
a857e60dc1
* tsystemcpu.cpu_sys_z80 renamed .cpu_z80 for consistency with the other values in the enum.
...
git-svn-id: branches/z80@45140 -
2020-04-27 15:50:29 +00:00
nickysn
085fdcf3ab
* moved the ZX Spectrum program load address lower, so we could fit more code and data
...
git-svn-id: branches/z80@45093 -
2020-04-26 12:30:05 +00:00
nickysn
55f12aac03
+ added the tf_no_objectfiles_when_smartlinking target flag to z80-zxspectrum and z80-embedded
...
git-svn-id: branches/z80@45083 -
2020-04-26 10:22:07 +00:00
nickysn
b1f7770845
+ enable tf_smartlink_library and support library-based smartlinking on the z80-embedded target
...
git-svn-id: branches/z80@45082 -
2020-04-26 10:19:06 +00:00
nickysn
f74d7f1059
* switch back to using an unscripted ar for the ZX Spectrum target
...
git-svn-id: branches/z80@45081 -
2020-04-26 10:11:20 +00:00
nickysn
f6ab9729fb
* fixed writing sdcc-sdldz80 library files to the linker script
...
git-svn-id: branches/z80@45077 -
2020-04-25 21:09:56 +00:00
nickysn
fdbf1f4b7f
+ supported scripted sdcc-sdar
...
git-svn-id: branches/z80@45073 -
2020-04-25 15:39:46 +00:00
nickysn
8bd38e0e29
+ added new ar - sdcc-sdar
...
git-svn-id: branches/z80@45072 -
2020-04-25 15:28:35 +00:00
nickysn
3580c53b05
+ enabled library-based smart linking for the ZX Spectrum target (not fully working yet)
...
git-svn-id: branches/z80@45071 -
2020-04-25 14:09:38 +00:00
nickysn
86643f8a34
* synchronized with trunk
...
git-svn-id: branches/z80@44981 -
2020-04-21 23:36: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
3af74d2fd2
+ implement initial compiler support for Win64 on Aarch64
...
git-svn-id: trunk@44914 -
2020-04-21 06:04:22 +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
nickysn
168c009bc3
- removed the 'sdcc-' prefix of sdasz80 and sdldz80
...
git-svn-id: branches/z80@44900 -
2020-04-20 23:50:45 +00:00
nickysn
d57ffc4745
* changed the object file format for z80-embedded and z80-zxspectrum to .rel
...
git-svn-id: branches/z80@44899 -
2020-04-20 23:36:15 +00:00
nickysn
2f68090dd6
* synchronized with trunk
...
git-svn-id: branches/z80@44898 -
2020-04-20 22:42:08 +00:00
nickysn
0f323df7a3
* synchronized with trunk
...
git-svn-id: branches/z80@44873 -
2020-04-19 21:10:31 +00:00
florian
8ac8c79a71
+ initial support for arm-freertos largely based on patch by Michael Ring
...
git-svn-id: trunk@44871 -
2020-04-19 20:59:52 +00:00
nickysn
77058d0877
+ write the origin to the linker map file
...
git-svn-id: branches/z80@44859 -
2020-04-19 16:20:29 +00:00
nickysn
e72a5314eb
- cleaned up some of the commented out code from t_zxspectrum
...
git-svn-id: branches/z80@44855 -
2020-04-19 15:11:25 +00:00
nickysn
b85f62a3e1
+ invoke the ihx2tzx utility after successful linking for the ZX Spectrum platform, in order to produce
...
a .tzx file (that's a ZX Spectrum tape file format, used and supported by emulators)
git-svn-id: branches/z80@44854 -
2020-04-19 15:10:05 +00:00
nickysn
4b32780516
+ set the program origin (i.e. the load address) and pass it to the linker for the ZX Spectrum target
...
git-svn-id: branches/z80@44853 -
2020-04-19 15:02:22 +00:00
florian
7eff3adbcb
* adapted xtensa-freertos to work with the currently stable ESP-IDF 4.0, partially based on a patch by Michael Ring
...
git-svn-id: trunk@44850 -
2020-04-19 13:28:42 +00:00
nickysn
034ac3be18
* fixed warning in t_zxspectrum
...
git-svn-id: branches/z80@44831 -
2020-04-19 04:48:12 +00:00
nickysn
4b11433d63
* fixed warning in t_embed
...
git-svn-id: branches/z80@44819 -
2020-04-19 01:40:16 +00:00
nickysn
3deeff689a
+ added a ZX Spectrum target to the compiler
...
git-svn-id: branches/z80@44815 -
2020-04-19 01:09:03 +00:00
nickysn
1cfbae82c6
* synchronized with trunk
...
git-svn-id: branches/z80@44710 -
2020-04-12 20:45:34 +00:00
florian
9d7261a60b
* make eabihf/eabi changeable at compilation time
...
git-svn-id: trunk@44706 -
2020-04-12 18:05:49 +00:00
nickysn
ca77f07013
* fixed offset to procedure/function parameters
...
git-svn-id: branches/z80@44674 -
2020-04-09 23:48:47 +00:00
nickysn
692ec2fcba
* synchronized with trunk
...
git-svn-id: branches/z80@44623 -
2020-04-06 22:14:42 +00:00
nickysn
9922956115
* use the sdcc-sdldz80 linker instead of sdcc-sdld on the Z80
...
git-svn-id: branches/z80@44616 -
2020-04-05 22:33:20 +00:00
florian
e8fabb752a
+ basic xtensa-linux support in the compiler
...
git-svn-id: trunk@44611 -
2020-04-05 21:12:12 +00:00
nickysn
6dcc12f19b
* use the .ihx file name, instead of .elf for the z80-embedded output, because it is in Intel hex
...
format, not ELF
git-svn-id: branches/z80@44608 -
2020-04-05 20:51:54 +00:00
nickysn
891939d7ea
+ add the -n option first to the sdcc-sdld linker, so it doesn't echo all the data on the screen. For
...
debugging purposes, this can be overriden with the -k-p fpc option.
git-svn-id: branches/z80@44607 -
2020-04-05 20:50:31 +00:00
nickysn
b1047523c8
* moved $MAP earlier in the command line of sdcc-sdld
...
git-svn-id: branches/z80@44606 -
2020-04-05 20:48:37 +00:00
nickysn
9d5a07a59a
+ allow passing extra options to the sdcc-sdld linker via the -k option
...
git-svn-id: branches/z80@44605 -
2020-04-05 20:36:42 +00:00
nickysn
5b0f177b62
+ create linker map file generation added for sdcc-sdld
...
git-svn-id: branches/z80@44604 -
2020-04-05 20:32:25 +00:00
nickysn
77406b1560
* delete the linker response file after linking with sdld
...
git-svn-id: branches/z80@44603 -
2020-04-05 20:26:53 +00:00
nickysn
e73a57652f
+ initial support for the sdcc-sdld linker for the z80-embedded target
...
git-svn-id: branches/z80@44602 -
2020-04-05 17:46:06 +00:00
nickysn
87eae35e2f
* synchronize with trunk
...
git-svn-id: branches/z80@44584 -
2020-04-04 22:54:29 +00:00
Károly Balogh
3509d277d0
amiga: use -mtype vlink argument instead of -sc -sd when doing section gc. this prevents merging the bss section into the data section and is more compatible with pre-v2.0 OS versions. needs vlink 0.16b or newer
...
git-svn-id: trunk@44559 -
2020-04-04 11:08:45 +00:00
nickysn
50e5b07568
* synchronize with trunk
...
git-svn-id: branches/z80@44503 -
2020-04-01 22:43:55 +00:00
florian
1e0640c9e9
* Xtensa: FreeRTOS uses windowed calling convention
...
git-svn-id: trunk@44493 -
2020-04-01 20:08:21 +00:00
nickysn
a581ca4dce
* synchronized with trunk
...
git-svn-id: branches/z80@44474 -
2020-03-31 22:00:40 +00:00
florian
aab0884182
+ Xtensa: generate all helper files to fpc can successfully compile a single program
...
git-svn-id: trunk@44461 -
2020-03-31 19:33:10 +00:00
nickysn
3e3942e324
* synchronize with trunk
...
git-svn-id: branches/z80@44458 -
2020-03-31 19:18:42 +00:00
Károly Balogh
8bdcf4273d
* darwin: remove some leftover resource-spec structures from i_bsd, clean up some related darwin specific int/ext resource handling in options
...
git-svn-id: trunk@44455 -
2020-03-31 04:57:08 +00:00
nickysn
377f52ee69
+ started work on the sdcc-sdasz80 asm backend
...
git-svn-id: branches/z80@44445 -
2020-03-30 23:31:04 +00:00
nickysn
48b4cc34cb
* synchronized with trunk
...
git-svn-id: branches/z80@44414 -
2020-03-29 23:04:40 +00:00
nickysn
70abc8ce44
* switch to z80asm (instead of gas, which doesn't support z80) for system_z80_embedded
...
git-svn-id: branches/z80@44409 -
2020-03-29 19:52:51 +00:00
Jonas Maebe
10b15628ab
* split i/t_darwin from i/t_bsd, as they don't have that much in common
...
any more
git-svn-id: trunk@44407 -
2020-03-29 18:27:27 +00:00
florian
391512546e
+ initial FreeRTOS RTL support, largely based on the Embedded target, limited to Xtensa so far
...
git-svn-id: trunk@44400 -
2020-03-29 17:13:45 +00:00
nickysn
755fe97c51
* synchronize with trunk
...
git-svn-id: branches/z80@44397 -
2020-03-29 16:24:32 +00:00
Jonas Maebe
3b8979210d
* check target system instead of using an ifdef
...
git-svn-id: trunk@44394 -
2020-03-29 14:52:41 +00:00
nickysn
fd9f3a43ce
+ added cpu_sys_z80 to the tsystemcpu enum. Name is not cpu_z80, because that
...
conflicts with tcputype.
git-svn-id: branches/z80@44393 -
2020-03-29 14:25:53 +00:00
florian
2a957e77bf
+ Xtensa: initial implementation of tcgcpu.g_proc_entry
...
git-svn-id: trunk@44363 -
2020-03-25 21:17:04 +00:00
florian
729425447f
+ Xtensa: basic operations for Xtensa implemented
...
git-svn-id: trunk@44324 -
2020-03-21 12:49:46 +00:00
florian
9e40d536cb
+ Xtensa: initial skeleton completed
...
+ xtensa-embedded support in the compiler
git-svn-id: trunk@44318 -
2020-03-20 22:34:33 +00:00
svenbarth
9c088bda6a
* fix for Mantis #36706 : only link a library against the dynamic loader if we're not linking against the C library anyway
...
Note: I did not yet find a case where we *do* need to link a library against the loader; this will have to be investigated further, but for 3.2.0 this is safest
git-svn-id: trunk@44256 -
2020-03-02 22:04:36 +00:00
pierre
346118187b
Fix linking error, in which libc.so.6 is not found on aarch64-linux when libdl.so is loaded, by adding appropriate directory
...
git-svn-id: trunk@44215 -
2020-02-19 15:33:11 +00:00
florian
36058ca4d4
* based on a patch by Christo Crause: more compiler fixes for avrtiny, resolves #36646
...
git-svn-id: trunk@44103 -
2020-02-02 20:35:29 +00:00
florian
0af71da9cc
* armhf/armel aligns sections to 16 byte, so allow a maximum c alignment of 16
...
git-svn-id: trunk@44087 -
2020-02-01 22:31:12 +00:00
florian
6b47d9d9ed
* safecall support is meanwhile generic, so enabled for all linux targets
...
git-svn-id: trunk@44076 -
2020-01-31 21:58:49 +00:00
yury
1b3a3a7983
* Removed lot of unused local vars. It is useful to turn on the notes in options. :)
...
git-svn-id: trunk@44053 -
2020-01-28 18:45:33 +00:00
florian
670c61e760
* patch by Christo Crause: support for megaAVR 0 and tinyAVR 0/1, #36616 , part 1/3
...
git-svn-id: trunk@44036 -
2020-01-26 14:35:26 +00:00
florian
7b4292c94e
* patch by Robert Roland to support the RaspberryPi 2 as a bare metal embedded target, resolves #35236
...
git-svn-id: trunk@44027 -
2020-01-23 21:14:49 +00:00
yury
392fc0b637
* android: Changed additions to the linker script to prevent misalignment of the .data section. It fixes crash when linking using recent versions of LD where the "relro" option is default. Issue #35641 .
...
* android: Always pass "-z relro" to the linker.
git-svn-id: trunk@44002 -
2020-01-19 20:31:54 +00:00
Jeppe Johansen
2678522db5
- RISC-V: Add controller types for common RV32 MCUs.
...
- Adds initial controller units for these MCUs.
Code contributed by Michael Ring
git-svn-id: trunk@43935 -
2020-01-13 22:54:26 +00:00
florian
9926eb8dc6
* patch by Christo Crause: Passing a file name with extension to cross compiler
...
with -o causes error, fixed, resolves #36562
git-svn-id: trunk@43921 -
2020-01-12 20:57:52 +00:00
Jeppe Johansen
89a961f960
* Add support for generating map files for embedded target.
...
git-svn-id: trunk@43866 -
2020-01-05 17:00:50 +00:00
svenbarth
4ad7d552a1
* increase support for multilib binutils for RISC V by passing the correct ABI to the linker
...
git-svn-id: trunk@43789 -
2019-12-25 15:23:25 +00:00
florian
a20209e691
+ tf_init_final_units_by_calls
...
* arm-embedded generates direct calls for unit init/final now as well
git-svn-id: trunk@43771 -
2019-12-24 16:14:30 +00:00
florian
fe7d7aa1e7
* patch by Alfred to fix building on DragonFly OS, resolves #36450
...
git-svn-id: trunk@43696 -
2019-12-17 21:57:09 +00:00
florian
266daa62f1
* updated arm linker script as proposed by Alfred, resolves #36395
...
git-svn-id: trunk@43651 -
2019-12-05 20:07:16 +00:00
Jonas Maebe
54d3c26e27
* renamed abi_linux386_sysv to abi_i386_dynalignedstack, and also use it
...
for Darwin-based i386 platforms
git-svn-id: trunk@43650 -
2019-12-05 19:38:01 +00:00
florian
bdd36d20ac
* patch by Alfred: remove superfluous linker script entry, resolves #36345
...
git-svn-id: trunk@43570 -
2019-11-24 12:16:29 +00:00
Jonas Maebe
c22d39bcdf
* fixed linking on NetBSD/m68k after r36168
...
* fixed linking on target for NetBSD/m68k, and when cross-compiling for
Darwin from Windows after r36168
* enabled the use of the "-filelist" linker option for Darwin in all
cases (mantis #36273 )
git-svn-id: trunk@43485 -
2019-11-15 20:31:41 +00:00
florian
f20e6ff323
* update generic linker script
...
git-svn-id: trunk@43426 -
2019-11-09 16:58:58 +00:00
pierre
7d12e8cc6d
Avoid warnings for m68k compiler
...
git-svn-id: trunk@43391 -
2019-11-05 10:00:48 +00:00
Károly Balogh
421b06affe
morphos: in SDK 3.14, the binutils is finally upgraded to 2.32 (from 2.9.1), which makes section smartlinking working with binutils, and also has finally properly working stabs relocations for lineinfo, etc. so it's the default again both cross and native compilations
...
git-svn-id: trunk@43313 -
2019-10-26 22:24:00 +00:00
Jonas Maebe
6483b3f5e3
* fixed opt-in sysroot substitution again, renamed the three-argument version
...
TSearchPathList.AddPath() to AddLibraryPath() to make it clear it's only
to be used for adding library search paths (and replaced one case where
it was used for a source file search path with a call to the
two-argument version)
* also added some missing '=' prefixes to built-in library search paths,
and fixed wrong DirectoryExists checks in t_linux in case of using
a sysroot, cross-compiling or linking on target
git-svn-id: trunk@43312 -
2019-10-26 13:48:30 +00:00
Jonas Maebe
78fb35525f
* change convention for searching sysroot library paths to be the same as the
...
one used by GNU ld: only search for library paths in the sysroot if they
are built into the compiler or start with "=". Previously, all
user-provided library paths were also searched in the sysroot
(mantis #36198 )
git-svn-id: trunk@43279 -
2019-10-20 17:26:44 +00:00
pierre
9d765af693
Fix parsing error in GNU linker script, KEEP needs braces
...
git-svn-id: trunk@43197 -
2019-10-14 16:04:02 +00:00
florian
fb91899457
* adapted 16 byte alignment handling on linux: it is now assumed that the callee tries to clear the stack, so in the caller, the stack is re-adjusted
...
git-svn-id: trunk@43176 -
2019-10-12 21:51:13 +00:00
florian
35e11cd6d4
* several linux targets switches from stabs to dwarf
...
git-svn-id: trunk@43135 -
2019-10-05 20:48:32 +00:00
florian
df4ec9e8e3
* arm-linux uses dwarf debug info by default
...
git-svn-id: trunk@43133 -
2019-10-05 20:48:30 +00:00
florian
f6667a5143
* we have to use __tls_get_addr from the dyn. linker lib else tls on programs with pure pascal dyn. libraries fail
...
git-svn-id: trunk@43069 -
2019-09-25 21:19:01 +00:00
florian
bfd83911e4
* set stack alignment for i386-linux to 16 byte boundaries, this implies a fixed stack layout inside the subroutine code as well
...
git-svn-id: trunk@43014 -
2019-09-15 17:17:33 +00:00
nickysn
ae953214ee
* fixed quoting of the "description" wlink option on Windows
...
git-svn-id: trunk@42659 -
2019-08-12 12:58:16 +00:00
nickysn
817ec5e6f2
+ allow creating win16 dlls with the wlink external linker as well
...
git-svn-id: trunk@42638 -
2019-08-10 02:11:25 +00:00
nickysn
4cd8193c79
+ enable the ISSHAREDLIBRARY option for the win16 internal linker when creating a dll
...
git-svn-id: trunk@42636 -
2019-08-10 01:53:29 +00:00
nickysn
238c9e576c
+ pass the description option to wlink to set the module description string when
...
using the external linker on the win16 target
git-svn-id: trunk@42633 -
2019-08-10 00:18:06 +00:00
nickysn
7e78fc1d7f
* strip the '.dll' extension from the library name when creating import
...
libraries as well. This ensures that NewExe binaries, created by the external
linker don't have the '.dll' extension in them.
git-svn-id: trunk@42618 -
2019-08-09 15:03:22 +00:00
nickysn
b739d79f9b
* combine the data, bss, stack and heap into the same NewExe segment
...
git-svn-id: trunk@42566 -
2019-08-02 16:53:16 +00:00
nickysn
83afeb2e93
+ added dummy overrides for TInternalLinkerWin16.GetCodeSize, .GetDataSize and
...
.GetBssSize, because the default ones crash
git-svn-id: trunk@42554 -
2019-08-01 16:49:08 +00:00
nickysn
2c4c34ef9b
+ split the win16 executable into sections
...
git-svn-id: trunk@42547 -
2019-07-31 15:09:02 +00:00
florian
26acc8fb2a
* make stack non executable on arm-linux
...
git-svn-id: trunk@42539 -
2019-07-30 21:04:31 +00:00
nickysn
99af7f2781
* set sharedlibext for win16 to '.dll'
...
git-svn-id: trunk@42533 -
2019-07-30 15:27:44 +00:00
nickysn
db83612b2c
+ enable the win16 internal linker if the compiler is compiled with the
...
WIN16_INTERNAL_LINKER define. Since the win16 internal linker isn't completed
yet, this define is not enabled by default.
git-svn-id: trunk@42498 -
2019-07-26 14:19:33 +00:00