]> granicus.if.org Git - gc/commit
Remove obsolete advice about linking with _DYNAMIC=0 (Linux)
authorPeter Wang <novalazy@gmail.com>
Fri, 12 Jan 2018 16:50:47 +0000 (19:50 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 16 Jan 2018 21:36:15 +0000 (00:36 +0300)
commitc9c8811e860a228a7884aba3beb52cfd8b2acbf8
tree5ec7f48c98dbd268d5bf29170205a5dcdc480e0e
parent8f42658f29687c5e45296c06d259de132f0c8fe5
Remove obsolete advice about linking with _DYNAMIC=0 (Linux)

Issue #196 (bdwgc).

The mentioned GCC option is not needed since gc-5.0alpha3 (when
_DYNAMIC symbol was declared as weak in dyn_load.c).
Even more, the advice is problematic for Alpine Linux (and probably
other systems using musl) as building a program with gcc -static
produces a binary containing a _DYNAMIC symbol with a non-zero address,
and forcing the address to 0 causes a crash during GC initialization.

* doc/README.linux: Remove note that static executable should be
linked with the gcc option "-Wl,-defsym,_DYNAMIC=0".
doc/README.linux