Commit Graph

3546 Commits

Author SHA1 Message Date
Max Filippov
c842c9fd31 binutils: fix .init/.fini literals moving in xtensa gas
Despite the documentation and the comment in xtensa_move_literals, in
the presence of --text-section-literals and --auto-litpools literals are
moved from the separate literal sections into .init and .fini, because
the check in the xtensa_move_literals is incorrect.

This fixes build errors seen with projects that have .init/.fini and use
text-section-literals.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
2016-02-18 02:37:02 +03:00
Bryan Hundven
8460611d5f Update README.md
Newlines
2016-02-15 01:17:24 -08:00
Bryan Hundven
b5ba71d54f Update README.md
Add irc and mailing list info
2016-02-15 01:16:59 -08:00
Bryan Hundven
b1c319da45 Merge pull request #337 from bhundven/softlink_custom_directory
functions: Softlink custom directory
2016-02-08 16:10:18 -08:00
Bryan Hundven
12d24ee33b functions: Softlink custom directory
Hardlinking the custom source directory does not work across separate
mount points. Chnage this to a softlink instead.

This closes #336

Reported-by: Jasmin Jessich <jasmin@anw.at>
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2016-02-08 16:06:39 -08:00
Bryan Hundven
1cfc160f9d Merge pull request #322 from modbw/libelf
Remove GCC dependency to libelf
2016-02-08 15:59:21 -08:00
Bryan Hundven
2741a568a6 Merge pull request #335 from jcmvbkbc/xtensa-binutils-loc-fix
binutils: fix .loc handling in xtensa gas
2016-02-05 19:46:54 -08:00
Bryan Hundven
69eb570f19 Merge pull request #333 from bhundven/update_uclibc-ng
uClibc-ng: Update to 1.0.12
2016-02-05 19:46:46 -08:00
Max Filippov
b1459d123f binutils: fix .loc handling in xtensa gas
Binutils change 1058c7532d0b "Use signed data type for R_XTENSA_DIFF*
relocation offsets." changed signedness of BFD_RELOC_XTENSA_DIFF*
relocations substituted for BFD_RELOC_*. This made it impossible to
encode arbitrary 8-, 16- and 32-bit values, which broke e.g. debug info
encoding by .loc directive. Revert this part and add test.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
2016-02-06 01:19:45 +03:00
Bryan Hundven
c20075fd21 uClibc-ng: Update to 1.0.12
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2016-02-05 13:27:24 -08:00
Bryan Hundven
62abbd5052 Merge pull request #332 from bhundven/update_gdb
Update gdb
2016-02-05 13:20:02 -08:00
Bryan Hundven
1edc845660 gdb: Update patches for gdb-7.10.1
Notable here is the removal of 10-setns-handling.patch, which is now
upstream.

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2016-02-05 03:27:43 -08:00
Bryan Hundven
6edcb10574 gdb: Add version 7.10.1
It's been out for a while, just haven't gotten around to it.

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2016-02-05 03:27:08 -08:00
Bryan Hundven
ce83329f4d Merge pull request #331 from bhundven/update_binutils
binutils: Add binutils-2.26
2016-02-05 03:13:28 -08:00
Bryan Hundven
46c9c486d0 binutils: Update patches for binutils-2.26
This updates patches for 2.26. Most notably, the removal of the xtensa
patches which seem to be upstream in binutils now.

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2016-02-04 23:50:19 -08:00
Bryan Hundven
2241a42415 binutils: Add binutils-2.26
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2016-02-04 22:55:08 -08:00
Bryan Hundven
6702ff8deb Merge pull request #330 from bhundven/cpath_testorabort
env: Bail out if CPATH and friends are set
2016-02-04 02:33:58 -08:00
Bryan Hundven
10af186f5c env: Bail out if CPATH and friends are set
If CPATH, C_INCLUDE_PATH, CPLUS_INCLUDE_PATH, or OBJC_INCLUDE_PATH are set, bail out.
These environment variables are known to break crosstool-ng's build.

This closes #327

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2016-02-04 02:29:18 -08:00
Bryan Hundven
a812405b6c Merge pull request #328 from Christopher83/master
config/gcc: Update to Linaro GCC 5.2-2015.11-2
2016-01-30 05:21:22 -08:00
Cristoforo Cataldo
dc00d22db3 config/gcc: Update to Linaro GCC 5.2-2015.11-2
Signed-off-by: Cristoforo Cataldo <cristoforo.cataldo@gmail.com>
2016-01-30 13:37:57 +01:00
Ray Donnelly
b8ca5bd083 Merge pull request #326 from hanazuki/binutils-patch-for-newer-osx
patches/binutils: wcsncasecmp is provided by OSX >= 10.7
2016-01-24 11:35:44 +00:00
Kasumi Hanazuki
1ced27e223 patches/binutils: wcsncasecmp is provided by OSX >= 10.7
OSX SDK has a declaration for `wcsncasecmp` since 10.7, which conflicts with
the definition provided by the patch for binutils.

Signed-off-by: Kasumi Fukuda <kasumi@rollingapple.net>
2016-01-24 15:09:31 +09:00
Matthias Weisser
3f05fcb52b Remove GCC dependency to libelf
As crosstools-ng only support GCC >= 4.8 we do not need libelf for gcc. GCC dropped this dependency with 4.6.

Signed-off-by: Matthias Weisser <m.weisser.m@gmail.com>
2016-01-18 16:08:23 +01:00
Bryan Hundven
99cf467858 Merge pull request #319 from bhundven/elf2flt_update
Elf2flt update
2016-01-13 06:04:52 -08:00
Bryan Hundven
b44effbc0e linux: allow arm* to build headers for no-mmu
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2016-01-13 06:03:27 -08:00
Bryan Hundven
72f3b9196a elf2flt: Use openadk version of elf2flt
elf2flt is now hosted on github here:
https://github.com/uclinux-dev/elf2flt

But, until arm support is upstream, we'll switch to Waldemar Brodkorb
version of elf2flt.

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2016-01-13 05:58:28 -08:00
Bryan Hundven
4fb8a18ec9 Merge pull request #318 from bhundven/update_uClibc-ng
uClibc-ng: Update to 1.0.11
2016-01-12 08:52:23 -08:00
Bryan Hundven
8cae983532 uClibc-ng: Update to 1.0.11
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2016-01-12 08:51:09 -08:00
Bryan Hundven
182bdbc1b8 Merge pull request #316 from bhundven/fix_build
gcc: fix previous commit
2016-01-07 10:46:20 -08:00
Bryan Hundven
0d4275e0dd gcc: fix previous commit
In a5057713a0
...I forgot to add a line continuation at the break in the 'if'
statement.

Reported-by: asavah <asavah@avh.od.ua>
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2016-01-07 10:45:33 -08:00
Bryan Hundven
f72bd21389 Merge pull request #314 from bhundven/fix_enable_cxx_flags_baremetal
gcc: Fix CC_GCC_ENABLE_CXX_FLAGS for mode=baremetal
2016-01-06 11:25:04 -08:00
Bryan Hundven
a5057713a0 gcc: Fix CC_GCC_ENABLE_CXX_FLAGS for mode=baremetal
When creating a baremetal toolchain, CC_GCC_ENABLE_CXX_FLAGS has no
effect. This closes #298

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2016-01-06 11:22:58 -08:00
Bryan Hundven
7aff139719 Merge pull request #313 from bhundven/remove_gcc_extra_env_array
gcc: remove CC_GCC_EXTRA_ENV_ARRAY
2016-01-06 11:12:49 -08:00
Bryan Hundven
225b96ebc8 gcc: remove CC_GCC_EXTRA_ENV_ARRAY
I was noticing that $extra_user_env was inconsistently used in
100-gcc.sh. I don't feel comfortable having just any make flag or
environment variable passed to make from a config file. If a specific
option needs to be passed to make for gcc, then a specific kconfig
option should be added for that make flag/option/env.

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2016-01-06 11:07:06 -08:00
Bryan Hundven
31c6ebab07 Merge pull request #312 from bhundven/sync_gcc_backends
gcc: Sync backend functions
2016-01-06 11:00:58 -08:00
Bryan Hundven
311a78d6e1 gcc: Sync backend functions
The two gcc backend functions are getting very close to being duplicated
code. To help in the process of merging the two backends, this change
syncronizes the two functions so they are easier to diff.

This commit has no functional changes.

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2016-01-06 10:59:26 -08:00
Bryan Hundven
50248e37e8 Merge pull request #296 from FreddieChopin/add-gmp-6.1.0
gmp: add version 6.1.0
2016-01-06 10:19:23 -08:00
Bryan Hundven
ce74282be4 Merge pull request #309 from bhundven/remove_old_binutils_versions
Remove old binutils versions
2016-01-05 21:45:48 -08:00
Bryan Hundven
9375a9e411 Merge pull request #291 from diorcety-ctng/cygwin-more-fixes
Cygwin more fixes
2016-01-03 08:10:24 -08:00
Ray Donnelly
24d17220a1 libelf: Cygwin fix for UNC paths
If destdir was / and prefix began with /
then we would attempt to install libelf
to a path beginning with // which is a
UNC path on Cygwin. This is generally
incorrect.

Signed-off-by: Ray Donnelly <mingw.android@gmail.com>
2016-01-03 15:53:09 +00:00
Ray Donnelly
644522fcd0 libiconv: configure with --disable-nls
On Windows a build failure can be triggered during the
build of the static iconv if a dynamic iconv is already
present:

There's a circular dependency between libiconv and gettext
which (on a system with a dynamic gettext (and thus iconv)
installed in the system prefix) causes a failure to build
iconv.exe statically if it is built with nls ..

.. Which needs gettext
.. which depends on libiconv
.. so libtool finds a dynamically linked libgettext.la
.. and therefore presents ld with the dll import library
     libiconv.dll.a when linking iconv.exe
.. as well as the static libiconv.a that it has just built!
.. leading to multiply defined symbols from iconv.

Therefore, we build it without nls. If it later turns out
that we need it to be built with nls, then I will have to
build it in two passes (common practice when bootstrapping
GNU/Linux distros, MSYS2 and probably Cygwin and Homebrew).

Signed-off-by: Ray Donnelly <mingw.android@gmail.com>
2016-01-03 15:53:07 +00:00
Ray Donnelly
9b4b569741 POSIX: Fix GCC 5+ plugin build failure on Cygwin
Cygwin follows POSIX IEEE Std 1003.1, 2004 Edition spec
for the select() fuction as described at:

http://pubs.opengroup.org/onlinepubs/009695399/functions/pselect.html

.. so we must #include <sys/select.h> for the declaration.

Signed-off-by: Ray Donnelly <mingw.android@gmail.com>
2016-01-03 15:52:52 +00:00
Ray Donnelly
29f03e3295 Cygwin + MinGW-w64: GCC 5+ plugin support
Define PICFLAG, UNDEFINEDPREAMBLE and UNDEFINEDCODE to nothing since Windows
doesn't have -fPIC (GCC warns) and can't handle undefined variable references
(which are not needed anyway).

Signed-off-by: Ray Donnelly <mingw.android@gmail.com>
2016-01-03 15:52:26 +00:00
Ray Donnelly
44ee416289 expat: Tidy up and correct configure flags
Build shared builds for host unless CT_STATIC_TOOLCHAIN.
In all other situations, build statically, as before.

It is necessary that the static/shared-ness of expat matches
that of gettext on Cygwin/MinGW-w64 as they can't be linked
together if they don't match, so we follow the same logic.

Signed-off-by: Ray Donnelly <mingw.android@gmail.com>
2016-01-03 15:52:23 +00:00
Bryan Hundven
91520c2b36 patches/binutils: Sync patches with buildroot
The buildroot patches have xtensa for the supported versions of binutils
we use, and a few others that might help us keep away from host
polution.

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2016-01-03 03:05:27 -08:00
Bryan Hundven
ba8713947e patches/binutils: Remove old patches for binutils
Since we removed older binutils versions, remove patches as well.

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2016-01-03 01:22:02 -08:00
Bryan Hundven
5543f85feb binutils: Remove older versions of binutils
Since older GCC versions have been removed, older versions of binutils
are not needed.

This commit removes these older versions.

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2016-01-03 01:18:32 -08:00
Bryan Hundven
6f1f55e9d2 Merge pull request #308 from bhundven/update_kernel
linux: Update kernel versions
2016-01-02 23:38:36 -08:00
Bryan Hundven
b38fddfecd linux: Update kernel versions
The following versions were updated:
 * 4.3       -> 4.3.3 (stable)
 * 4.2.6     -> 4.2.8 (EOL)
 * 4.1.13    -> 4.1.15
 * 3.18.24   -> 3.18.25
 * 3.14.57   -> 3.14.58
 * 3.12.50   -> 3.12.51
 * 3.10.93   -> 3.10.94
 * 3.2.72    -> 3.2.75
 * 2.6.32.68 -> 2.6.32.69

4.3 mainline is now 4.3.3 stable
The 4.2 series is now EOL. You should move to 4.3.3!

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2016-01-02 23:32:43 -08:00
Bryan Hundven
eeb193a602 Merge pull request #307 from bhundven/update_gcc_linaro
Update gcc linaro
2016-01-02 22:34:51 -08:00