bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/26094] New: Corrupt version table generated


From: address@hidden
Subject: [Bug ld/26094] New: Corrupt version table generated
Date: Tue, 09 Jun 2020 09:11:00 +0000

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

            Bug ID: 26094
           Summary: Corrupt version table generated
           Product: binutils
           Version: 2.35 (HEAD)
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: lkml@jv-coder.de
  Target Milestone: ---

Created attachment 12604
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12604&action=edit
Repro

Hi,

I found a bug in the linker, where it generates an corrupt version table. The
version index for a symbol is either completely invalid or points to a wrong
version string.
Older versions of the dynamic linker can crash, if the encounter such a binary.


This bug was found, when trying to run systemd tests build in yocto on an arm
system. Yocto configures systemd in an unusual way, that enabled the bug in the
first place: It produces a binary, that links an object, that uses
__start_<SECTION> and __stop_<SECTION> symbols, in an object, that is linked
twice, once using a static library and then again using a dynamic library. The
dynamic library also uses a version script, that adds a version name to all
global symbols.

I guess this is very uncommon and probably a bug in systemd, but still the
linker shouldn't generate a corrupted version table.

A minimal repro is append to this ticket and it can also be found here:
https://github.com/MofX/ld_version_bug

Greets,
Joerg

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]