diff options
| author | Martin Jansa <Martin.Jansa@gmail.com> | 2021-05-12 18:45:03 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-05-13 11:34:15 +0100 |
| commit | e7ce28c8b060fc4fc84fe328275bbca87d17a3f0 (patch) | |
| tree | 67e82dac46f1a20a27f2201aaa6dac1da0b9aae6 /meta/recipes-devtools/binutils/binutils-2.36.inc | |
| parent | 0fc0804e4b6df74aa160cab75e9da944013b0db3 (diff) | |
| download | poky-e7ce28c8b060fc4fc84fe328275bbca87d17a3f0.tar.gz | |
binutils: backport DWARF-5 support for gold
* DWARF-5 is now used by default with gcc-11, causing
11.1.0/ld: internal error in format_file_lineno, at ../../gold/dwarf_reader.cc:2278
collect2: error: ld returned 1 exit status
in various projects (runc-opencontainers, libhybris, collada-dom)
* https://gcc.gnu.org/gcc-11/changes.html
For targets that produce DWARF debugging information GCC now defaults to DWARF version 5
(with the exception of VxWorks and Darwin/Mac OS X which default to version 2 and
AIX which defaults to version 4). This can produce up to 25% more compact debug
information compared to earlier versions.
To take full advantage of DWARF version 5 GCC needs to be build against binutils version 2.35.2 or higher.
When GCC is build against earlier versions of binutils GCC will still emit DWARF version 5 for
most debuginfo data, but will generate version 4 debug line tables (even when explicitly given -gdwarf-5).
The following debug information consumers can process DWARF version 5:
GDB 8.0, or higher
valgrind 3.17.0
elfutils 0.172, or higher (for use with systemtap, dwarves/pahole, perf and libabigail)
dwz 0.14
Programs embedding libbacktrace are urged to upgrade to the version shipping with GCC 11.
To make GCC 11 generate an older DWARF version use -g together with -gdwarf-2, -gdwarf-3 or -gdwarf-4.
(From OE-Core rev: d07d4d739ae17787017f771dd2068fda0e836722)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/binutils/binutils-2.36.inc')
| -rw-r--r-- | meta/recipes-devtools/binutils/binutils-2.36.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-devtools/binutils/binutils-2.36.inc b/meta/recipes-devtools/binutils/binutils-2.36.inc index 66080dfcee..d54e2a3457 100644 --- a/meta/recipes-devtools/binutils/binutils-2.36.inc +++ b/meta/recipes-devtools/binutils/binutils-2.36.inc | |||
| @@ -36,6 +36,7 @@ SRC_URI = "\ | |||
| 36 | file://0015-sync-with-OE-libtool-changes.patch \ | 36 | file://0015-sync-with-OE-libtool-changes.patch \ |
| 37 | file://0016-Check-for-clang-before-checking-gcc-version.patch \ | 37 | file://0016-Check-for-clang-before-checking-gcc-version.patch \ |
| 38 | file://0017-Add-support-for-the-DW_FORM_strx-forms-to-the-BFD-li.patch \ | 38 | file://0017-Add-support-for-the-DW_FORM_strx-forms-to-the-BFD-li.patch \ |
| 39 | file://0018-Add-DWARF-5-support-in-gold.patch \ | ||
| 39 | file://CVE-2021-20197.patch \ | 40 | file://CVE-2021-20197.patch \ |
| 40 | " | 41 | " |
| 41 | S = "${WORKDIR}/git" | 42 | S = "${WORKDIR}/git" |
