aboutsummaryrefslogtreecommitdiff
path: root/i386/ldscript
Commit message (Collapse)AuthorAgeFilesLines
* Fix Xen boot after c74adfeSamuel Thibault2012-03-241-1/+1
| | | | | | * i386/Makefrag.am (_START_MAP): Define symbol to 0x100000. * i386/xen/Makefrag.am (_START_MAP): Define symbol to 0xC0000000. * i386/ldscript: Use _START_MAP instead of hardcoding 0x100000.
* Relocate kernel at bootupSamuel Thibault2012-03-241-0/+1
| | | | | | | | | | | | Grub is not able to map us at high addresses. We can however make it load us at low addresses (through the linker script mapping), then use segmentation to move ourselves to high addresses, and switch to C which uses high addresses (through _START definition). * i386/ldscript: Force mapping kernel at 0x100000, regardless of the value of _START. * i386/i386at/boothdr.S (boot_entry): Set up initial segments to project the bootstrap linear space to high addresses.
* Stick to binutils ELF scriptsSamuel Thibault2012-03-141-1/+2
| | | | * i386/ldscript: Reformat to follow binutils version
* Fix ifunc entriesSamuel Thibault2010-09-141-31/+31
| | | | | | | | | * i386/ldscript: Update to the version from binutils 2.20.51.20100617. Remove SEARCH_DIR calls. * Makefile.am (clib_routines): Accept undefined __rel_iplt_start and __rel_iplt_end as these come from the ldscript. * i386/i386at/boothdr.S (boot_entry): Call ifunc hooks at boot. * i386/xen/xen_boothdr.S (start): Likewise.
* Move read-only sections to after text sectionSamuel Thibault2010-08-011-28/+30
|
* 2007-03-19 Tim Retout <tim@retout.co.uk>Thomas Schwinge2009-06-181-1/+1
| | | | * i386/ldscript: Correct 'LINKFLAGS_gnumach' in comment.
* 2007-02-19 Thomas Schwinge <tschwinge@gnu.org>Thomas Schwinge2009-06-181-3/+5
| | | | | | | | | | * Makefile.am (gnumach_LINKFLAGS): New variable. (gnumach_LINK): Use that one instead of the previously used `LINKFLAGS_gnumach'. * i386/Makefrag.am (LINKFLAGS_gnumach): Rename to `gnumach_LINKFLAGS', move into [PLATFORM_at] and pass `_START'. * i386/ldscript: Don't hardcode a _start address of 0x100000, but make it configurable via `_START'.
* 2006-10-03 Thomas Schwinge <tschwinge@gnu.org>Thomas Schwinge2009-06-181-0/+6
| | | | | | | | | | | | [task #5941 --- ``Linker script for GNU Mach''] * Makefile.in (kernel.o): Remove `$(systype)-objfiles-prepend' hackery. * i386/Makefile.in (sysdep.a): Likewise. * i386/Makerules.in: Likewise. (LDFLAGS-kernel): Point to the linker script. * i386/i386at/boothdr.S (_start): Don't put into `.text', but into `.text.start' instead. * i386/ldscript: Change to put `.text' at 0x100000 and put `.text.start' first into `.text'.
* 2006-10-03 Thomas Schwinge <tschwinge@gnu.org>Thomas Schwinge2009-06-181-0/+189
[task #5941 --- ``Linker script for GNU Mach''] * i386/ldscript: New file, copied from `/lib/ldscripts/elf_i386.x' of a GNU Binutils 2.16.1 installation.