This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch] PR 37454 - Fix -rdynamic check in gcc/configure


> On IA64 HP-UX the gcc/configure script tries to use -rdynamic when
> linking in order to support plugins.  GCC on IA64 HP-UX doesn't handle
> the -rdynamic flag but the build tries to use it because the link that
> configure does works, it just gives a warning which is ignored.  On IA64
> HP-UX all symbols are exported by default so no flag is needed.  This patch
> changes the check for -rynamic by first checking to see if a symbol is
> exported by default and then checking to see if it is exported when the
> -rdynamic flag is used.

I'm thinking of supporting the -rdynamic flag on PA-RISC HP-UX using
the -E linker option because:

1) It's necessary in the 32-bit runtime to mark all symbols for export.
   We need this for plugins.
2) "In a 64-bit +std link, all symbols are exported by default, so -E is
   not necessary to make symbols visible.  However, it has an additional
   side effect of identifying all exported symbols as necessary, so that
   they will not be removed when using dead code elimination (+Oprocelim)."
   The same may apply to IA64.

The -rdynamic configure check also fails on PA-RISC HP-UX, so I support
fixing the configure check.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]