nickysn
fb31be4e4a
* changed the default debug format for i8086-msdos from stabs to dwarf2
...
git-svn-id: trunk@30635 -
2015-04-17 23:47:31 +00:00
Jeppe Johansen
65a69129c5
Add initial support for STM32F429 core
...
git-svn-id: trunk@30599 -
2015-04-14 21:55:37 +00:00
florian
3d0b1020d7
* proper alignment constants for avr-embedded
...
git-svn-id: trunk@30596 -
2015-04-14 20:47:47 +00:00
Károly Balogh
68a25e154a
Amiga/MorphOS: enabled resource support, to match AROS in features
...
git-svn-id: trunk@30565 -
2015-04-13 00:49:00 +00:00
nickysn
38c17305d3
- removed tf_smartlink_sections flags from the msdos target
...
git-svn-id: trunk@30561 -
2015-04-12 22:11:21 +00:00
florian
1f93c3aaa1
* get memory sizes on avr-embedded from controller info records
...
git-svn-id: trunk@30387 -
2015-03-29 21:41:52 +00:00
Jonas Maebe
bd203a5b57
* synchronised with trunk till r30240
...
git-svn-id: branches/hlcgllvm@30241 -
2015-03-15 19:44:58 +00:00
Jonas Maebe
165aaea8a4
* made a separate abi entry for powerpc_darwin, as it's not exactly the same
...
as the AIX abi (especially on ppc64)
o replaced (for now) all checks for the AIX abi with a check for either the
AIX or Darwin abi
o changed the ABI of Darwin/ppc, Darwin/ppc64 and Mac OS/ppc to
abi_powerpc_darwin
git-svn-id: trunk@30202 -
2015-03-14 18:35:44 +00:00
Jonas Maebe
05f6660a25
* set the correct dynamic linker for the ppc64 ELFv2 abi
...
* specify the correct linker emulation to use for ppc64 ELFv2 little endian
* specify the correct default library directories to search for ELFv2 little
endian
git-svn-id: trunk@30194 -
2015-03-14 18:35:19 +00:00
Jonas Maebe
3946971c73
* default to ppc64le/elfv2 when compiling on a ppc64le platform
...
* default to elfv2 abi when targeting ppc64le and no abi has been specified
git-svn-id: trunk@30193 -
2015-03-14 18:35:16 +00:00
Jeppe Johansen
5f622752ce
Disable internal assembler
...
git-svn-id: branches/laksen/armiw@30179 -
2015-03-13 18:56:59 +00:00
Jeppe Johansen
914e9e7b49
Merged from trunk
...
git-svn-id: branches/laksen/armiw@30146 -
2015-03-08 12:33:46 +00:00
Jeppe Johansen
d12b913e70
Add initial support in ARM-embedded for Allwinner A20.
...
git-svn-id: trunk@30144 -
2015-03-08 12:22:57 +00:00
Legolas
ffd03563d0
* Updated Wii rtl (unicode support broken .dol executables) and libogcfpc to ver.1.8.12. Fixed a dependency to Mad library too
...
git-svn-id: trunk@30125 -
2015-03-07 21:34:51 +00:00
Jonas Maebe
67b8aceaee
* synchronized with privatetrunk till r30095
...
git-svn-id: branches/hlcgllvm@30101 -
2015-03-05 20:32:15 +00:00
Jonas Maebe
79a06b1514
+ iphonesim/x86_64 target (64 bit iOS simulator)
...
git-svn-id: trunk@29970 -
2015-02-23 22:56:09 +00:00
Jonas Maebe
60dd2d1dd5
+ register Darwin/AArch64 target
...
* pass "-arch arm64" to the linker for Darwin/AArch64
git-svn-id: trunk@29897 -
2015-02-23 22:51:44 +00:00
Jonas Maebe
493b11da06
+ Darwin/aarch64 system definition
...
git-svn-id: trunk@29877 -
2015-02-23 22:50:41 +00:00
pierre
6ce8aeed27
+ mips/mipsel libraries need PIC
...
git-svn-id: trunk@29752 -
2015-02-18 13:53:20 +00:00
Jeppe Johansen
47dbec3111
Rebase to trunk revision
...
git-svn-id: branches/laksen/armiw@29708 -
2015-02-15 16:08:18 +00:00
Jeppe Johansen
55fe3b4e77
Disable internal linker in arm-linux for now.
...
git-svn-id: branches/laksen/armiw@29707 -
2015-02-15 15:44:10 +00:00
Tomas Hajny
7e15bf6c2d
* ensure passing valid stacksize to emxbind
...
git-svn-id: trunk@29700 -
2015-02-15 01:56:08 +00:00
pierre
bc5df9bc68
Remove complicated code to try to support older GNU linker versions, before 2.21
...
git-svn-id: trunk@29647 -
2015-02-08 07:28:49 +00:00
Jeppe Johansen
7a826cc481
Fix compilation of i386-embedded target.
...
git-svn-id: trunk@29610 -
2015-02-03 00:22:51 +00:00
pierre
c5de263637
Set default assembler to elf64 writer for x86_64-solaris target
...
git-svn-id: trunk@29575 -
2015-01-29 07:40:30 +00:00
Tomas Hajny
608b14ab4e
* make sure that the stack size passed to emxbind is valid (override the value passed using $M if necessary)
...
git-svn-id: trunk@29573 -
2015-01-28 08:00:01 +00:00
florian
b98e13cd93
* ensure success is initialized
...
git-svn-id: trunk@29549 -
2015-01-25 15:16:11 +00:00
Tomas Hajny
f0132e252c
* fixed DLL importing by name
...
git-svn-id: trunk@29540 -
2015-01-24 00:35:49 +00:00
pierre
ce20dcf7a6
* Add code to try old GNU emulation if new names are not recognized
...
* Add support for map file
* Add -lc (for libc library) two times instead of only at the end.
git-svn-id: trunk@29521 -
2015-01-22 16:45:52 +00:00
pierre
aebebe4f04
i386-solaris target: Add flags for pic code uses GOT and library requires pic
...
git-svn-id: trunk@29520 -
2015-01-22 15:14:35 +00:00
florian
2c7f1c73ac
* pass -m elf_i386_sol2 to gld on i386-solaris as well, patch by H.Hartl, resolves #27265
...
git-svn-id: trunk@29501 -
2015-01-18 11:19:42 +00:00
marco
1b85962ef3
* put default libgcc path under if Dontlinkstdlibpath...
...
git-svn-id: trunk@29447 -
2015-01-12 10:34:39 +00:00
Jeppe Johansen
7390acc426
Merged from recent trunk.
...
git-svn-id: branches/laksen/armiw@29369 -
2015-01-01 23:54:40 +00:00
sergei
da8346079f
* mips-linux: Enabled tf_safecall_exceptions (it just works, no reason to keep disabled) and also tf_pic_uses_got (so that checks elsewhere in compiler set pi_needs_got flag; actual functionality is not changed because currently MIPS just forces pi_needs_got unconditionally).
...
git-svn-id: trunk@29360 -
2014-12-29 23:26:40 +00:00
florian
0a19825e25
* elf_x86_64 -> elf_x86_64_sol2, should resolve #27199
...
git-svn-id: trunk@29358 -
2014-12-29 17:57:45 +00:00
Jeppe Johansen
3ad03491ed
Add Neg as a pseudo instruction, and fix RRX pseudo code expansion.
...
Split some of the thumb code emission rules to make it easier to specify short-cut notations.
git-svn-id: branches/laksen/armiw@29345 -
2014-12-27 17:44:30 +00:00
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.
...
Switched codegeneration of VFPv2 and VFPv3 to use UAL mnemonics and syntax.
Updated VFP code in RTL to use UAL syntax too.
Added preliminary ELF support for ARM.
Added support for linking of WinCE COFF files. Should work for with a standard ARMv4-I target.
git-svn-id: branches/laksen/armiw@29247 -
2014-12-10 20:44:34 +00:00
marco
2578514853
* first dragonfly patch (existing most). Mantis #27091
...
git-svn-id: trunk@29213 -
2014-12-07 20:27:02 +00:00
pierre
016666c70f
Use pic code by default for x86_64-openbsd
...
git-svn-id: trunk@29138 -
2014-11-23 22:04:30 +00:00
pierre
82b99d09bd
Add tf_smartlink_sections for i386-bsd target
...
git-svn-id: trunk@29137 -
2014-11-23 22:01:25 +00:00
pierre
2202d60cdc
Allow use of native ld or GNU gld for AIX
...
git-svn-id: trunk@29047 -
2014-11-09 22:22:29 +00:00
Tomas Hajny
0a74c30351
* run EMX linker quietly
...
git-svn-id: trunk@29000 -
2014-11-06 12:14:00 +00:00
Tomas Hajny
a593cc2def
* fix missing space when passing additional parameters to the EMX linker
...
git-svn-id: trunk@28999 -
2014-11-06 11:42:39 +00:00
Jonas Maebe
7398f8d507
* fixed defines separator
...
git-svn-id: trunk@28877 -
2014-10-19 10:25:07 +00:00
marco
ff2186ce00
* OpenBSD gets no pie. (add -nopie)
...
git-svn-id: trunk@28736 -
2014-10-04 11:12:14 +00:00
Károly Balogh
6122db7d40
* fix warnings when compiling the compiler with DFA optimizer enabled on PowerPC
...
git-svn-id: trunk@28501 -
2014-08-20 14:31:36 +00:00
Károly Balogh
392da9e43f
* fix warnings when compiling the compiler with DFA optimizer enabled on m68k
...
git-svn-id: trunk@28499 -
2014-08-20 13:49:47 +00:00
Károly Balogh
09608a1c28
* fix warnings when compiling the compiler with DFA optimizer enabled on ARM
...
git-svn-id: trunk@28498 -
2014-08-20 13:16:58 +00:00
Károly Balogh
07ad2a04ac
* fix warnings when compiling the compiler with DFA optimizer enabled on i386
...
git-svn-id: trunk@28497 -
2014-08-20 12:28:44 +00:00
Jonas Maebe
b18ba8e85b
* syncrhonised with trunk up till r28471
...
git-svn-id: branches/hlcgllvm@28495 -
2014-08-19 20:23:11 +00:00
Károly Balogh
03a0f7b409
AROS: improved version of the previous commit, pass the stripping option to the linker instead, seems to work.
...
git-svn-id: trunk@28466 -
2014-08-19 11:30:02 +00:00
Károly Balogh
883e71f18e
AROS: stripping of executables on i386 works now
...
git-svn-id: trunk@28465 -
2014-08-19 11:03:31 +00:00
Károly Balogh
8627cc3ddb
AROS: added remark about collect-aros issue, fixed ld name for x86_64 target
...
git-svn-id: trunk@28444 -
2014-08-18 16:17:06 +00:00
Károly Balogh
2f086129e1
AROS: use collect-aros to link. also support binutils prefixes.
...
git-svn-id: trunk@28443 -
2014-08-18 14:55:02 +00:00
Károly Balogh
1410838aa7
AROS: and also add the system info/target units which were forgotten in the previous commit
...
git-svn-id: trunk@28433 -
2014-08-17 18:36:57 +00:00
Jonas Maebe
5c75b6dd6b
* synchronised with trunk up till r28402
...
git-svn-id: branches/hlcgllvm@28403 -
2014-08-13 16:04:30 +00:00
sergei
b9763d270a
+ Enabled section smartlinking for m68k-linux.
...
git-svn-id: trunk@28302 -
2014-08-02 23:00:36 +00:00
Legolas
a52e51d0b7
* Updated libndsfpc and nds linkerscript to Ver. 1.5.8
...
git-svn-id: trunk@28299 -
2014-08-02 15:23:51 +00:00
sergei
15ff2c1236
* m68k: Fixed name of ELF interpreter, and updated cprt0.as to somewhat working state. Now a "hello world" program using libc can be linked and launched, but anything more complex needs another round of fixing the parameter passing code, in order to get the stack properly balanced.
...
git-svn-id: trunk@28181 -
2014-07-07 20:08:50 +00:00
Jonas Maebe
7949bebb8d
* synchronised with r28168 of trunk
...
git-svn-id: branches/hlcgllvm@28169 -
2014-07-05 21:30:28 +00:00
Jonas Maebe
a24c81a5f8
* added llvmdatalayout for mipsel-android
...
git-svn-id: branches/hlcgllvm@28104 -
2014-07-01 16:29:54 +00:00
nickysn
9f31fcc2ca
+ added support for HeapMax in the far data i8086 memory models as well
...
git-svn-id: trunk@28051 -
2014-06-24 22:54:54 +00:00
Jeppe Johansen
0dc39b5d63
Applied patch from Michael Ring that adds some startup code for some new stm32f0 and stm32f1 controllers, and fixes naming on some LPC ARMv6m controllers.
...
git-svn-id: trunk@28009 -
2014-06-20 06:49:04 +00:00
nickysn
7cfd7a66cd
+ create a special 'heap' segment with reserved space equal to heapsize (i.e.
...
the value set by -Ch or the second parameter to the $M directive). This is
equivalent to the heapmin value in Turbo Pascal 7 and ensures that the program
has at least this amount of heap space available (otherwise DOS will show a
'not enough memory' error and will refuse to load the program).
git-svn-id: trunk@28002 -
2014-06-19 14:14:01 +00:00
nickysn
49f93b4464
* use the 'order' wlink directive to specify the segment order, instead of using
...
'option dosseg'. This allows us more flexibility in setting up the segment
order the way we like.
git-svn-id: trunk@27958 -
2014-06-14 18:04:58 +00:00
nickysn
a52d8abe38
* changed the default stack size in the i8086 far data memory models to 16 KB
...
git-svn-id: trunk@27841 -
2014-06-01 14:38:54 +00:00
Jonas Maebe
bacd303208
* synchronized with trunk up to r27758
...
git-svn-id: branches/hlcgllvm@27779 -
2014-05-12 16:12:34 +00:00
pierre
179390d63d
Use script gnu ar for go32v2 target
...
git-svn-id: trunk@27515 -
2014-04-10 16:20:14 +00:00
pierre
62b3375033
Use slash instead of backslash inside linker script to allow use of cross-linker
...
git-svn-id: trunk@27509 -
2014-04-10 13:24:42 +00:00
nickysn
510fa9596f
* add 'option quiet' to wlink to suppress its info messages
...
git-svn-id: trunk@27271 -
2014-03-24 18:13:29 +00:00
florian
b2b26f84cf
* partially merged the mips-embedded branch of Michael Ring:
...
- startup code/controller units are not merged yet
- assembler call does not pass the needed CPU type yet
git-svn-id: trunk@27188 -
2014-03-19 21:25:38 +00:00
florian
2c5a0ffc89
* make windres the default resource compiler on x86_64-win64
...
git-svn-id: trunk@27041 -
2014-03-09 10:52:10 +00:00
pierre
7b359d06c4
Use GNU ar also for x86_64 solaris
...
git-svn-id: trunk@27022 -
2014-03-07 12:39:48 +00:00
Jonas Maebe
e9268a0a14
* synchronised with trunk up till r26975
...
git-svn-id: branches/hlcgllvm@26976 -
2014-03-06 21:36:58 +00:00
Jeppe Johansen
e33550b67d
Added support for X,Y,and Z register aliases plus low/high forms, and post-incrementation in AVR assembler reader.
...
Cleaned up parameter and funcretloc information generation in AVR paramanger, and made it closer to GCC's calling convention.
Fixed a number of codegenerator bugs generating invalid or broken instructions: CP operands were swapped, a number of instructions had immediate operands, and stack frame epilogue wasn't complete.
Added a bunch of peephole optimizations that clears the generated code up a lot.
git-svn-id: trunk@26925 -
2014-03-02 15:37:24 +00:00
Károly Balogh
0591caf022
have an explicit define for OS4, so we can easily identify it in shared sources among Amiga-like systems, independent from the CPU define
...
git-svn-id: trunk@26859 -
2014-02-23 23:49:40 +00:00
yury
e0c8a4701e
* Fixed compilation for mips-linux.
...
git-svn-id: trunk@26732 -
2014-02-08 19:08:21 +00:00
yury
bb269e53ac
* mipsel-android: Don't export local symbols from executable.
...
git-svn-id: trunk@26690 -
2014-02-06 19:11:08 +00:00
yury
56b3287e29
+ Added compiler support for mipsel-android target.
...
git-svn-id: trunk@26686 -
2014-02-06 17:02:43 +00:00
pierre
9fc9f4bdba
Use new as_i8086_nasmobj as external assembler for msdos target
...
git-svn-id: trunk@26549 -
2014-01-21 00:27:42 +00:00
pierre
2a6e592fba
Handle link map for msdos wlink
...
git-svn-id: trunk@26461 -
2014-01-14 21:40:02 +00:00
Jonas Maebe
ca446b4b2a
- removed registration of x86_6432 target because it's not supported in any
...
way by the compiler (and furthermore it would have to be registerd in an
the x86_64 compiler binary, not an i386 one) (mantis #25525 )
git-svn-id: trunk@26460 -
2014-01-14 20:37:18 +00:00
pierre
291124489f
Use scripted version of wlib for go32v2 msdos smart library creation
...
git-svn-id: trunk@26444 -
2014-01-12 23:21:16 +00:00
Jeppe Johansen
d24cbbf9f5
Changed debug information to dwarf for ARM_embedded, and set local minimum alignment to 4.
...
Fixed a bug where ARMv7M targets would not use the DIV instructions.
Moved many size-optimizing Thumb2 peephole optimizations to PostPeepHoleOptsCpu. Previously those optimizations could make it impossible to reuse the shared arm peephole optimizations.
Reenabled a fixed MLA/MLS peephole optimization.
Refactored some FindRegDealloc+regLoadedWithNewValue into RegEndOfLife calls.
Fixed some broken UXTB/UXTH optimizations. Previously they would also match UXT* instructions with ROR shifter ops.
git-svn-id: trunk@26198 -
2013-12-08 16:50:15 +00:00
florian
4d5119bf1c
* fixes several issues which cause warnings by the dfa code when using it to detect uninitialized variables
...
git-svn-id: trunk@26161 -
2013-12-01 17:02:08 +00:00
florian
c357212b45
+ search crt* files also in /usr/lib/x86_64-linux-gnu, multiarch supporting distros require this
...
git-svn-id: trunk@26158 -
2013-12-01 15:39:05 +00:00
Károly Balogh
34702dbfc5
fixed staticlibprefix for Amiga and MorphOS
...
git-svn-id: trunk@26127 -
2013-11-24 04:19:59 +00:00
Károly Balogh
da3603e663
introduce HASAMIGA define to easily identify various Amiga flavors (similarly to HASUNIX)
...
git-svn-id: trunk@26123 -
2013-11-24 01:19:52 +00:00
Jonas Maebe
9573160c1a
+ llvmdatalayout field for tsysteminfo that contains the encoded data layout
...
as used by llvm for most targets (taken from clang, adapted in some cases
where we use a custom stack alignment)
git-svn-id: branches/hlcgllvm@26032 -
2013-11-11 11:14:55 +00:00
nickysn
12b1e0cbfd
+ tell wlink to add dwarf debug info to the executable when -gw2/3/4 is used
...
git-svn-id: trunk@25874 -
2013-10-27 20:30:00 +00:00
paul
d16606b04c
compiler: revert r25852 since 10.9 is already handled
...
git-svn-id: trunk@25864 -
2013-10-27 14:17:29 +00:00
florian
de2e4632c5
* if a build-id is generated, put it into flash
...
git-svn-id: trunk@25853 -
2013-10-26 14:19:14 +00:00
paul
43b9308929
compiler: also skip crt1.o for osx 10.9
...
git-svn-id: trunk@25852 -
2013-10-26 13:36:40 +00:00
Jonas Maebe
40eafc3d82
* don't try to post-process embedded executables when linking is
...
disabled
git-svn-id: trunk@25851 -
2013-10-26 10:01:05 +00:00
Jonas Maebe
a28917086b
* updated *crt1* linking logic for OS X 10.8+:
...
o don't link by default
o when generating profiling info, link gcrt1.o and specify "-no_new_main"
linker parameter
* don't use version-specific crt1.o files when targetting the
iPhoneSimulator platform
* don't link a crt1.o file when targetting iOS 6 or later
(all info from
http://llvm.org/svn/llvm-project/cfe/trunk/lib/Driver/Tools.cpp )
git-svn-id: trunk@25789 -
2013-10-14 21:38:38 +00:00
florian
304d7ef7a1
* restores atari support/rtl partially
...
git-svn-id: trunk@25699 -
2013-10-06 19:36:59 +00:00
nickysn
96a4f8e43b
* the staticlibext for i8086-msdos changed from .lib to .a; rationale:
...
1) less special cases needed in fpmkunit for i8086-msdos
2) consistency with the naming scheme on the go32v2 target
3) we didn't follow the DOS naming scheme completely anyway, e.g. we used .o
for object files, instead of .obj
git-svn-id: trunk@25641 -
2013-10-05 10:01:59 +00:00
marco
2a9916baba
* fix mantis #25129 for non OS X BSD systems. Patch by A. Cardenas Marquez
...
- crtbegin and crtend suffix handling
- crti before crtbegin
git-svn-id: trunk@25620 -
2013-10-02 09:05:32 +00:00
nickysn
a48b44cfe5
+ added a new tsystemflag tf_cld, which indicates that ts_cld should be enabled
...
by default on this target
+ tf_cld enabled for i8086-msdos (for Turbo Pascal compatibility)
git-svn-id: trunk@25595 -
2013-09-28 14:57:12 +00:00
Jonas Maebe
2c664ac6ae
* fix compatibility with new Package Management system under Haiku
...
(patch by Olivier Coursiere, mantis #25051 )
git-svn-id: trunk@25573 -
2013-09-25 20:57:41 +00:00