All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] glibc: Enable static PIE support
@ 2018-02-28 20:46 Khem Raj
  2018-02-28 21:05 ` ✗ patchtest: failure for " Patchwork
  2018-03-01  8:35 ` [PATCH] " Burton, Ross
  0 siblings, 2 replies; 4+ messages in thread
From: Khem Raj @ 2018-02-28 20:46 UTC (permalink / raw)
  To: openembedded-core

go programs when compiled with PIE fails otherwise on aarch64

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/recipes-core/glibc/glibc_2.27.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-core/glibc/glibc_2.27.bb b/meta/recipes-core/glibc/glibc_2.27.bb
index e9d4117a47..62db3e9d02 100644
--- a/meta/recipes-core/glibc/glibc_2.27.bb
+++ b/meta/recipes-core/glibc/glibc_2.27.bb
@@ -81,6 +81,7 @@ EXTRA_OECONF = "--enable-kernel=${OLDEST_KERNEL} \
                 --enable-bind-now \
                 --enable-stack-protector=strong \
                 --enable-stackguard-randomization \
+                --enable-static-pie \
                 ${GLIBC_EXTRA_OECONF}"
 
 EXTRA_OECONF += "${@get_libc_fpu_setting(bb, d)}"
-- 
2.16.2



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* ✗ patchtest: failure for glibc: Enable static PIE support
  2018-02-28 20:46 [PATCH] glibc: Enable static PIE support Khem Raj
@ 2018-02-28 21:05 ` Patchwork
  2018-03-01  8:35 ` [PATCH] " Burton, Ross
  1 sibling, 0 replies; 4+ messages in thread
From: Patchwork @ 2018-02-28 21:05 UTC (permalink / raw)
  To: Khem Raj; +Cc: openembedded-core

== Series Details ==

Series: glibc: Enable static PIE support
Revision: 1
URL   : https://patchwork.openembedded.org/series/11152/
State : failure

== Summary ==


Thank you for submitting this patch series to OpenEmbedded Core. This is
an automated response. Several tests have been executed on the proposed
series by patchtest resulting in the following failures:



* Issue             Series does not apply on top of target branch [test_series_merge_on_head] 
  Suggested fix    Rebase your series on top of targeted branch
  Targeted branch  master (currently at b30153a157)



If you believe any of these test results are incorrect, please reply to the
mailing list (openembedded-core@lists.openembedded.org) raising your concerns.
Otherwise we would appreciate you correcting the issues and submitting a new
version of the patchset if applicable. Please ensure you add/increment the
version number when sending the new version (i.e. [PATCH] -> [PATCH v2] ->
[PATCH v3] -> ...).

---
Guidelines:     https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest
Test suite:     http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] glibc: Enable static PIE support
  2018-02-28 20:46 [PATCH] glibc: Enable static PIE support Khem Raj
  2018-02-28 21:05 ` ✗ patchtest: failure for " Patchwork
@ 2018-03-01  8:35 ` Burton, Ross
  2018-03-01  9:56   ` Khem Raj
  1 sibling, 1 reply; 4+ messages in thread
From: Burton, Ross @ 2018-03-01  8:35 UTC (permalink / raw)
  To: Khem Raj; +Cc: OE-core

[-- Attachment #1: Type: text/plain, Size: 1579 bytes --]

Would this be the cause of glibc failing to build like this on PPC?

|
/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-ppc/build/build/tmp/work/ppc7400-poky-linux/glibc/2.27-r0/recipe-sysroot-native/usr/bin/powerpc-poky-linux.gcc-cross-initial-powerpc/../../libexec/powerpc-poky-linux.gcc-cross-initial-powerpc/gcc/powerpc-poky-linux/7.3.0/ld:
read-only segment has dynamic relocations.

The previous glibc run was all green, added this patch and it fails.

Ross

On 28 February 2018 at 20:46, Khem Raj <raj.khem@gmail.com> wrote:

> go programs when compiled with PIE fails otherwise on aarch64
>
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ---
>  meta/recipes-core/glibc/glibc_2.27.bb | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/meta/recipes-core/glibc/glibc_2.27.bb
> b/meta/recipes-core/glibc/glibc_2.27.bb
> index e9d4117a47..62db3e9d02 100644
> --- a/meta/recipes-core/glibc/glibc_2.27.bb
> +++ b/meta/recipes-core/glibc/glibc_2.27.bb
> @@ -81,6 +81,7 @@ EXTRA_OECONF = "--enable-kernel=${OLDEST_KERNEL} \
>                  --enable-bind-now \
>                  --enable-stack-protector=strong \
>                  --enable-stackguard-randomization \
> +                --enable-static-pie \
>                  ${GLIBC_EXTRA_OECONF}"
>
>  EXTRA_OECONF += "${@get_libc_fpu_setting(bb, d)}"
> --
> 2.16.2
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>

[-- Attachment #2: Type: text/html, Size: 2710 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] glibc: Enable static PIE support
  2018-03-01  8:35 ` [PATCH] " Burton, Ross
@ 2018-03-01  9:56   ` Khem Raj
  0 siblings, 0 replies; 4+ messages in thread
From: Khem Raj @ 2018-03-01  9:56 UTC (permalink / raw)
  To: Burton, Ross; +Cc: OE-core

On Thu, Mar 1, 2018 at 12:35 AM, Burton, Ross <ross.burton@intel.com> wrote:
> Would this be the cause of glibc failing to build like this on PPC?
>
> |
> /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-ppc/build/build/tmp/work/ppc7400-poky-linux/glibc/2.27-r0/recipe-sysroot-native/usr/bin/powerpc-poky-linux.gcc-cross-initial-powerpc/../../libexec/powerpc-poky-linux.gcc-cross-initial-powerpc/gcc/powerpc-poky-linux/7.3.0/ld:
> read-only segment has dynamic relocations.
>

yes, I think we need to enable this option only for x86/x86_64/aarch64
since they alone support static PIE and may be we should limit this
to only with security_flags are enabled.

> The previous glibc run was all green, added this patch and it fails.
>
> Ross
>
> On 28 February 2018 at 20:46, Khem Raj <raj.khem@gmail.com> wrote:
>>
>> go programs when compiled with PIE fails otherwise on aarch64
>>
>> Signed-off-by: Khem Raj <raj.khem@gmail.com>
>> ---
>>  meta/recipes-core/glibc/glibc_2.27.bb | 1 +
>>  1 file changed, 1 insertion(+)
>>
>> diff --git a/meta/recipes-core/glibc/glibc_2.27.bb
>> b/meta/recipes-core/glibc/glibc_2.27.bb
>> index e9d4117a47..62db3e9d02 100644
>> --- a/meta/recipes-core/glibc/glibc_2.27.bb
>> +++ b/meta/recipes-core/glibc/glibc_2.27.bb
>> @@ -81,6 +81,7 @@ EXTRA_OECONF = "--enable-kernel=${OLDEST_KERNEL} \
>>                  --enable-bind-now \
>>                  --enable-stack-protector=strong \
>>                  --enable-stackguard-randomization \
>> +                --enable-static-pie \
>>                  ${GLIBC_EXTRA_OECONF}"
>>
>>  EXTRA_OECONF += "${@get_libc_fpu_setting(bb, d)}"
>> --
>> 2.16.2
>>
>> --
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-03-01  9:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-28 20:46 [PATCH] glibc: Enable static PIE support Khem Raj
2018-02-28 21:05 ` ✗ patchtest: failure for " Patchwork
2018-03-01  8:35 ` [PATCH] " Burton, Ross
2018-03-01  9:56   ` Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.