Bug 24362 - "warning: Loadable section ".note.gnu.property" outside of ELF segments" when debugging Emacs
Summary: "warning: Loadable section ".note.gnu.property" outside of ELF segments" when...
Status: NEW
Alias: None
Product: binutils
Classification: Unclassified
Component: binutils (show other bugs)
Version: 2.31
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-19 21:26 UTC by eggert
Modified: 2019-03-19 21:56 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description eggert 2019-03-19 21:26:25 UTC
I'm seeing this problem when building Emacs on Fedora 29 x86-64, which currently has GNU objcopy version 2.31.1-17.fc29 and GDB Fedora 8.2-6.fc29. To reproduce the problem:

$ wget https://ftp.gnu.org/gnu/emacs/emacs-26.1.tar.xz
$ tar xf emacs-26.1.tar.xz
$ cd emacs-26.1
$ ./configure
$ make
$ gdb src/temacs
(gdb) b main
Breakpoint 1 at 0x419ac0: file emacs.c, line 681.
(gdb) r -batch -eval t
Starting program: /home/eggert/junk/emacs-26.1/src/temacs -batch -eval t
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
...
and many more warning messages like that, which shouldn't be there.

H.J. Lu says in Bug#1553086 "It may be an objcopy bug. Please open a binutils bug" so that is what I am doing here.
Comment 1 eggert 2019-03-19 21:28:24 UTC
By "Bug#1553086" I meant this URL:

https://bugzilla.redhat.com/show_bug.cgi?id=1553086
Comment 2 H.J. Lu 2019-03-19 21:56:08 UTC
See PR 23034.   I believe this is related to PR 23035.