summaryrefslogtreecommitdiff
path: root/zephyr/cmake/linker/ld/gcc/linker_flags.cmake
blob: b5ec8b05caa7909288bf22703d1979d786aaad41 (plain)
1
2
3
4
5
6
7
8
9
10
11
# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

if (NOT CONFIG_COVERAGE_GCOV)
  set_property(TARGET linker PROPERTY coverage -lgcov)
endif()

# GCC 11 by default emits DWARF version 5 which cannot be parsed by
# pyelftools. Can be removed once pyelftools supports v5.
add_link_options(-gdwarf-4)