Index: usr.bin/clang/lld/ld.lld.1 =================================================================== --- usr.bin/clang/lld/ld.lld.1 +++ usr.bin/clang/lld/ld.lld.1 @@ -25,7 +25,7 @@ .\" .\" $FreeBSD$ .\" -.Dd January 10, 2018 +.Dd February 6, 2018 .Dt LD.LLD 1 .Os .Sh NAME @@ -346,6 +346,60 @@ .It Fl z Ar option Linker option extensions. .Bl -tag -width indent +.It Cm execstack +Set permissions on the +.Dv PT_GNU_STACK +segment to indicate that the object requires an executable stack. +.It Cm nocombreloc +Disable combining and sorting multiple relocation sections. +.It Cm nocopyreloc +Disable the creation of copy relocations. +.It Cm nodelete +Set the +.Dv DF_1_NODELETE +flag to indicate that the object cannot be unloaded from a process. +.It Cm nodlopen +Set the +.Dv DF_1_NOOPEN +flag to indcate that the object may not be opened by +.Xr dlopen 3 . +.It Cm muldefs +Do not error if a symbol is defined multiple times. +The first definition will be used. +.It Cm norelro +Do not indicate that portions of the object shold be mapped read-only +after initial relocation processing. +The object will omit the +.Dv PT_GNU_RELRO +segment header. +.It Cm now +Set the +.Dv DF_BIND_NOW +flag to indicate that the run-time loader should perform all relocation +processing as part of object initialization. +By default relocations may be performed on demand. +.It Cm origin +Set the +.Dv DF_ORIGIN +flag to indicate that the object requires +.Li $ORIGIN +processing. +.It Cm retpolineplt +Emit retpoline format PLT entries. +.It Cm rodynamic +Make the +.Li .dynamic +section read-only. +The +.Dv DT_DEBUG +tag will not be emitted. +.It Cm stack-size= Ns Ar size +Set the main thread's stack size to +.Ar size . +The stack size is recorded as the size of the +.Ar size . +.Dv PT_GNU_STACK +program segment. .It Cm notext Allow relocations against read-only segments. Sets the