bug-binutils
[Top][All Lists]
Advanced

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

[Bug gold/20963] New: __executable_start isn't defined when linking exec


From: mpercy at gmail dot com
Subject: [Bug gold/20963] New: __executable_start isn't defined when linking executable against .so needing it, but ld does
Date: Tue, 13 Dec 2016 13:56:14 +0000

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

            Bug ID: 20963
           Summary: __executable_start isn't defined when linking
                    executable against .so needing it, but ld does
           Product: binutils
           Version: 2.26
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gold
          Assignee: ccoutant at gmail dot com
          Reporter: mpercy at gmail dot com
                CC: ian at airs dot com
  Target Milestone: ---

Gold does not generate __executable_start if it is needed by a shared library
being linked to an executable. This results in the following error message when
running the executable:

  undefined symbol: __executable_start (libfoo.so)

ld correctly generates the symbol in this case.

Support matrix for when __executable_start is defined:

             | ld  | gold
-------------+-----+-----
static link  | yes | yes
dynamic link | yes | no

I wrote a reproducing test case and posted it here: 

https://github.com/mpercy/executable_start

Observed on the following version of gold on Ubuntu 16.04 (xenial):

$ gold --version
GNU gold (GNU Binutils for Ubuntu 2.26.1) 1.11
Copyright (C) 2015 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.

-- 
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]