Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 775122 - dev-lang/spidermonkey-78.8.0 does not respect LDFLAGS
Summary: dev-lang/spidermonkey-78.8.0 does not respect LDFLAGS
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords: NeedPatch
Depends on:
Blocks:
 
Reported: 2021-03-09 20:48 UTC by Agostino Sarubbo
Modified: 2021-03-11 16:48 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.