haiku/headers/os
Adrien Destugues 076b19023f elf2aout: import from FreeBSD
The sparc openboot implementation can run executables in the a.out
format. We used to generate these using objcopy, but this does not work
anymore as binutils is deprecating a.out format support.

- Import elf2aout from FreeBSD
- Add some missing bits to our elf.h and have a copy of it in the build
  headers so it can be used to build elf2aout for the host platform
  (tested for Linux)
- Use it to generate the sparc haiku_loader
- Adjust the bootloader linker script to have two "program headers": one
  that is not loadable and contains the ELF headers, and the second one
  that is loadable and contains the actual code and data. Unlike
  objcopy, elf2aout relies only on the program headers to know what to
  put in its output file (sections are ignored), so this is required
  otherwise we end up with the ELF header nested inside the a.out file,
  and everything offset from the expected load address as a result.

Confirmed that this allows to build the loader and run it as far as
before, so I'm back to needing to implement some MMU support now.

FreeBSD commit: 7551d83c353e040b32c6ac205e577dbc5f2c8955

Change-Id: I90b48e578fa7f148aeddd8c5998fdddc5cfa73fa
Reviewed-on: https://review.haiku-os.org/c/1557
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2019-07-13 01:29:05 +00:00
..
add-ons Tracker: Allow add-ons to dynamically extend popup menu. 2018-07-19 14:00:48 +00:00
app BLooper: API to hijack existing thread. 2018-12-02 21:36:31 +00:00
arch sparc: fix debug support 2019-03-30 15:23:15 +00:00
be_apps be_apps/ServicesDaemon: Remove. 2016-07-29 18:41:30 -04:00
bluetooth bluetooth: ioctls always pass size on Haiku. 2018-11-18 14:42:09 -05:00
device
drivers USB_hid.h: Add Report Type constants 2019-05-14 07:24:09 +00:00
game
interface BMenuBar & Deskbar: Make the hack to call ShowMenuBar a lot less ugly. 2019-06-17 11:49:48 +00:00
kernel elf2aout: import from FreeBSD 2019-07-13 01:29:05 +00:00
locale BMessageFormat: Rename to BStringFormat. 2018-08-13 20:49:00 -04:00
mail Migrate the BMailComponent docs to the Haiku Book. 2017-12-25 19:43:51 -05:00
media Revert the Codec Kit. 2019-05-17 14:43:32 -04:00
midi B_BIG_SYNTH_FILE and B_LITTLE_SYNTH_FILE are deprecated. 2015-08-24 17:18:26 +02:00
midi2
net Adapt all consumers of HashSet and HashMap to the slightly-different APIs. 2019-02-15 00:34:36 +00:00
package Add Reboot Check to BPackageRoster 2019-03-18 14:10:42 +00:00
storage Remove Spurious B_BEOS_DATA_DIRECTORY 2017-05-08 22:17:53 +02:00
support Change all references to "__INTEL__" to "__i386__". 2019-03-30 16:54:01 -04:00
translation TranslationErrors.h: document as deprecated. 2019-04-15 20:45:19 +02:00
AppKit.h
Be.h
BeBuild.h Added some support for GCC 9. 2019-05-07 23:07:17 +00:00
DeviceKit.h
GameKit.h
InterfaceKit.h
KernelKit.h
LocaleKit.h Remove even more Locale Kit cruft. 2017-07-30 14:46:41 -04:00
MailKit.h
MediaKit.h Make BMediaRecorder public 2017-01-10 21:34:20 +01:00
MidiKit.h
NetKit.h
NetworkKit.h
StorageKit.h
SupportKit.h
TranslationKit.h