PowerPC glibc patches

Fernandes, Joao Moreira (EXT-Other PT/Amadora) Joao.M.Fernandes.ext@coriant.com
Mon Oct 14 12:46:00 GMT 2013


While trying to build a toolchain for a PowerPC system with gcc 4.8.1, binutils 2.22 and glibc 2.8, I faced some difficulties. Firstly, patch glibc/2.9/600-recent-binutils.patch also had to be applied to glibc 2.8; secondly, gcc 4.8 dropped -mnew-mnemonics/-mold-mnemonics options, so I had to remove -mnew-mnemonics from sysdeps/powerpc/Makefile - this is safe as -mnew-mnemonics is gcc's default since the early 90's - and this applies to glibc versions < 2.17; lastly, the patch from https://sourceware.org/ml/crossgcc/2008-10/msg00010.html had to be applied. A set of patches addressing all these issues is attached.

After these changes I was able to successfully build the toolchain (config file attached). Enabling "Disable symbols versioning" in the "C Library" section made the build fail, but I didn't have the time to investigate why.

Regards,

João Fernandes

R&D Engineer

Mobile: +351 964 697 037

Address:
Base Software Group
Rua Irmãos Siemens, 1 - Edifício 9, Piso 1
2720-093 Alfragide
Portugal

joao.m.fernandes.ext@coriant.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: glibc_patches.patch
Type: application/octet-stream
Size: 13021 bytes
Desc: glibc_patches.patch
URL: <http://sourceware.org/pipermail/crossgcc/attachments/20131014/fb4e128f/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: crosstool_ng-powerpc-softfp-gcc481-binutils222-glibc28.config
Type: application/octet-stream
Size: 12322 bytes
Desc: crosstool_ng-powerpc-softfp-gcc481-binutils222-glibc28.config
URL: <http://sourceware.org/pipermail/crossgcc/attachments/20131014/fb4e128f/attachment-0001.obj>
-------------- next part --------------
--
For unsubscribe information see http://sourceware.org/lists.html#faq


More information about the crossgcc mailing list