Commit Graph

98 Commits

Author SHA1 Message Date
David Karoly
69b7412120 binutils: fix register lookup table for ppc
The table pre_defined_registers should be sorted alphabetically,
but dsisr register is out of place, causing compile issues.

Change-Id: Icebfe3154043c95789e9ce1b27ffae4b3e88f7bf
Reviewed-on: https://review.haiku-os.org/c/buildtools/+/6988
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2023-10-19 16:28:02 +00:00
Niels Sascha Reedijk
7c502b803e Merge branch 'vendor-binutils' for binutils-2.41 2023-08-05 16:51:25 +01:00
Niels Sascha Reedijk
a635d7fb9b import binutils 2.41 2023-08-05 16:18:06 +01:00
Adrien Destugues
6e159495d4 import binutils 2.36.1 2022-07-15 13:48:03 +02:00
Adrien Destugues
1fbf4ff7c7 import binutils 2.32 2022-07-15 13:44:19 +02:00
Adrien Destugues
795d2053a0 binutils: enable PE on 32bit build
Needed for the 32bit EFI bootloader. Haiku build on Haiku fails
currently because this is not enabled.
2022-02-28 19:12:34 +01:00
David Karoly
7f682463a1 binutils/ld: adjust default page sizes for arm
Change-Id: Ia36ce9ddcca6adf41eaa7c26f2c304a8e934597a
Reviewed-on: https://review.haiku-os.org/c/buildtools/+/4661
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-10-26 13:49:35 +00:00
Alexander von Gluck IV
bc70af2399 binutils/ld: Fix arm target emulation typo
Change-Id: Ia8e6631b3aae04c302104826d1e98a33590ed440
2021-09-03 20:18:36 -05:00
Michael Matz
1673cf9c0f binutils: elf/riscv: Fix relaxation with aliases [PR28021]
* This is a backport of a fix in binutils master and 2.37
  commit: 235f5ef4a6b8fbdcfaea8b629f7c6a9792a789de
* Solves a dobuble-relaxation optimization in binutils under riscv64

Change-Id: I6a2ed520615b5e36bbb0003bf3a6a186c0aaeca1
Reviewed-on: https://review.haiku-os.org/c/buildtools/+/4412
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2021-09-01 20:51:50 +00:00
Alexander von Gluck IV
2f8f3a16b7 binutils/emulparams: Rely on elf_i386.sh, layering haiku on top
* Solves a new segfault encountered while linking our 32-bit
  bios_ia32 loader under x86_64 (-m elf_i386_haiku)
  backtrace:
    _bfd_x86_elf_link_setup_gnu_properties() : reason: SIGSEGV
    elf_i386_link_setup_gnu_properties()
    ldelf_after_open()
    lang_process()
    main()
* I maintained our adjustments which differ / don't exist in
  elf_i386.  Lots of new code inclusions though in elf_i386

Change-Id: I9220730ba41bc029e40d1b4a8e5fbd85b312c1b5
Reviewed-on: https://review.haiku-os.org/c/buildtools/+/4375
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-08-26 20:24:40 +00:00
Alexander von Gluck IV
7c3988da64 binutils: Apply Haiku patches to 2.36.1
* a82c1c - Base Haiku patches
* d113c7 - Fix powerpc gas target for Haiku
* e97614 - arm64 target support
* f91439 - don't require coff, we don't need it anyway
* c3903e - enable PE support for ARM
* f4963f - Add missing __exidx_* to fix arm bootstrap

Change-Id: I27d810fa49c38ed6e1548fc1f880bebb62ee0d64
Reviewed-on: https://review.haiku-os.org/c/buildtools/+/4374
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-08-26 20:24:40 +00:00
Alexander von Gluck IV
46e1ce6913 binutils: Import binutils 2.36.1
Change-Id: I06fc1c19229e26c20132c255c92b7e71ea3cc31a
Reviewed-on: https://review.haiku-os.org/c/buildtools/+/4372
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-08-26 20:24:40 +00:00
Alexander von Gluck IV
f4963fa33e binutils/ld: Add missing __exidx_* to fix arm bootstrap
Change-Id: I3771b54ca5a397950df822f17256ccfb882393d0
Reviewed-on: https://review.haiku-os.org/c/buildtools/+/3547
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-12-24 13:52:35 +00:00
Adrien Destugues
c3903e95f6 binutils: enable PE support for ARM
Needed for building the EFI bootloader.

Unfortunately gcc doesn't know how to generate PE binaries for AArch64,
so a different solution will be needed there.

Change-Id: Id50d57ae81bdd7a18d424305d08fc55f312a2588
Reviewed-on: https://review.haiku-os.org/c/buildtools/+/2414
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2020-07-05 15:12:04 +00:00
Augustin Cavalier
2ebb811a77 Force libiberty to consider all filesystems as potentially case-sensitive.
Whose idea was this?!

Fixes #14963.
2020-05-03 15:47:38 -04:00
François Revol
f91439b9da binutils: don't require coff, we don't need it anyway
binutils dropped support for COFF and a.out so it won't build anyway.
2019-11-02 02:57:15 +01:00
Jaroslaw Pelczar
e97614541b binutils: Add support for Haiku ARM64 target
Signed-off-by: Jaroslaw Pelczar <jarek@jpelczar.com>
Change-Id: Iebbfba7285429bded988ed0f80a574c471fa9f7d
Reviewed-on: https://review.haiku-os.org/c/buildtools/+/1796
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2019-09-01 03:06:22 +00:00
Alexander von Gluck IV
d113c7b5b4 binutils: Fix powerpc gas target for Haiku
Change-Id: Ibdf538b02f3c0dab558ac3f4e3333a4b5cfba2af
2019-07-11 19:13:46 -05:00
Alexander von Gluck IV
a82c1c48e3 binutils: Apply Haiku patches to 2.32
Change-Id: I73351225879f0c62613c9e6eff3e2bfc4251f86c
Reviewed-on: https://review.haiku-os.org/c/1537
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2019-07-11 17:29:38 +00:00
Alexander von Gluck IV
0cb01df558 binutils: Import binutils-2.32
Change-Id: I7a413a81d33762f3cb1e8c67883d1e616f83d0e9
Reviewed-on: https://review.haiku-os.org/c/1536
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2019-07-11 17:29:38 +00:00
PulkoMandy
a07def6dc6 binutils: enable a.out target for sparc.
We need this to build the openfirmware loader.

Change-Id: Ie53a71fffdbe7e08bce5447062618fd05afc8fed
Reviewed-on: https://review.haiku-os.org/c/1362
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2019-04-04 20:32:38 +00:00
Adrien Destugues
198e0fde5e haiku: Get sparc buildtools going
- If kallisti5 is having fun with RISC-V, why can't I too?
- Gets as far as complaining we don't have a libsolv package in
  non-bootstrap builds

Change-Id: I0bb2b632d8f9007d5ad130f8cfddda36787050fc
Reviewed-on: https://review.haiku-os.org/c/1060
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2019-02-19 18:28:17 +00:00
Jérôme Duval
35041506a0 Merge binutils 2.28.1 2017-08-06 14:09:36 +02:00
Jérôme Duval
8b2ef03baf import binutils 2.28.1 2017-08-05 16:32:14 +02:00
Jérôme Duval
233c0fb351 import binutils 2.27 2016-10-10 16:55:00 +02:00
Jérôme Duval
68e96393c7 Merge binutils 2.26.1 2016-07-21 21:36:13 +02:00
Jérôme Duval
5dcc710c26 import binutils 2.26.1 2016-07-21 21:35:07 +02:00
Jérôme Duval
b9cfe212c1 Merge binutils 2.26 2016-02-10 19:02:55 +01:00
Jérôme Duval
69285d07c6 import binutils 2.26 2016-02-10 18:58:24 +01:00
Simon South
0b1666ccbe binutils: ld: Set ELF interpreter to "/system/runtime_loader"
For x86_64 this includes defining a new linker emulation, "elf_x86_64_haiku"
(to match the existing "elf_i386_haiku") and updating gcc accordingly.

Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
2015-10-28 18:05:28 +01:00
Jérôme Duval
e2963a55e6 Merge binutils 2.25.1
Conflicts:
	binutils/gas/configure.tgt
2015-07-24 21:31:12 +02:00
Jérôme Duval
597b3bdc8b import binutils 2.25.1 2015-07-23 20:15:18 +02:00
François Revol
0dfb79fe88 binutils: fix PPC GOT issue
Simplify haiku-specific ppc emulation script, and reuse
common code, which seems to fix the linker issue mentioned
in #10240:
_GLOBAL_OFFSET_TABLE_ not defined in linker created .got
2015-04-20 03:06:24 +02:00
François Revol
ab21027f8a binutils: rename elf_ppc_haiku emulation to elf32ppchaiku
For coherence with other targets.
2015-04-19 17:21:46 +02:00
François Revol
b2f43673a6 binutils: reorder ppc dependency 2015-04-18 19:17:02 +02:00
Jérôme Duval
a05bd9155a Merge binutils 2.25
Conflicts:
	binutils/bfd/config.bfd
	binutils/ld/Makefile.am
	binutils/ld/Makefile.in
2014-12-26 12:16:05 +01:00
Jérôme Duval
36fac57968 import binutils 2.25 2014-12-26 11:26:52 +01:00
Jérôme Duval
c20a732df8 Merge binutils 2.24
Conflicts:
	binutils/configure
	binutils/configure.ac
	binutils/gas/doc/c-arc.texi
	binutils/gas/doc/c-arm.texi
	binutils/gas/doc/c-tic54x.texi
2014-03-19 17:30:31 +01:00
Jérôme Duval
3615e2401a import binutils 2.24 2014-03-19 17:25:32 +01:00
Arvind S Raj
fe93c5d4d3 Fixed errors in documentation that caused configure script to fail when bootstrapping for ARM build
texinfo 5 has changed syntax for certain commands which led to failure when
building binutils because the documentation could not be built.
Upstream report: https://sourceware.org/bugzilla/show_bug.cgi?id=15212.

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2014-03-19 10:43:54 +01:00
Alexander von Gluck IV
f131d0c316 binutils: fix missing stdint in binutils bdf
* Fixes issue compiling PPC binutils
* Upstream commit 3c865fca8 by Alan Modra
* Missing a stdint.h in coff header for intptr_t usage
* PPC fix is upstream via:
  https://sourceware.org/bugzilla/show_bug.cgi?id=16686
2014-03-11 21:00:01 -05:00
Alexander von Gluck IV
8b43097655 Revert "binutils: Fix PPC bootstrap build."
This reverts commit bf1b5855ab.

* mmu_man pointed out that the fix in bug #16686 is more
  correct. (and on closer inspection I agree)
* sorry for the spam
2014-03-11 20:52:08 -05:00
Alexander von Gluck IV
bf1b5855ab binutils: Fix PPC bootstrap build.
* Missing a stdint.h in coff header for intptr_t usage
* Pushed this fix to binutils via:
  https://sourceware.org/bugzilla/show_bug.cgi?id=16686
2014-03-11 20:05:44 -05:00
Jerome Duval
7c4eb4ef2c binutils: added missing licenses and reverted btrev29062.
* added missing GPL licence to te-beos.h and te-haiku.h in line with
other te-*.h files in this directory.
* reverted btrev29062 as it's not required since #6705 is fixed.
* this should ease upstreaming our changes.
2013-04-09 19:52:39 +02:00
Jerome Duval
f31d42dfd9 Merge binutils 2.23.2 2013-04-03 21:54:17 +02:00
Jerome Duval
34e528abef import binutils 2.23.2 2013-04-03 21:39:13 +02:00
Jerome Duval
eecbb214c7 import binutils 2.22 2013-04-03 21:07:39 +02:00
Alexander von Gluck IV
672db9fae8 binutils: Fix build breakage with latest texinfo
* Texinfo 5.0 and later have issues building
  binutils due to a behaviour change.
* Upstream binutils HEAD has this fix
* Resolves #9482
2013-02-25 20:52:56 -06:00
Joseph R. Prostko
a17bb71c16 Replace outdated paths in buildtools
* Replace /boot/beos/system/lib with /boot/system/lib
* Performed on configure and libtool.m4 files, as well as patches
2012-10-31 10:33:57 -04:00
Jérôme Duval
d534b97c8b binutils: fix out of tree building with syslex regens
If you take a release tarball (which has pregenerated syslex and sysinfo files
	in it), apply some patches which touch syslex.l, and then build the result out
	of tree, it will fail.  This is because syslex.l uses sysinfo.h, but the
	sysinfo.y file wasn't updated and so it wasn't regenerated (the files are found
	in the $srcdir), and the build rule for syslex.c does not use -I$(srcdir) when
	it finds a local file.  Simple fix below.

	Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-01-06 21:29:10 +01:00