[PATCH] D23031: [LinkerScript] Support OR of FLAGS in PHDR directives

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 2 12:38:07 PDT 2016


Weird. Can you please try replacing the `+` with a `|` ? I got
"unexpected |" on Fedora 24 (even with bfd). I'll give you the linker
version once I get to the office.

On Tue, Aug 2, 2016 at 6:58 AM, Rafael EspĂ­ndola
<llvm-commits at lists.llvm.org> wrote:
> Just a correction. It looks like bfd supports any expressions in here.
> With vanilla bfd I can use
>
> PHDRS
> {
>   ph_foo PT_LOAD FLAGS(1 + 2);
> }
> SECTIONS
> {
>   .text : {*(.dynamic) } : ph_foo
> }
>
> But that is not documented or implemented in gold.
>
> I did implement a hackish patch to support any expression (sorry for
> the bad coordination). Let me know if you think it is worth it and I
> will also implement a patch for supporting | in expressions.
>
> Cheers,
> Rafael
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>

-- 
Davide

"There are no solved problems; there are only problems that are more
or less solved" -- Henri Poincare


More information about the llvm-commits mailing list