[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gold/30187] ld.bfd and ld.gold versions in .comment section of ELF
From: |
nickc at redhat dot com |
Subject: |
[Bug gold/30187] ld.bfd and ld.gold versions in .comment section of ELF files |
Date: |
Wed, 01 Mar 2023 17:10:21 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=30187
Nick Clifton <nickc at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Last reconfirmed| |2023-03-01
Status|UNCONFIRMED |ASSIGNED
CC| |nickc at redhat dot com
--- Comment #1 from Nick Clifton <nickc at redhat dot com> ---
(In reply to Tom Kacvinsky from comment #0)
Hi Tom,
> Results in the ld.gold version not being in the .comment section.
But - just to be clear - it is in the .note.gnu.gold-version section:
% readelf -p.note.gnu.gold-version a.out
String dump of section '.note.gnu.gold-version':
[ c] GNU
[ 10] gold 1.16
So this is a request for gold to add or move the version number into the
.comment
section, right ? And add the feature to ld too, of course.
Note - it is possible to achieve the desired effect using an extra object file:
% cat ld-version.s
.section .comment
.asciz "GNU ld version 2.37-37.fc36";
% gcc hello.c ld-version.s
% readelf -p.comment
[ 0] GCC: (GNU) 12.2.1 20221121 (Red Hat 12.2.1-4)
[ 2e] GCC: (GNU) 12.0.1 20220413 (Red Hat 12.0.1-0)
[ 5c] GNU ld version 2.37-37.fc36
But I am sure that this is not what you want.
Hmm, let me see if it is an easy thing to do...
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug gold/30187] New: ld.bfd and ld.gold versions in .comment section of ELF files, tkacvins at gmail dot com, 2023/03/01
- [Bug gold/30187] ld.bfd and ld.gold versions in .comment section of ELF files, tkacvins at gmail dot com, 2023/03/01
- [Bug gold/30187] ld.bfd and ld.gold versions in .comment section of ELF files,
nickc at redhat dot com <=
- [Bug gold/30187] ld.bfd and ld.gold versions in .comment section of ELF files, tkacvins at gmail dot com, 2023/03/01
- [Bug gold/30187] ld.bfd and ld.gold versions in .comment section of ELF files, nickc at redhat dot com, 2023/03/03
- [Bug gold/30187] ld.bfd and ld.gold versions in .comment section of ELF files, nickc at redhat dot com, 2023/03/03
- [Bug gold/30187] ld.bfd and ld.gold versions in .comment section of ELF files, tkacvins at gmail dot com, 2023/03/03
- [Bug gold/30187] ld.bfd and ld.gold versions in .comment section of ELF files, tkacvins at gmail dot com, 2023/03/03
- [Bug gold/30187] ld.bfd and ld.gold versions in .comment section of ELF files, nickc at redhat dot com, 2023/03/14
- [Bug gold/30187] ld.bfd and ld.gold versions in .comment section of ELF files, tkacvins at gmail dot com, 2023/03/14
- [Bug gold/30187] ld.bfd and ld.gold versions in .comment section of ELF files, tkacvins at gmail dot com, 2023/03/14
- [Bug gold/30187] ld.bfd and ld.gold versions in .comment section of ELF files, nickc at redhat dot com, 2023/03/15
- [Bug gold/30187] ld.bfd and ld.gold versions in .comment section of ELF files, tkacvins at gmail dot com, 2023/03/15