search for: __text_start

Displaying 7 results from an estimated 7 matches for "__text_start".

2015 Sep 29
0
[PATCH 2/2] bios: Don't try to guess the sections alignment
...inux.ld +++ b/core/i386/syslinux.ld @@ -255,10 +255,9 @@ SECTIONS . = 0x100000; __pm_code_start = .; + __vma_to_lma = __pm_code_lma - __pm_code_start; - __text_vma = .; - __text_lma = __pm_code_lma; - .text : AT(__text_lma) { + .text : AT(ADDR(.text) + __vma_to_lma) { FILL(0x90909090) __text_start = .; *(.text) @@ -266,106 +265,68 @@ SECTIONS __text_end = .; } - . = ALIGN(32); - - __rodata_vma = .; - __rodata_lma = __rodata_vma + __text_lma - __text_vma; - .rodata : AT(__rodata_lma) { + .rodata : AT(ADDR(.rodata) + __vma_to_lma) { __rodata_start = .; *(.rodata) *(.rodata.*...
2015 Sep 29
10
[PATCH 0/2] Fixes for gcc 5
From: Sylvain Gault <sylvain.gault at gmail.com> TL;DR: The section aligment in linker scripts messed-up the memory mapping needed for the compression / decompression to work. The bug with gcc 5 is not trivial, I'll do my best to explain it here. Basically, there are two memory mappings of the code. One in "virtual memory", and one in "load memory". The one in
2015 Oct 05
0
[PATCH 2/4] Remove unused linker scripts
...m_heap = .); - - /* - * 32-bit code. This is a hack for the moment due to the - * real-mode segments also allocated. - */ - - . = 0x100000; - - HIDDEN(__pm_code_start = .); - - HIDDEN(__text_vma = .); - HIDDEN(__text_lma = __pm_code_lma); - .text : AT(__text_lma) { - FILL(0x90909090) - HIDDEN(__text_start = .); - *(.text) - *(.text.*) - HIDDEN(__text_end = .); - } - - . = ALIGN(16); - - HIDDEN(__rodata_vma = .); - HIDDEN(__rodata_lma = __rodata_vma + __text_lma - __text_vma); - .rodata : AT(__rodata_lma) { - HIDDEN(__rodata_start = .); - *(.rodata) - *(.rodata.*) - HIDDEN(__rodata_end = .); -...
2015 Oct 05
7
[PATCH 0/4] Improve linker scripts
From: Sylvain Gault <sylvain.gault at gmail.com> These patches basically remove unused linker scripts and port a change that was made to an unused script. Those are to be applied on top of the gcc 5 bug fixes as they would conflict otherwise. Sylvain Gault (4): diag/mbr: fix dependency to linker script Remove unused linker scripts core: Make symbols defined in linker script HIDDEN
2015 Nov 08
1
Heads up on syslinux breakage in Ubuntu
...inux.ld +++ b/core/i386/syslinux.ld @@ -255,10 +255,9 @@ SECTIONS . = 0x100000; __pm_code_start = .; + __vma_to_lma = __pm_code_lma - __pm_code_start; - __text_vma = .; - __text_lma = __pm_code_lma; - .text : AT(__text_lma) { + .text : AT(ADDR(.text) + __vma_to_lma) { FILL(0x90909090) __text_start = .; *(.text) But it is not important that is the linker patch. Important is that the Syslinux project evolves further. Thing I'm try to say: moving is better then non-moving Groeten Geert Stappers -- Leven en laten leven ------------- volgend deel ------------ Een niet-tekst bijl...
2012 Dec 31
5
[LLVMdev] [lld] Linker script findings.
...pt Primer ==================== As far as I can tell, ldscripts usually have suffix `.lds` and more rarely `.ld`. In order to provide some context for what follows, here is 90% of what you need to know about linker scripts: SECTIONS { /* (1) */ __text_start = .; /* (2) */ .text : { /* (3) */ *(.text); /* (4) */ *(.text.*); } __text_end = .; __text_size = __text_end - __text_start; /* (...
2015 Nov 07
3
Heads up on syslinux breakage in Ubuntu
On 07/11/15 19:38, Ady via Syslinux wrote: > >> >> Just a heads up that syslinux is broken in the current Ubuntu, syslinux >> just shows "Boot error". Downgrading to syslinux from 15.04 works perfectly. >> >> Ubuntu bug is here: >> https://bugs.launchpad.net/ubuntu/+source/usb-creator/+bug/1499746 >> >> This is mostly in case anyone