This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/23912] Go binaries do not call __libc_start_main


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

--- Comment #4 from Florian Weimer <fweimer at redhat dot com> ---
(In reply to Adhemerval Zanella from comment #3)
> $ go tool link -linkmode external main.o

“-linkmode external” selects the system (binutils/GCC) linker.  The problem is
with the Go (internal) linker.

> I am failing to see in which scenario Go linker or runtime is not calling
> _libc_start_main.

It happens if the Go linker is used to produce a dynamically linked executable.
 For example, this happens if a pure Go (no cgo) program indirectly calls
getaddrinfo or anything else that needs NSS.

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]