https://sourceware.org/bugzilla/show_bug.cgi?id=32460
--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> --- (In reply to Stas Sergeev from comment #0) > Created attachment 15841 [details] > test-case > > $ objcopy --only-keep-debug libtmp.so tmp.dbg > objcopy: tmp.dbg: section `.note.gnu.property' can't be allocated in segment > 0 > LOAD: .init .plt .text .fini .note.gnu.property > It looks like your linker puts data (.note.gnu.property) in text segment. .note.gnu.property should be placed in the read-only PT_LOAD segment. Please file a bug report against your linker. > llvm-objcopy works normally. > I think I haven't seen this message > on an older binutils either. > It seems to be not an error though, > as tmp.dbg is created as the result. > So I am not sure if this is a bug and > where exactly. tmp.dbg no longer has .note.gnu.property in PT_LOAD segment. -- You are receiving this mail because: You are on the CC list for the bug.