search for: __rodata_lma

Displaying 5 results from an estimated 5 matches for "__rodata_lma".

Did you mean: __data_lma
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 Sep 29
0
[PATCH 2/2] bios: Don't try to guess the sections alignment
..._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.*) __rodata_end = .; } - . = ALIGN(4); - - __ctors_vma = .; - __ctors_lma = __ctors_vma + __text_lma - __text_vma; - .ctor...
2015 Sep 29
0
[PATCH 1/2] bios: Fix alignment change with gcc 5
...changed, 6 insertions(+), 6 deletions(-) diff --git a/core/i386/syslinux.ld b/core/i386/syslinux.ld index 7b4e012..7390451 100644 --- a/core/i386/syslinux.ld +++ b/core/i386/syslinux.ld @@ -266,7 +266,7 @@ SECTIONS __text_end = .; } - . = ALIGN(16); + . = ALIGN(32); __rodata_vma = .; __rodata_lma = __rodata_vma + __text_lma - __text_vma; @@ -361,7 +361,7 @@ SECTIONS __dynamic_end = .; } - . = ALIGN(16); + . = ALIGN(32); __data_vma = .; __data_lma = __data_vma + __text_lma - __text_vma; @@ -377,7 +377,7 @@ SECTIONS __pm_code_dwords = (__pm_code_len + 3) >> 2; . = ALI...
2015 Oct 05
0
[PATCH 2/4] Remove unused linker scripts
...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 = .); - } - - . = ALIGN(4); - - HIDDEN(__ctors_vma = .); - HIDDEN(__ctors_lma = __ctors_vma + __text_lma - __text_vma); - .ctors : AT(__ctors...
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