public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
From: "mliska at suse dot cz" <sourceware-bugzilla@sourceware.org>
To: elfutils-devel@sourceware.org
Subject: [Bug general/28608] elflint elfstrmerge fails with ld.gold
Date: Fri, 13 Jan 2023 08:55:52 +0000	[thread overview]
Message-ID: <bug-28608-10460-zfLL4R7E22@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-28608-10460@http.sourceware.org/bugzilla/>

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

Martin Liska <mliska at suse dot cz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2023-01-13
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1

--- Comment #4 from Martin Liska <mliska at suse dot cz> ---
(In reply to Martin Liska from comment #3)
> It's likely caused by the following 2 sections that are in elfstrmerge.o:
> 
> $ readelf -SW elfstrmerge.o | grep rodata
> Section Headers:
>   [Nr] Name              Type            Address          Off    Size   ES
> Flg Lk Inf Al
> ...
>   [ 5] .rodata.str1.1    PROGBITS        0000000000000000 000480 0002d0 01
> AMS  0   0  1
>   [ 6] .rodata.str1.8    PROGBITS        0000000000000000 000750 0004df 01
> AMS  0   0  8
> ...

This is unrelated, it's a different file that is checked.

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?

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

  parent reply	other threads:[~2023-01-13  8:55 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 [this message]
2023-01-13  9:58 ` mark at klomp dot org
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-zfLL4R7E22@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).