diff options
Diffstat (limited to 'pw_build/bazel_internal/test.cc')
-rw-r--r-- | pw_build/bazel_internal/test.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/pw_build/bazel_internal/test.cc b/pw_build/bazel_internal/test.cc index 6498ae9a9..fb7f63932 100644 --- a/pw_build/bazel_internal/test.cc +++ b/pw_build/bazel_internal/test.cc @@ -12,6 +12,13 @@ // License for the specific language governing permissions and limitations under // the License. +// This symbol is defined by the linker script. If the linker script is not +// correctly used, this will be missing. +extern int _linker_defined_symbol; + // This file is intentionally very simple and is used only to test that the // linker script generator works as expected. -int main() { return 0; }
\ No newline at end of file +int main() { + volatile int linker_defined_pointer = _linker_defined_symbol; + return 0; +} |