Hi Zhuqing,

My understanding of these options is that -pie affects the link
command only and that -fpie/-fPIE affect the code generation only.

So the condition to check in phases.c should instead be:

  if (option_was_seen(O_pie)) {
  ...

Otherwise the patch looks good.

-David Coakley / AMD Open Source Compiler Engineering

2010/12/23 朱庆 <zqing1...@gmail.com>:
> Hi all,
>
> Can gatekeeper help review the fix:
> Bug link: http://bugs.open64.net/show_bug.cgi?id=626
>
> case:
>
> int main(){
>
> return 0;
>
> }
>
>
>
> commands: $opencc �COfast �Cpie �Cfpie case.c
>
> the fix is to replace crt1.o crtbegin.o crtend.o with Scrt1.o crtbeginS.o
> crtendS.o when build with PIE executable.
>
> Thanks
> zhuqing
>
> ------------------------------------------------------------------------------
> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
> to consolidate database storage, standardize their database environment,
> and,
> should the need arise, upgrade to a full multi-node Oracle RAC database
> without downtime or disruption
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> Open64-devel mailing list
> Open64-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/open64-devel
>
>

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Open64-devel mailing list
Open64-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/open64-devel

Reply via email to