[Bug debugedit/33110] 35: debugedit build-id recompute FAILED (debugedit.at:896)

mark at klomp dot org sourceware-bugzilla@sourceware.org
Thu Jun 26 18:45:12 GMT 2025


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

Mark Wielaard <mark at klomp dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mark at klomp dot org

--- Comment #1 from Mark Wielaard <mark at klomp dot org> ---
(In reply to Vitaly Chikunov from comment #0)
> `debugedit build-id recompute` test fails. I think this is because the test
> is doing this to extract build id:
> 
>   $READELF -n main | grep Build.ID: | awk '{print $3}'
> 
> While GNU readelf (GNU Binutils) 2.43.1.20241025 prints this:
> 
> debugedit-5.1-alt1.ga6ba284$ readelf -n ./tests/testsuite.dir/35/main  |
> grep Build.ID: 
>   GNU                  0x00000014       NT_GNU_BUILD_ID (unique build ID
> bitstring)         Build ID: 6ad4eaef23ca0112d154ecff464e75eef035d3dd
> 
> So the line prints `NT_GNU_BUILD_ID` instead of build id.

That is unfortunate. Why were the two lines combined?

I quickly tested 2.41 and 2.44 (because that is what I had here).
And those two versions (one older than 2.43.1 and one newer) output:

Displaying notes found in: .note.gnu.build-id
  Owner                Data size        Description
  GNU                  0x00000014       NT_GNU_BUILD_ID (unique build ID
bitstring)
    Build ID: e3b0fdf454b9c1914e86f32d900a6ee5daa185f1

So the Build ID: output is on its own line.

We should figure out why/when it was changed to output on one line.

And/Or we should use something like:
  $READELF -n main | grep Build.ID: | cut -f2 -d:
(untested)

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


More information about the Debugedit mailing list