Add /DEPENDENTLOADFLAG linker flag to configure
Categories
(Firefox Build System :: General, enhancement)
Tracking
(Not tracked)
People
(Reporter: emk, Assigned: emk)
References
()
Details
Attachments
(1 file)
This will mitigate DLL preload attacks.
Does lld-link support /DEPENDENTLOADFLAG
?
Assignee | ||
Comment 1•5 years ago
|
||
(In reply to Masatoshi Kimura [:emk] from comment #0)
Does lld-link support
/DEPENDENTLOADFLAG
?
It doesn't :(
90:45.38 lld-link: warning: ignoring unknown argument '-DEPENDENTLOADFLAG:0xA00'
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 2•5 years ago
|
||
Apparently this option corresponds to IMAGE_LOAD_CONFIG_DIRECTORY.DependentLoadFlags
.
Assignee | ||
Comment 3•3 years ago
|
||
We can define _load_config_used
to customize the IMAGE_LOAD_CONFIG_DIRECTORY
structure.
Updated•2 years ago
|
Comment 4•3 months ago
|
||
(In reply to Masatoshi Kimura [:emk] from comment #0)
This will mitigate DLL preload attacks.
Does lld-link support
/DEPENDENTLOADFLAG
?
It supports since LLVM 18.
Assignee | ||
Comment 5•3 months ago
|
||
(In reply to nurmukhametov.alex@gmail.com from comment #4)
(In reply to Masatoshi Kimura [:emk] from comment #0)
This will mitigate DLL preload attacks.
Does lld-link support
/DEPENDENTLOADFLAG
?It supports since LLVM 18.
Great news!
Assignee | ||
Updated•3 months ago
|
Assignee | ||
Comment 6•1 month ago
|
||
We can't add the flag to EXE files unless we fix bug 1733734 or fix bug
1691782 and 1710147.
Updated•1 month ago
|
Pushed by VYV03354@nifty.ne.jp: https://hg.mozilla.org/integration/autoland/rev/95da9894a2b1 Add -DEPENDENTLOADFLAG:0x800 to DLL link flags. r=firefox-build-system-reviewers,glandium
Backed out for causing mass failures
- Backout link
- Push with failures
- Failure Log for build bustages on js\src\jit-test\tests\bug1213574.js
- Failure Log for mochitest failures on runtests.py
- Failure Log for reftest failures on @ mozilla::ipc::UtilityProcessImpl::LoadLibraryOrCrash
- Failure Log for wpt failures on testrunner.py
- Failure Log for gtest failures on UtilityProcess.LaunchProcess
- Failure Log for reftests on None
- Failure Log for Xpcshell assertion failures
Assignee | ||
Comment 9•1 month ago
|
||
Candidates:
js.exe -> mozglue nspr4
pk12util -> nss3 -> mozglue
certutil -> nss3 -> mozglue
mozavcodec -> gkcodecs mozavutil (Fails at LoadLibraryOrCrash)
certutil.exe -> nss3 -> mozglue
Description
•