[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gold/20983] New: commit bfbf34de2f2 (place linker-generated section
From: |
markus at trippelsdorf dot de |
Subject: |
[Bug gold/20983] New: commit bfbf34de2f2 (place linker-generated sections by the output section name) breaks perf |
Date: |
Mon, 19 Dec 2016 17:27:12 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=20983
Bug ID: 20983
Summary: commit bfbf34de2f2 (place linker-generated sections by
the output section name) breaks perf
Product: binutils
Version: 2.28 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: gold
Assignee: ccoutant at gmail dot com
Reporter: markus at trippelsdorf dot de
CC: ian at airs dot com
Target Milestone: ---
Since:
commit bfbf34de2f27672282d4fa4c0916cc41890dcc6c
Author: Cary Coutant <address@hidden>
Date: Mon Dec 12 18:51:29 2016 -0800
When using linker scripts, place linker-generated sections by the output
section name.
I get buffer overflows when I try to use the Linux "perf" tool.
This happens, because perf tries to parse the .notes section of the kernel
and that changed with the commit above.
Before:
address@hidden linux % readelf -n vmlinux
Displaying notes found in: .notes
Owner Data size Description
GNU 0x00000009 NT_GNU_GOLD_VERSION (gold version)
Version: gold 1.12
GNU 0x00000014 NT_GNU_BUILD_ID (unique build ID
bitstring)
Build ID: 32a604503e1db2e902761c8d06989839b689b012
=============================================================================
After:
address@hidden linux % readelf -n vmlinux
Displaying notes found in: .note.gnu.build-id
Owner Data size Description
GNU 0x00000014 NT_GNU_BUILD_ID (unique build ID
bitstring)
Build ID: ce0c36a235743dc9f6f857c2eabe4bfcbb784f54
Displaying notes found in: .note.gnu.gold-version
Owner Data size Description
GNU 0x00000009 NT_GNU_GOLD_VERSION (gold version)
Version: gold 1.12
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug gold/20983] New: commit bfbf34de2f2 (place linker-generated sections by the output section name) breaks perf,
markus at trippelsdorf dot de <=
- [Bug gold/20983] commit bfbf34de2f2 (place linker-generated sections by the output section name) breaks perf, markus at trippelsdorf dot de, 2016/12/19
- [Bug gold/20983] commit bfbf34de2f2 (place linker-generated sections by the output section name) breaks perf, ccoutant at gmail dot com, 2016/12/19
- [Bug gold/20983] commit bfbf34de2f2 (place linker-generated sections by the output section name) breaks perf, cvs-commit at gcc dot gnu.org, 2016/12/19
- [Bug gold/20983] commit bfbf34de2f2 (place linker-generated sections by the output section name) breaks perf, ccoutant at gmail dot com, 2016/12/19
- [Bug gold/20983] commit bfbf34de2f2 (place linker-generated sections by the output section name) breaks perf, ccoutant at gmail dot com, 2016/12/19
- [Bug gold/20983] commit bfbf34de2f2 (place linker-generated sections by the output section name) breaks perf, markus at trippelsdorf dot de, 2016/12/20