public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Florian Weimer <fweimer@redhat.com>
To: Siddhesh Poyarekar via Libc-alpha <libc-alpha@sourceware.org>
Cc: Siddhesh Poyarekar <siddhesh@sourceware.org>
Subject: Re: [COMMITTED] Replace --enable-static-pie with --disable-default-pie
Date: Thu, 16 Dec 2021 20:26:48 +0100	[thread overview]
Message-ID: <87v8zogxl3.fsf@oldenburg.str.redhat.com> (raw)
In-Reply-To: <20211213030233.2286715-1-siddhesh@sourceware.org> (Siddhesh Poyarekar via Libc-alpha's message of "Mon, 13 Dec 2021 08:32:33 +0530")

We recently started building libc.a with -DPIC on arm:

gcc ../sysdeps/unix/sysv/linux/arm/setcontext.S -c     -I../include -I/builddir/build/BUILD/glibc-2.34.9000-376-g4435c29892/build-armv7hl-redhat-linuxeabi/stdlib  -I/builddir/build/BUILD/glibc-2.34.9000-376-g4435c29892/build-armv7hl-redhat-linuxeabi  -I../sysdeps/unix/sysv/linux/arm/le  -I../sysdeps/unix/sysv/linux/arm  -I../sysdeps/arm/nptl  -I../sysdeps/unix/sysv/linux/include -I../sysdeps/unix/sysv/linux  -I../sysdeps/nptl  -I../sysdeps/pthread  -I../sysdeps/gnu  -I../sysdeps/unix/inet  -I../sysdeps/unix/sysv  -I../sysdeps/unix/arm  -I../sysdeps/unix  -I../sysdeps/posix  -I../sysdeps/arm/le/armv7/multiarch  -I../sysdeps/arm/armv7/multiarch  -I../sysdeps/arm/le/armv7  -I../sysdeps/arm/armv7  -I../sysdeps/arm/armv6t2  -I../sysdeps/arm/armv6  -I../sysdeps/arm/le  -I../sysdeps/arm/include -I../sysdeps/arm  -I../sysdeps/wordsize-32  -I../sysdeps/ieee754/flt-32  -I../sysdeps/ieee754/dbl-64  -I../sysdeps/ieee754  -I../sysdeps/generic  -I.. -I../libio -I. -nostdinc -isystem /usr/lib/gcc/armv7hl-redhat-linux-gnueabi/11/include -isystem /usr/include -D_LIBC_REENTRANT -include /builddir/build/BUILD/glibc-2.34.9000-376-g4435c29892/build-armv7hl-redhat-linuxeabi/libc-modules.h -DMODULE_NAME=libc -include ../include/libc-symbols.h  -DPIC     -DTOP_NAMESPACE=glibc -DASSEMBLER  -g -Wa,--generate-missing-build-notes=yes -Werror=undef -Wa,--noexecstack   -o /builddir/build/BUILD/glibc-2.34.9000-376-g4435c29892/build-armv7hl-redhat-linuxeabi/stdlib/setcontext.o -MD -MP -MF /builddir/build/BUILD/glibc-2.34.9000-376-g4435c29892/build-armv7hl-redhat-linuxeabi/stdlib/setcontext.o.dt -MT /builddir/build/BUILD/glibc-2.34.9000-376-g4435c29892/build-armv7hl-redhat-linuxeabi/stdlib/setcontext.o

Before, we had this (no -DPIC between “../include/libc-symbols.h” and
“-DTOP_NAMESPACE=glibc“):

gcc ../sysdeps/unix/sysv/linux/arm/setcontext.S -c     -I../include -I/builddir/build/BUILD/glibc-2.34.9000-326-g4df1fa6ddc/build-armv7hl-redhat-linuxeabi/stdlib  -I/builddir/build/BUILD/glibc-2.34.9000-326-g4df1fa6ddc/build-armv7hl-redhat-linuxeabi  -I../sysdeps/unix/sysv/linux/arm/le  -I../sysdeps/unix/sysv/linux/arm  -I../sysdeps/arm/nptl  -I../sysdeps/unix/sysv/linux/include -I../sysdeps/unix/sysv/linux  -I../sysdeps/nptl  -I../sysdeps/pthread  -I../sysdeps/gnu  -I../sysdeps/unix/inet  -I../sysdeps/unix/sysv  -I../sysdeps/unix/arm  -I../sysdeps/unix  -I../sysdeps/posix  -I../sysdeps/arm/le/armv7/multiarch  -I../sysdeps/arm/armv7/multiarch  -I../sysdeps/arm/le/armv7  -I../sysdeps/arm/armv7  -I../sysdeps/arm/armv6t2  -I../sysdeps/arm/armv6  -I../sysdeps/arm/le  -I../sysdeps/arm/include -I../sysdeps/arm  -I../sysdeps/wordsize-32  -I../sysdeps/ieee754/flt-32  -I../sysdeps/ieee754/dbl-64  -I../sysdeps/ieee754  -I../sysdeps/generic  -I.. -I../libio -I. -nostdinc -isystem /usr/lib/gcc/armv7hl-redhat-linux-gnueabi/11/include -isystem /usr/include -D_LIBC_REENTRANT -include /builddir/build/BUILD/glibc-2.34.9000-326-g4df1fa6ddc/build-armv7hl-redhat-linuxeabi/libc-modules.h -DMODULE_NAME=libc -include ../include/libc-symbols.h       -DTOP_NAMESPACE=glibc -DASSEMBLER  -g -Wa,--generate-missing-build-notes=yes -Werror=undef -Wa,--noexecstack   -o /builddir/build/BUILD/glibc-2.34.9000-326-g4df1fa6ddc/build-armv7hl-redhat-linuxeabi/stdlib/setcontext.o -MD -MP -MF /builddir/build/BUILD/glibc-2.34.9000-326-g4df1fa6ddc/build-armv7hl-redhat-linuxeabi/stdlib/setcontext.o.dt -MT /builddir/build/BUILD/glibc-2.34.9000-326-g4df1fa6ddc/build-armv7hl-redhat-linuxeabi/stdlib/setcontext.o

I'm going to send a patch, but I can't really test it.

Thanks,
Florian


      parent reply	other threads:[~2021-12-16 19:26 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-07  8:26 [PATCH] " Siddhesh Poyarekar
2021-12-07 16:06 ` Florian Weimer
2021-12-07 16:21   ` Siddhesh Poyarekar
2021-12-07 16:30     ` Florian Weimer
2021-12-07 18:52 ` Joseph Myers
2021-12-07 20:13 ` Adhemerval Zanella
2021-12-08  4:34   ` Siddhesh Poyarekar
2021-12-08  6:39 ` [PATCH v2] " Siddhesh Poyarekar
2021-12-10 17:35   ` Siddhesh Poyarekar
2021-12-10 19:28   ` Adhemerval Zanella
2021-12-13  3:02 ` [COMMITTED] " Siddhesh Poyarekar
2021-12-13 13:22   ` H.J. Lu
2021-12-13 13:41     ` Siddhesh Poyarekar
2021-12-13 13:43       ` H.J. Lu
2021-12-13 14:28   ` Siddhesh Poyarekar
2021-12-13 15:29     ` Siddhesh Poyarekar
2021-12-16 19:26   ` Florian Weimer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87v8zogxl3.fsf@oldenburg.str.redhat.com \
    --to=fweimer@redhat.com \
    --cc=libc-alpha@sourceware.org \
    --cc=siddhesh@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).