From 29ac0186104fc287f592a71e14cc863889b9fb3e Mon Sep 17 00:00:00 2001 From: Peter Wang Date: Fri, 12 Jan 2018 19:50:47 +0300 Subject: [PATCH] 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 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/doc/README.linux b/doc/README.linux index 0d4bb6c3..fa2cd22e 100644 --- a/doc/README.linux +++ b/doc/README.linux @@ -8,8 +8,7 @@ See below for M68K specific notes. Incremental GC is generally supported. -Dynamic libraries are supported on an ELF system. A static executable -should be linked with the gcc option "-Wl,-defsym,_DYNAMIC=0". +Dynamic libraries are supported on an ELF system. The collector appears to work reliably with Linux threads, but beware of older versions of glibc and gdb. -- 2.40.0