public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
From: "mark at klomp dot org" <sourceware-bugzilla@sourceware.org>
To: elfutils-devel@sourceware.org
Subject: [Bug tools/28488] phdr[6]: unknown object file note type 32 with owner name '' at offset 48
Date: Fri, 22 Oct 2021 14:08:39 +0000	[thread overview]
Message-ID: <bug-28488-10460-iJ4ef3ALnr@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-28488-10460@http.sourceware.org/bugzilla/>

https://sourceware.org/bugzilla/show_bug.cgi?id=28488

--- Comment #7 from Mark Wielaard <mark at klomp dot org> ---
The addr2line binary from comment #4 has two phdr NOTE segments:

$ eu-elflint --quiet --gnu-ld addr2line
phdr[6]: unknown object file note type 32 with owner name '' at offset 48
phdr[6]: extra 72 bytes after last note

$ eu-readelf -l addr2line 
Program Headers:
  Type           Offset   VirtAddr           PhysAddr           FileSiz  MemSiz
  Flg Align
  PHDR           0x000040 0x0000000000400040 0x0000000000400040 0x000230
0x000230 R   0x8
  INTERP         0x000270 0x0000000000400270 0x0000000000400270 0x00001c
0x00001c R   0x1
        [Requesting program interpreter: /lib64/ld-linux-x86-64.so.2]
  LOAD           0x000000 0x0000000000400000 0x0000000000400000 0x0044d0
0x0044d0 R E 0x1000
  LOAD           0x004da8 0x0000000000405da8 0x0000000000405da8 0x000478
0x000530 RW  0x1000
  DYNAMIC        0x004db8 0x0000000000405db8 0x0000000000405db8 0x000210
0x000210 RW  0x8
  NOTE           0x0002b0 0x00000000004002b0 0x00000000004002b0 0x000030
0x000030 R   0x8
  NOTE           0x00028c 0x000000000040028c 0x000000000040028c 0x000078
0x000078 R   0x4
  GNU_EH_FRAME   0x00445c 0x000000000040445c 0x000000000040445c 0x000074
0x000074 R   0x4
  GNU_STACK      0x000000 0x0000000000000000 0x0000000000000000 0x000000
0x000000 RW  0x10
  GNU_RELRO      0x004da8 0x0000000000405da8 0x0000000000405da8 0x000258
0x000258 RW  0x8

 Section to Segment mapping:
  Segment Sections...
   00     
   01      [RO: .interp]
   02      [RO: .interp .note.ABI-tag .note.gnu.property .note.gnu.build-id
.dynsym .dynstr .gnu.hash .hash .gnu.version .gnu.version_r .rela.dyn .rela.plt
.init .plt .text .fini .rodata .eh_frame .eh_frame_hdr]
   03      [RELRO: .fini_array .init_array .dynamic .got] <RELRO: .got.plt>
.data .bss
   04      [RELRO: .dynamic]
   05      [RO: .note.gnu.property]
   06      [RO: .note.ABI-tag .note.gnu.property .note.gnu.build-id]
   07      [RO: .eh_frame_hdr]
   08     
   09      [RELRO: .fini_array .init_array .dynamic .got]

There are two phdr PT_NOTE segments because they have different alignments (05
has alignment 8 and covers .note.gnu.property, 06 has alignment 8 and covers
the other loaded note sections)

$ eu-readelf -S addr2line | grep note
[ 2] .note.ABI-tag        NOTE         000000000040028c 0000028c 00000020  0 A 
    0   0  4
[ 3] .note.gnu.property   NOTE         00000000004002b0 000002b0 00000030  0 A 
    0   0  8
[ 4] .note.gnu.build-id   NOTE         00000000004002e0 000002e0 00000024  0 A 
    0   0  4
[37] .note.gnu.gold-version NOTE         0000000000000000 00010a98 0000001c  0 
      0   0  4

Neither covers the gold-version (as expected)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

  parent reply	other threads:[~2021-10-22 14:08 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-22 11:12 [Bug tools/28488] New: " mliska at suse dot cz
2021-10-22 11:12 ` [Bug tools/28488] " mliska at suse dot cz
2021-10-22 12:29 ` mark at klomp dot org
2021-10-22 12:35 ` mliska at suse dot cz
2021-10-22 12:36 ` mliska at suse dot cz
2021-10-22 13:52 ` mliska at suse dot cz
2021-10-22 14:03 ` mark at klomp dot org
2021-10-22 14:08 ` mark at klomp dot org [this message]
2021-10-22 14:16 ` mliska at suse dot cz
2021-10-22 14:19 ` mark at klomp dot org
2021-10-22 14:22 ` mark at klomp dot org
2021-10-22 14:23 ` mliska at suse dot cz
2021-10-22 14:24 ` mliska at suse dot cz
2021-10-22 14:29 ` mliska at suse dot cz
2021-10-22 14:30 ` mliska at suse dot cz
2021-10-22 14:33 ` mark at klomp dot org
2021-10-22 14:38 ` mliska at suse dot cz
2021-10-22 14:39 ` mliska at suse dot cz
2021-10-22 14:46 ` mliska at suse dot cz
2021-10-22 14:47 ` mliska at suse dot cz
2021-10-22 14:55 ` mliska at suse dot cz
2021-10-22 15:03 ` mark at klomp dot org
2021-10-25 12:04 ` mark at klomp dot org
2021-10-30 22:49 ` mark at klomp dot org
2021-11-01  3:53 ` mliska at suse dot cz
2021-11-01  9:58 ` mark at klomp dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-28488-10460-iJ4ef3ALnr@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=elfutils-devel@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).