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 <ccout...@gmail.com> 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: markus@x4 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: markus@x4 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-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils