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 general/28608] elflint elfstrmerge fails with ld.gold
Date: Fri, 13 Jan 2023 09:58:56 +0000	[thread overview]
Message-ID: <bug-28608-10460-JItRrqrXMd@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-28608-10460@http.sourceware.org/bugzilla/>

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

--- Comment #5 from Mark Wielaard <mark at klomp dot org> ---
(In reply to Martin Liska from comment #4)
> So it fails for:
> $ /home/marxin/Programming/elfutils/src/elflint --gnu
> /home/marxin/Programming/elfutils/tests/elfstrmerge
> section [17] '.rodata': merge flag set but entry size is zero
> 
> $ readelf -SW /home/marxin/Programming/elfutils/tests/elfstrmerge | grep roda
>   [17] .rodata           PROGBITS        0000000000402ea0 002ea0 0007bf 00
> AMS  0   0  8
> 
> As seen the section has SHF_STRING flag, thus having sh_entsize == 0 should
> be fine.
> 
> @Mark: Can you please take a look?

If both SHF_STRING and SHF_MERGE are set then sh_entsize is the char size
(normally 1).

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

  parent reply	other threads:[~2023-01-13  9:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-19 10:50 [Bug general/28608] New: " mliska at suse dot cz
2021-11-21 16:45 ` [Bug general/28608] " mark at klomp dot org
2021-11-22  8:20 ` mliska at suse dot cz
2021-11-22  8:38 ` mliska at suse dot cz
2023-01-13  8:55 ` mliska at suse dot cz
2023-01-13  9:58 ` mark at klomp dot org [this message]
2023-01-16 10:33 ` mliska at suse dot cz

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-28608-10460-JItRrqrXMd@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).