Skip to content

Commit b7354b9

Browse files
committed
Don’t load .so globally by default.
1 parent 37813a2 commit b7354b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

patcher.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ var (
3939
const unloadSOMaxTries = 10
4040

4141
// loadSOFlags defines the standard dlopen() flags for loadSO.
42-
const loadSOFlags = RTLD_NOW | RTLD_GLOBAL
42+
const loadSOFlags = RTLD_NOW
4343

4444
// getELFSymAddr returns the *elf.Symbol of a symbol in an ELF file.
4545
func getELFSymAddr(filename, symbol string) (*elf.Symbol, error) {

0 commit comments

Comments
 (0)