[PATCH] D41041: [ELF] Don't set the executable bit for relocatable or shared files

Rafael Avila de Espindola via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 11 09:29:34 PST 2017


Rui Ueyama <ruiu at google.com> writes:

> On Sun, Dec 10, 2017 at 11:04 AM, Rafael Avila de Espindola <
> rafael.espindola at gmail.com> wrote:
>
>> Both bfd and gold mark .so executable actually.
>>
>
> Do you know why they do that?

I would guess because shared libraries can have entry points. The musl
libc is also the dynamic linker for example.

Cheers,
Rafael


More information about the llvm-commits mailing list