gcc-cross: remove --with-linker-hash-style
PATCH v2 1/1 gcc-cross: remove --with-linker-hash-style
From: Christopher Larson <[email protected]>
We explicitly set the hash style to gnu in our LDFLAGS. Setting the default to this in the toolchain, while convenient, actually hides bugs, as a failure to obey LDFLAGS isn't noticed. By removing this, it's not dissimilar to how we poison the sysroot -- rather than relying on the default, notice right away if somoeone isn't obeying the needed flags.
This will result in a failure to obey LDFLAGS causing a GNU_HASH QA failure, which is what's often seen with external toolchains. This brings us all on the same page, and makes sure a failure to obey LDFLAGS is seen early.
This is limited to cross, to retain ease of use for SDKs.
--- meta/recipes-devtools/gcc/gcc-4.9.inc | 3 ++- meta/recipes-devtools/gcc/gcc-5.3.inc | 3 ++- meta/recipes-devtools/gcc/gcc-6.1.inc | 3 ++- meta/recipes-devtools/gcc/gcc-cross.inc | 1 + 4 files changed, 7 insertions(+), 3 deletions(-)
meta/recipes-devtools/gcc/gcc-4.9.inc +2 -1
@@ -107,13 +107,14 @@ JAVA = "" LTO = "--enable-lto" +OECONF_HASH_STYLE = "--with-linker-hash-style=${LINKER_HASH_STYLE}" EXTRA_OECONF_BASE = "\ ${LTO} \ + ${OECONF_HASH_STYLE} \ --enable-libssp \ --disable-bootstrap \ --disable-libmudflap \ --with-system-zlib \ - --with-linker-hash-style=${LINKER_HASH_STYLE} \ --enable-linker-build-id \ --with-ppl=no \ --with-cloog=no \
meta/recipes-devtools/gcc/gcc-5.3.inc +2 -1
@@ -113,14 +113,15 @@ JAVA = "" LTO = "--enable-lto" +OECONF_HASH_STYLE = "--with-linker-hash-style=${LINKER_HASH_STYLE}" EXTRA_OECONF_BASE = "\ ${LTO} \ + ${OECONF_HASH_STYLE} \ --enable-libssp \ --enable-libitm \ --disable-bootstrap \ --disable-libmudflap \ --with-system-zlib \ - --with-linker-hash-style=${LINKER_HASH_STYLE} \ --enable-linker-build-id \ --with-ppl=no \ --with-cloog=no \
meta/recipes-devtools/gcc/gcc-6.1.inc +2 -1
@@ -93,14 +93,15 @@ JAVA = "" LTO = "--enable-lto" +OECONF_HASH_STYLE = "--with-linker-hash-style=${LINKER_HASH_STYLE}" EXTRA_OECONF_BASE = "\ ${LTO} \ + ${OECONF_HASH_STYLE} \ --enable-libssp \ --enable-libitm \ --disable-bootstrap \ --disable-libmudflap \ --with-system-zlib \ - --with-linker-hash-style=${LINKER_HASH_STYLE} \ --enable-linker-build-id \ --with-ppl=no \ --with-cloog=no \
meta/recipes-devtools/gcc/gcc-cross.inc +1 -0
@@ -33,6 +33,7 @@ EXTRA_OECONF_PATHS = "\ --with-sysroot=/not/exist \ --with-build-sysroot=${STAGING_DIR_TARGET} \ " +OECONF_HASH_STYLE = "" ARCH_FLAGS_FOR_TARGET += "-isystem${STAGING_DIR_TARGET}${target_includedir}"
Signature · 1 line
2.8.0
Quoted 17 lines · Christopher Larson
From: Christopher Larson <[email protected]>
We explicitly set the hash style to gnu in our LDFLAGS. Setting the default to
this in the toolchain, while convenient, actually hides bugs, as a failure to
obey LDFLAGS isn't noticed. By removing this, it's not dissimilar to how we poison the sysroot -- rather than relying on the default, notice right away if
somoeone isn't obeying the needed flags.This will result in a failure to obey LDFLAGS causing a
GNU_HASHQA failure,
which is what's often seen with external toolchains. This brings us all on the
same page, and makes sure a failure to obey LDFLAGS is seen early.
Quoted 4 lines
This is limited to cross, to retain ease of use for SDKs.
Signed-off-by Christopher Larson <[email protected]>
v2 changes: dropped the change to the sdk to keep ease of use there, as we mainly want this for fixing recipes, not externally built stuff. The fixes for qt3 and some other recipes were merged. Only one is pending, a fix for service in meta-skeleton to obey LDFLAGS, which is forthcoming.
Signature · 5 lines
Christopher Larson kergoth at gmail dot com Founder - BitBake, OpenEmbedded, OpenZaurus Maintainer - Tslib Senior Software Engineer, Mentor Graphics
Quoted 89 lines · Christopher Larson
From: Christopher Larson <[email protected]>
We explicitly set the hash style to gnu in our LDFLAGS. Setting the default to this in the toolchain, while convenient, actually hides bugs, as a failure to obey LDFLAGS isn't noticed. By removing this, it's not dissimilar to how we poison the sysroot -- rather than relying on the default, notice right away if somoeone isn't obeying the needed flags.
This will result in a failure to obey LDFLAGS causing a
GNU_HASHQA failure, which is what's often seen with external toolchains. This brings us all on the same page, and makes sure a failure to obey LDFLAGS is seen early.This is limited to cross, to retain ease of use for SDKs.
Signed-off-by Christopher Larson <[email protected]>--- meta/recipes-devtools/gcc/gcc-4.9.inc | 3 ++- meta/recipes-devtools/gcc/gcc-5.3.inc | 3 ++- meta/recipes-devtools/gcc/gcc-6.1.inc | 3 ++- meta/recipes-devtools/gcc/gcc-cross.inc | 1 + 4 files changed, 7 insertions(+), 3 deletions(-)meta/recipes-devtools/gcc/gcc-4.9.inc +2
-1@@ -107,13 +107,14 @@ JAVA = "" LTO = "--enable-lto" +OECONF_HASH_STYLE = "--with-linker-hash-style=${LINKER_HASH_STYLE}" EXTRA_OECONF_BASE = "\ ${LTO} \ + ${OECONF_HASH_STYLE} \ --enable-libssp \ --disable-bootstrap \ --disable-libmudflap \ --with-system-zlib \ - --with-linker-hash-style=${LINKER_HASH_STYLE} \ --enable-linker-build-id \ --with-ppl=no \ --with-cloog=no \meta/recipes-devtools/gcc/gcc-5.3.inc +2
-1@@ -113,14 +113,15 @@ JAVA = "" LTO = "--enable-lto" +OECONF_HASH_STYLE = "--with-linker-hash-style=${LINKER_HASH_STYLE}" EXTRA_OECONF_BASE = "\ ${LTO} \ + ${OECONF_HASH_STYLE} \ --enable-libssp \ --enable-libitm \ --disable-bootstrap \ --disable-libmudflap \ --with-system-zlib \ - --with-linker-hash-style=${LINKER_HASH_STYLE} \ --enable-linker-build-id \ --with-ppl=no \ --with-cloog=no \meta/recipes-devtools/gcc/gcc-6.1.inc +2
-1@@ -93,14 +93,15 @@ JAVA = "" LTO = "--enable-lto" +OECONF_HASH_STYLE = "--with-linker-hash-style=${LINKER_HASH_STYLE}" EXTRA_OECONF_BASE = "\ ${LTO} \ + ${OECONF_HASH_STYLE} \ --enable-libssp \ --enable-libitm \ --disable-bootstrap \ --disable-libmudflap \ --with-system-zlib \ - --with-linker-hash-style=${LINKER_HASH_STYLE} \ --enable-linker-build-id \ --with-ppl=no \ --with-cloog=no \meta/recipes-devtools/gcc/gcc-cross.inc +0
-0
meta/recipes-devtools/gcc/gcc-cross.inc EXTRA_OECONF_PATHS = "\ · line 36
Quoted 4 lines
meta/recipes-devtools/gcc/gcc-cross.inc +1
-0@@ -33,6 +33,7 @@ EXTRA_OECONF_PATHS = "\ --with-sysroot=/not/exist \ --with-build-sysroot=${STAGING_DIR_TARGET} \ " +OECONF_HASH_STYLE = ""
May be we can just explicitly override default LINKER_HASH_STYLE here by setting LINKER_HASH_STYLE = "sysv"
which is effectively what we are doing by removing the option.
Quoted 11 lines
meta/recipes-devtools/gcc/gcc-cross.inc +0
-1ARCH_FLAGS_FOR_TARGET += "-isystem${STAGING_DIR_TARGET}${target_includedir}" --2.8.0
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Quoted 97 lines · Khem Raj
Quoted 3 lines · Christopher Larson
From: Christopher Larson <[email protected]>
We explicitly set the hash style to gnu in our LDFLAGS. Setting the
default to
Quoted 1 line
this in the toolchain, while convenient, actually hides bugs, as a
failure to
Quoted 1 line
obey LDFLAGS isn't noticed. By removing this, it's not dissimilar to how
we
Quoted 1 line
poison the sysroot -- rather than relying on the default, notice right
away if
Quoted 3 lines
somoeone isn't obeying the needed flags.
This will result in a failure to obey LDFLAGS causing a
GNU_HASHQAfailure,
Quoted 1 line
which is what's often seen with external toolchains. This brings us all
on the
Quoted 5 lines
same page, and makes sure a failure to obey LDFLAGS is seen early.
This is limited to cross, to retain ease of use for SDKs.
Signed-off-by Christopher Larson <[email protected]>Review
Quoted 8 lines
--- meta/recipes-devtools/gcc/gcc-4.9.inc | 3 ++- meta/recipes-devtools/gcc/gcc-5.3.inc | 3 ++- meta/recipes-devtools/gcc/gcc-6.1.inc | 3 ++- meta/recipes-devtools/gcc/gcc-cross.inc | 1 + 4 files changed, 7 insertions(+), 3 deletions(-)(quoted diff) +0
-0b/meta/recipes-devtools/gcc/gcc-4.9.inc
Review
Quoted 20 lines
index 64701c8..05e02d9 100644
meta/recipes-devtools/gcc/gcc-4.9.inc +2
-1@@ -107,13 +107,14 @@ JAVA = "" LTO = "--enable-lto" +OECONF_HASH_STYLE = "--with-linker-hash-style=${LINKER_HASH_STYLE}" EXTRA_OECONF_BASE = "\ ${LTO} \ + ${OECONF_HASH_STYLE} \ --enable-libssp \ --disable-bootstrap \ --disable-libmudflap \ --with-system-zlib \ - --with-linker-hash-style=${LINKER_HASH_STYLE} \ --enable-linker-build-id \ --with-ppl=no \ --with-cloog=no \(quoted diff) +0
-0b/meta/recipes-devtools/gcc/gcc-5.3.inc
Review
Quoted 21 lines
index 8613a10..faa1292 100644
meta/recipes-devtools/gcc/gcc-5.3.inc +2
-1@@ -113,14 +113,15 @@ JAVA = "" LTO = "--enable-lto" +OECONF_HASH_STYLE = "--with-linker-hash-style=${LINKER_HASH_STYLE}" EXTRA_OECONF_BASE = "\ ${LTO} \ + ${OECONF_HASH_STYLE} \ --enable-libssp \ --enable-libitm \ --disable-bootstrap \ --disable-libmudflap \ --with-system-zlib \ - --with-linker-hash-style=${LINKER_HASH_STYLE} \ --enable-linker-build-id \ --with-ppl=no \ --with-cloog=no \(quoted diff) +0
-0b/meta/recipes-devtools/gcc/gcc-6.1.inc
Review
Quoted 21 lines
index 1a00f3f..e3ff9cb 100644
meta/recipes-devtools/gcc/gcc-6.1.inc +2
-1@@ -93,14 +93,15 @@ JAVA = "" LTO = "--enable-lto" +OECONF_HASH_STYLE = "--with-linker-hash-style=${LINKER_HASH_STYLE}" EXTRA_OECONF_BASE = "\ ${LTO} \ + ${OECONF_HASH_STYLE} \ --enable-libssp \ --enable-libitm \ --disable-bootstrap \ --disable-libmudflap \ --with-system-zlib \ - --with-linker-hash-style=${LINKER_HASH_STYLE} \ --enable-linker-build-id \ --with-ppl=no \ --with-cloog=no \(quoted diff) +0
-0b/meta/recipes-devtools/gcc/gcc-cross.inc
Quoted 12 lines
meta/recipes-devtools/gcc/gcc-cross.inc EXTRA_OECONF_PATHS = "\ · line 36
Quoted 8 lines
index f479360..850c63a 100644
meta/recipes-devtools/gcc/gcc-cross.inc +1
-0@@ -33,6 +33,7 @@ EXTRA_OECONF_PATHS = "\ --with-sysroot=/not/exist \ --with-build-sysroot=${STAGING_DIR_TARGET} \ " +OECONF_HASH_STYLE = ""May be we can just explicitly override default
LINKER_HASH_STYLEhere by settingLINKER_HASH_STYLE= "sysv"
which is effectively what we are doing by removing the option.
Ah, good idea, that would be simpler. Thanks, I'll try that.
Signature · 5 lines
Christopher Larson kergoth at gmail dot com Founder - BitBake, OpenEmbedded, OpenZaurus Maintainer - Tslib Senior Software Engineer, Mentor Graphics