[PATCH] D32399: [LLD] Order writable executable sections before writable ones

Rafael Avila de Espindola via llvm-commits llvm-commits at lists.llvm.org
Thu May 11 06:24:08 PDT 2017


> I don't really know what the bfd default is.  We've heavily modified
> the ld.bfd linker scripts on OpenBSD for W^X and PIE.
>
> My diff doesn't change the Config->SingleRoRx case.  With my full
> diff, if I pass -Wl,-no-rosegment I get a RWX .plt as a separate
> segment in between .data and .bss.  That's not quite right, but not
> something that needs to be fixed immediately I'd say.

Fair enough.

>> Please update the comment to say why you want rxw sections before rw
>> sections.
>
> Will do that.

LGTM with a comment update.

> P.S. It seems mail replies don't make it back into Phabricator.

Yes, that is a bug in Phabricator.

Cheers,
Rafael


More information about the llvm-commits mailing list