File tree Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ tool_specific:
30
30
- -Wl,-fatal-warnings
31
31
- -Wl,--gc-sections
32
32
- -Wl,--no-wchar-size-warning
33
+ - -Wl,--no-warn-rwx-segment
33
34
- -Wl,--print-memory-usage
34
35
pre_build_script :
35
36
- tools/pre_build_script.py
Original file line number Diff line number Diff line change 1
1
/**
2
- * @file sdk_stub .c
2
+ * @file stubs .c
3
3
* @brief
4
4
*
5
5
* DAPLink Interface Firmware
6
- * Copyright (c) 2017-2017 , ARM Limited, All Rights Reserved
6
+ * Copyright (c) 2017, 2023 , ARM Limited, All Rights Reserved
7
7
* SPDX-License-Identifier: Apache-2.0
8
8
*
9
9
* Licensed under the Apache License, Version 2.0 (the "License"); you may
@@ -25,3 +25,21 @@ __WEAK void sdk_init()
25
25
{
26
26
// Do nothing
27
27
}
28
+
29
+ /*
30
+ * Work-around for a link-time issue with Arm GNU Toolchain
31
+ * in version 11.3 and later.
32
+ */
33
+ #ifdef __GNUC__
34
+ #if ((__GNUC__ > 11 ) || \
35
+ ((__GNUC__ == 11 ) && (__GNUC_MINOR__ >= 3 )))
36
+ __WEAK void _close () {}
37
+ __WEAK void _fstat () {}
38
+ __WEAK void _getpid () {}
39
+ __WEAK void _isatty () {}
40
+ __WEAK void _kill () {}
41
+ __WEAK void _lseek () {}
42
+ __WEAK void _read () {}
43
+ __WEAK void _write () {}
44
+ #endif
45
+ #endif
You can’t perform that action at this time.
0 commit comments