[llvm-dev] [lld][ELF] Add option to make .dynamic read only

Rafael Avila de Espindola via llvm-dev llvm-dev at lists.llvm.org
Tue May 23 15:20:58 PDT 2017


Jake Ehrlich via llvm-dev <llvm-dev at lists.llvm.org> writes:

> Here's my understanding of Joerg's proposal.
> 1) Still allow users to emit a read-only .dynamic section
> 2) Not emit DT_DEBUG in the case of a read-only .dynamic section
> 3) Do none of this DT_DEBUG_INDIRECT/DT_MIPS_RLD_MAP stuff. We can just
> allow people to use the AUX vector for this purpose if they need it.
>
> So the changes to LLD would include
> 1) Adding a flag for read-only .dynamic
> 2) Changing the flags for .dynamic according to this flag
> 3) Not emitting DT_DEBUG if this flag is set.
>
> I think we'd be fine with that option if everyone agrees to it. I already
> have a patch which does that in fact (it's a very trivial change). Would
> everyone be ok with this change?

It sounds good, yes.

Thanks,
Rafael


More information about the llvm-dev mailing list