This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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: Add HOSTING_SCRT0 for PIE test


On Sat, Jan 19, 2013 at 11:37 AM, H.J. Lu <hjl.tools@gmail.com> wrote:
> Hi,
>
> PIE needs to link with different crt files.  I checkec in this patch
> to add HOSTING_SCRT0 for PIE test.
>
>
> H.J.
> ---
> diff --git a/ld/ChangeLog b/ld/ChangeLog
> index 190e081..bf3d210 100644
> --- a/ld/ChangeLog
> +++ b/ld/ChangeLog
> @@ -1,3 +1,14 @@
> +2013-01-19  H.J. Lu  <hongjiu.lu@intel.com>
> +
> +       * Makefile.am (HOSTING_SCRT0): New.
> +
> +       * configure.host (HOSTING_SCRT0): New.  Used for PIE.
> +
> +       * configure.in (HOSTING_SCRT0): New AC_SUBST.
> +
> +       * Makefile.in: Regenerated.
> +       * configure: Likewise.
> +
>

I missed crtendS.o.  I am checking in this patch to fix
it.


-- 
H.J.
--
ld/

    PR ld/16259
    * Makefile.am (HOSTING_SLIBS): New.
    * configure.host (HOSTING_SLIBS): New.  Used for PIE.
    * configure.in (HOSTING_SLIBS): New AC_SUBST.
    * Makefile.in: Regenerated.
    * configure: Likewise.

ld/testsuite/

    PR ld/16259
    * config/default.exp (get_target_emul): Also set HOSTING_SLIBS.
    * lib/ld-lib.exp (default_ld_link): Use HOSTING_SLIBS for -pie.

Attachment: pr16259.patch
Description: Text document


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