Page MenuHomeFreeBSD

D17173.diff
No OneTemporary

D17173.diff

Index: contrib/llvm/tools/lld/ELF/Config.h
===================================================================
--- contrib/llvm/tools/lld/ELF/Config.h
+++ contrib/llvm/tools/lld/ELF/Config.h
@@ -160,6 +160,7 @@
bool ZNocopyreloc;
bool ZNodelete;
bool ZNodlopen;
+ bool ZNodump;
bool ZNow;
bool ZOrigin;
bool ZRelro;
Index: contrib/llvm/tools/lld/ELF/Driver.cpp
===================================================================
--- contrib/llvm/tools/lld/ELF/Driver.cpp
+++ contrib/llvm/tools/lld/ELF/Driver.cpp
@@ -676,6 +676,7 @@
Config->ZNocopyreloc = hasZOption(Args, "nocopyreloc");
Config->ZNodelete = hasZOption(Args, "nodelete");
Config->ZNodlopen = hasZOption(Args, "nodlopen");
+ Config->ZNodump = hasZOption(Args, "nodump");
Config->ZNow = hasZOption(Args, "now");
Config->ZOrigin = hasZOption(Args, "origin");
Config->ZRelro = !hasZOption(Args, "norelro");
Index: contrib/llvm/tools/lld/ELF/SyntheticSections.cpp
===================================================================
--- contrib/llvm/tools/lld/ELF/SyntheticSections.cpp
+++ contrib/llvm/tools/lld/ELF/SyntheticSections.cpp
@@ -1196,6 +1196,8 @@
DtFlags1 |= DF_1_NODELETE;
if (Config->ZNodlopen)
DtFlags1 |= DF_1_NOOPEN;
+ if (Config->ZNodump)
+ DtFlags1 |= DF_1_NODUMP;
if (Config->ZNow) {
DtFlags |= DF_BIND_NOW;
DtFlags1 |= DF_1_NOW;
Index: usr.bin/clang/lld/ld.lld.1
===================================================================
--- usr.bin/clang/lld/ld.lld.1
+++ usr.bin/clang/lld/ld.lld.1
@@ -474,6 +474,14 @@
.Dv DF_1_NOOPEN
flag to indcate that the object may not be opened by
.Xr dlopen 3 .
+.It Cm nodump
+Set the
+.Dv DF_1_NODUMP
+flag to indcate that the object may not be dumped by the runtime linker.
+(The
+.Dv DF_1_NODUMP
+flag is not supported by
+.Fx Ns .)
.It Cm norelro
Do not indicate that portions of the object shold be mapped read-only
after initial relocation processing.

File Metadata

Mime Type
text/plain
Expires
Tue, Apr 21, 3:27 PM (13 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31917996
Default Alt Text
D17173.diff (1 KB)

Event Timeline