forked from gcc-mirror/gcc
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
toaru: Add target definition for ToaruOS
- Loading branch information
Showing
6 changed files
with
54 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#undef TARGET_OS_CPP_BUILTINS | ||
#define TARGET_OS_CPP_BUILTINS() \ | ||
do { \ | ||
builtin_define_std ("toaru"); \ | ||
builtin_define_std ("unix"); \ | ||
builtin_assert ("system=toaru"); \ | ||
builtin_assert ("system=unix"); \ | ||
} while (0); | ||
|
||
#undef STARTFILE_SPEC | ||
#define STARTFILE_SPEC "%{!shared: %{!pg:crt0.o%s}} crti.o%s %{!shared:crtbegin.o%s}" | ||
|
||
#undef ENDFILE_SPEC | ||
#define ENDFILE_SPEC "%{!shared:crtend.o%s} crtn.o%s" | ||
|
||
#undef LIB_SPEC | ||
#define LIB_SPEC "%{pthread:-lpthread} -lc" | ||
|
||
#undef LINK_SPEC | ||
#define LINK_SPEC "%{shared:-shared} %{static:-static} %{!shared: %{!static: %{rdynamic:-export-dynamic} %{!dynamic-linker:-dynamic-linker /lib/ld.so}}}" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters