This is an archive of the discontinued LLVM Phabricator instance.

[LinkerScript] Support OR of FLAGS in PHDR directives
AbandonedPublic

Authored by davide on Aug 1 2016, 1:15 PM.

Details

Reviewers
ruiu

Diff Detail

Event Timeline

davide updated this revision to Diff 66366.Aug 1 2016, 1:15 PM
davide retitled this revision from to [LinkerScript] Support OR of FLAGS in PHDR directives.
davide updated this object.
davide added a reviewer: ruiu.
davide added subscribers: llvm-commits, rafael.
ruiu edited edge metadata.Aug 1 2016, 1:30 PM

https://sourceware.org/binutils/docs/ld/PHDRS.html says that "The value of flags must be an integer". Can you give me a pointer to a sample use case?

davide abandoned this revision.Aug 1 2016, 1:35 PM

Sorry, I found that in a linker script we use internally (can't share, alas). It seems not even ld.bfd accepts this syntax so I'll keep this patch private.

ruiu added a comment.Aug 1 2016, 1:37 PM

Looks like you can easily replace it with 0x3.

davide added a comment.Aug 1 2016, 2:23 PM
In D23031#502539, @ruiu wrote:

Looks like you can easily replace it with 0x3.

Yes. I can. I just don't have control over these linker scripts, so it's very hard.