<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/meta-openembedded.git/meta-initramfs/recipes-devtools/klibc/klibc.inc, branch zeus-next</title>
<subtitle>Mirror of git.openembedded.org/meta-openembedded</subtitle>
<id>https://git.enea.com/cgit/linux/meta-openembedded.git/atom?h=zeus-next</id>
<link rel='self' href='https://git.enea.com/cgit/linux/meta-openembedded.git/atom?h=zeus-next'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-openembedded.git/'/>
<updated>2019-09-03T23:02:03+00:00</updated>
<entry>
<title>klibc: Fix build with 5.2+ kernel headers</title>
<updated>2019-09-03T23:02:03+00:00</updated>
<author>
<name>Khem Raj</name>
<email>raj.khem@gmail.com</email>
</author>
<published>2019-09-03T17:47:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-openembedded.git/commit/?id=ab3072ee4cf555eb5eb8b6200fd0ffb3eab3f947'/>
<id>urn:sha1:ab3072ee4cf555eb5eb8b6200fd0ffb3eab3f947</id>
<content type='text'>
Signed-off-by: Khem Raj &lt;raj.khem@gmail.com&gt;
</content>
</entry>
<entry>
<title>klibc: Disable bcmp builtin for clang on glibc as well</title>
<updated>2019-08-17T19:20:48+00:00</updated>
<author>
<name>Khem Raj</name>
<email>raj.khem@gmail.com</email>
</author>
<published>2019-08-17T19:19:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-openembedded.git/commit/?id=806fbbf81788648e567dc79c2bea98de69f79cc0'/>
<id>urn:sha1:806fbbf81788648e567dc79c2bea98de69f79cc0</id>
<content type='text'>
Signed-off-by: Khem Raj &lt;raj.khem@gmail.com&gt;
</content>
</entry>
<entry>
<title>klibc: Pass -fno-builtin-bcmp with musl/clang combo</title>
<updated>2019-08-08T17:01:45+00:00</updated>
<author>
<name>Khem Raj</name>
<email>raj.khem@gmail.com</email>
</author>
<published>2019-08-06T19:00:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-openembedded.git/commit/?id=11bc2775af3e47399ac268a2e6fbd63185e478ef'/>
<id>urn:sha1:11bc2775af3e47399ac268a2e6fbd63185e478ef</id>
<content type='text'>
clang would emit bcmp built-in for musl bases system
but here we do not link in musl C library, so its best
to disable it

Fixes
git/usr/klibc/memmem.c:38: undefined reference to `bcmp'

Signed-off-by: Khem Raj &lt;raj.khem@gmail.com&gt;
Cc: Andrea Adami &lt;andrea.adami@gmail.com&gt;
</content>
</entry>
<entry>
<title>klibc: Upgrade to 2.0.6 release</title>
<updated>2019-03-14T14:24:03+00:00</updated>
<author>
<name>Khem Raj</name>
<email>raj.khem@gmail.com</email>
</author>
<published>2019-03-12T20:11:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-openembedded.git/commit/?id=9d8943fd2ec43868a1ca76712fd15dcc144f75ff'/>
<id>urn:sha1:9d8943fd2ec43868a1ca76712fd15dcc144f75ff</id>
<content type='text'>
Drop staging related patches which are not needed anymore

Signed-off-by: Khem Raj &lt;raj.khem@gmail.com&gt;
Cc: Andrea Adami &lt;andrea.adami@gmail.com&gt;
</content>
</entry>
<entry>
<title>klibc: Fix build with clang</title>
<updated>2018-12-10T00:53:16+00:00</updated>
<author>
<name>Khem Raj</name>
<email>raj.khem@gmail.com</email>
</author>
<published>2018-12-10T00:53:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-openembedded.git/commit/?id=2a3c90d2ab095b5181de7066963c3b63e990f2a3'/>
<id>urn:sha1:2a3c90d2ab095b5181de7066963c3b63e990f2a3</id>
<content type='text'>
Newer versions of clang optimize the calls to use unlocked variants of
these functions

Fixes
| capabilities.c:(.text+0xb4): undefined reference to `fread_unlocked'
| arm-yoe-linux-gnueabi-ld.bfd: capabilities.c:(.text+0x11a): undefined
reference to `fwrite_unlocked'

Signed-off-by: Khem Raj &lt;raj.khem@gmail.com&gt;
Cc: Andrea Adami &lt;andrea.adami@gmail.com&gt;
</content>
</entry>
<entry>
<title>klibc: fix build for mipsel and mips64el with security flags enabled</title>
<updated>2018-12-05T01:51:35+00:00</updated>
<author>
<name>Andrea Adami</name>
<email>andrea.adami@gmail.com</email>
</author>
<published>2018-12-04T15:00:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-openembedded.git/commit/?id=981aa87a2350f7838e0573fde2aab7dc7670080e'/>
<id>urn:sha1:981aa87a2350f7838e0573fde2aab7dc7670080e</id>
<content type='text'>
Fix relocations like:
| mipsel-oe-linux-musl-ld.bfd: usr/klibc/libc.a(kill.o):
 relocation R_MIPS_26 against `__syscall_common' can not be used when making a shared object; recompile with -fPIC

Signed-off-by: Andrea Adami &lt;andrea.adami@gmail.com&gt;
Signed-off-by: Khem Raj &lt;raj.khem@gmail.com&gt;
</content>
</entry>
<entry>
<title>klibc.inc: lazy assign GCCPIE in case security_flags.inc was not included</title>
<updated>2018-09-26T05:24:15+00:00</updated>
<author>
<name>Andrea Adami</name>
<email>andrea.adami@gmail.com</email>
</author>
<published>2018-09-25T20:27:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-openembedded.git/commit/?id=db89a0df16bf0dbf9b565c844a5f4202ffb1aad7'/>
<id>urn:sha1:db89a0df16bf0dbf9b565c844a5f4202ffb1aad7</id>
<content type='text'>
fix build error (GCCPIE is unset):

EXTRA_KLIBCAFLAGS=${SECURITY_CFLAGS} -Wa,--noexecstack
EXTRA_KLIBCLDFLAGS=${@-z relro -z now -pie if  else } -z noexecstack
| make: invalid option -- 'z'
| make: invalid option -- ' '

Signed-off-by: Andrea Adami &lt;andrea.adami@gmail.com&gt;
Signed-off-by: Khem Raj &lt;raj.khem@gmail.com&gt;
</content>
</entry>
<entry>
<title>klibc: fix build with GCC and -pie for mips, mips64, aarch64</title>
<updated>2018-09-15T14:37:11+00:00</updated>
<author>
<name>Andrea Adami</name>
<email>andrea.adami@gmail.com</email>
</author>
<published>2018-09-15T14:27:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-openembedded.git/commit/?id=a06c29be2f5bc204f965ee07298c34232c5c39fc'/>
<id>urn:sha1:a06c29be2f5bc204f965ee07298c34232c5c39fc</id>
<content type='text'>
The MCONFIG makefiles for mips/mips64 do disable pic so we do not insist
linking it with -pie.

For aarch64 we have to readd the -Os optimization to avoid

 | usr/dash/shell.h:103:25: error:
 '-mgeneral-regs-only' is incompatible with floating-point argument

as committed (c296fb707ae3 klibc: Pass Optimization with KLIBCOPTFLAGS)
but reverted (76bc58e9329 klibc: Fix build with security flags) trying to
fix the i386 build (see ld.bfd: discarded output section: `.got.plt').
This latter issue was fixed for i386 passing -pie to the linker.

Signed-off-by: Andrea Adami &lt;andrea.adami@gmail.com&gt;
Signed-off-by: Khem Raj &lt;raj.khem@gmail.com&gt;
</content>
</entry>
<entry>
<title>klibc: fix build on i386 with GCC and security flags enabled</title>
<updated>2018-09-15T14:36:21+00:00</updated>
<author>
<name>Andrea Adami</name>
<email>andrea.adami@gmail.com</email>
</author>
<published>2018-09-14T18:02:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-openembedded.git/commit/?id=a95dde286863dc80da375265c4b3d35f246e1258'/>
<id>urn:sha1:a95dde286863dc80da375265c4b3d35f246e1258</id>
<content type='text'>
ld fails if distro's security-flags are enabled:
Inject the SECURITY_XFLAGS if security_flags.inc was included.

Fix on i386: ld: discarded output section: `.got.plt'

Signed-off-by: Andrea Adami &lt;andrea.adami@gmail.com&gt;
Signed-off-by: Khem Raj &lt;raj.khem@gmail.com&gt;
</content>
</entry>
<entry>
<title>klibc: Fix build with security flags</title>
<updated>2018-09-12T05:48:21+00:00</updated>
<author>
<name>Khem Raj</name>
<email>raj.khem@gmail.com</email>
</author>
<published>2018-09-12T00:15:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-openembedded.git/commit/?id=76bc58e93290544cc8c0e3322e777626a35a6eb1'/>
<id>urn:sha1:76bc58e93290544cc8c0e3322e777626a35a6eb1</id>
<content type='text'>
Drop -Os which is also causing the relro
Fixes
| x86_64-bec-linux-musl-ld.bfd: discarded output section: `.got.plt'

Signed-off-by: Khem Raj &lt;raj.khem@gmail.com&gt;
Cc: Andrea Adami &lt;andrea.adami@gmail.com&gt;
</content>
</entry>
</feed>
