On Thu, Dec 8, 2016 at 2:55 PM, Josh Conner <[email protected]> wrote:
> This patch adds support to gcc for the Fuchsia OS
> (https://fuchsia.googlesource.com/).
>
> OK for mainline?
A few comments:
> +/* Build with PIC by default. */
> +#undef CC1_SPEC
> +#define CC1_SPEC "%{!fno-pic:%{!fno-PIC:%{!fpic:%{!fPIC: -fPIC}}}}"
Is it PIC by default or really PIE by default?
Also how does this interact with the -fpie/-fPIE options?
Thanks,
Andrew
>
> Thanks -
>
> Josh
>
>
> 2016-12-08 Joshua Conner <[email protected]>
>
>
> * config/arm/fuchsia-elf.h: New file.
>
> * config/fuchsia.h: New file.
>
> * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
>
> (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
> targets.
>
> * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
>
>