Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 775122

Summary: dev-lang/spidermonkey-78.8.0 does not respect LDFLAGS
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Mozilla Gentoo Team <mozilla>
Status: RESOLVED UPSTREAM    
Severity: normal Keywords: NeedPatch
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Agostino Sarubbo gentoo-dev 2021-03-09 20:48:06 UTC
Compile with LDFLAGS="${LDFLAGS} -Wl,--hash-style=gnu -Wl,-z,norelro"

# checksec --file=/usr/lib64/libmozjs-78.so.0.0.0
RELRO           STACK CANARY      NX            PIE             RPATH      RUNPATH      Symbols         FORTIFY Fortified       Fortifiable     FILE
Partial RELRO   No canary found   NX enabled    DSO             No RPATH   No RUNPATH   No Symbols        Yes   9               24              /usr/lib64/libmozjs-78.so.0.0.0

Partial relro is active instead of No relro.
Comment 1 Thomas Deutschmann (RETIRED) gentoo-dev 2021-03-09 23:45:21 UTC
This is probably caused by rust. I will not spend time on this, patches welcome.
Comment 2 Agostino Sarubbo gentoo-dev 2021-03-11 16:48:59 UTC
(In reply to Thomas Deutschmann from comment #1)
> I will not spend time on this

If you are in touch with upstream, report to them would be great.