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 Revert r42812. As pointed by Michael, one can use 2011-10-24 21:02:14 +00:00
drivers USB_hid.h: Add Report Type constants 2019-05-14 07:24:09 +00:00
game Style fixes to the Game Kit, focus on docs 2014-06-11 16:44:48 -04:00
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 style cleanup 2006-09-21 13:04:59 +00:00
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 Patch by Jorma Karvonen: Add LocaleKit.h header and also add it to Be.h. Thanks! 2010-05-16 16:07:55 +00:00
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 * Rewrote NetKit.h, and added the libnetapi headers. 2008-06-24 09:03:44 +00:00
NetworkKit.h Added the new headers to the NetworkKit.h all-in-one header. 2010-10-27 14:16:19 +00:00
StorageKit.h StorageKit.h still included the Alias.h header file I removed with the previous commit. 2007-07-06 12:52:01 +00:00
SupportKit.h
TranslationKit.h