aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGene Cumm <gene.cumm@gmail.com>2016-02-22 06:25:42 -0500
committerGene Cumm <gene.cumm@gmail.com>2016-02-22 06:26:02 -0500
commit8079602cfd8b9e52091a900ce500a2a2e4c90f00 (patch)
tree0371d9bb13e365cfec31cd7c94d70b516777fd0f
parentc1cc1bcef1e23ecb9f650c75f9dafc7e61101218 (diff)
downloadsyslinux-8079602cfd8b9e52091a900ce500a2a2e4c90f00.tar.gz
syslinux-8079602cfd8b9e52091a900ce500a2a2e4c90f00.tar.xz
syslinux-8079602cfd8b9e52091a900ce500a2a2e4c90f00.zip
core/i386/syslinux.ld: Remove HIDDEN reference
HIDDEN was added to ld in binutils version 2.23 published in August 2012. This helps preserve backwards compatibility for now. Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
-rw-r--r--core/i386/syslinux.ld262
1 files changed, 131 insertions, 131 deletions
diff --git a/core/i386/syslinux.ld b/core/i386/syslinux.ld
index 39198d75..94f842fa 100644
--- a/core/i386/syslinux.ld
+++ b/core/i386/syslinux.ld
@@ -26,7 +26,7 @@ SECTIONS
{
/* Prefix structure for the compression program */
. = 0;
- HIDDEN(__module_start = ABSOLUTE(.));
+ __module_start = ABSOLUTE(.);
.prefix : {
*(.prefix)
}
@@ -35,82 +35,82 @@ SECTIONS
. = 0x1000;
.earlybss (NOLOAD) : {
- HIDDEN(__earlybss_start = .);
+ __earlybss_start = .;
*(.earlybss)
- HIDDEN(__earlybss_end = .);
+ __earlybss_end = .;
}
- HIDDEN(__earlybss_len = ABSOLUTE(__earlybss_end) - ABSOLUTE(__earlybss_start));
- HIDDEN(__earlybss_dwords = (__earlybss_len + 3) >> 2);
+ __earlybss_len = ABSOLUTE(__earlybss_end) - ABSOLUTE(__earlybss_start);
+ __earlybss_dwords = (__earlybss_len + 3) >> 2;
. = ALIGN(4);
.bss16 (NOLOAD) : {
- HIDDEN(__bss16_start = .);
+ __bss16_start = .;
*(.bss16)
- HIDDEN(__bss16_end = .);
+ __bss16_end = .;
}
- HIDDEN(__bss16_len = ABSOLUTE(__bss16_end) - ABSOLUTE(__bss16_start));
- HIDDEN(__bss16_dwords = (__bss16_len + 3) >> 2);
+ __bss16_len = ABSOLUTE(__bss16_end) - ABSOLUTE(__bss16_start);
+ __bss16_dwords = (__bss16_len + 3) >> 2;
. = ALIGN(4);
.config : AT (__config_lma) {
- HIDDEN(__config_start = .);
+ __config_start = .;
*(.config)
- HIDDEN(__config_end = .);
+ __config_end = .;
}
- HIDDEN(__config_len = ABSOLUTE(__config_end) - ABSOLUTE(__config_start));
- HIDDEN(__config_dwords = (__config_len + 3) >> 2);
+ __config_len = ABSOLUTE(__config_end) - ABSOLUTE(__config_start);
+ __config_dwords = (__config_len + 3) >> 2;
/* Generated and/or copied code */
. = ALIGN(128); /* Minimum separation from mutable data */
.replacestub : AT (__replacestub_lma) {
- HIDDEN(__replacestub_start = .);
+ __replacestub_start = .;
*(.replacestub)
- HIDDEN(__replacestub_end = .);
+ __replacestub_end = .;
}
- HIDDEN(__replacestub_len = ABSOLUTE(__replacestub_end) - ABSOLUTE(__replacestub_start));
- HIDDEN(__replacestub_dwords = (__replacestub_len + 3) >> 2);
+ __replacestub_len = ABSOLUTE(__replacestub_end) - ABSOLUTE(__replacestub_start);
+ __replacestub_dwords = (__replacestub_len + 3) >> 2;
. = ALIGN(16);
- HIDDEN(__gentextnr_lma = .);
+ __gentextnr_lma = .;
.gentextnr : AT(__gentextnr_lma) {
- HIDDEN(__gentextnr_start = .);
+ __gentextnr_start = .;
*(.gentextnr)
- HIDDEN(__gentextnr_end = .);
+ __gentextnr_end = .;
}
- HIDDEN(__gentextnr_len = ABSOLUTE(__gentextnr_end) - ABSOLUTE(__gentextnr_start));
- HIDDEN(__gentextnr_dwords = (__gentextnr_len + 3) >> 2);
+ __gentextnr_len = ABSOLUTE(__gentextnr_end) - ABSOLUTE(__gentextnr_start);
+ __gentextnr_dwords = (__gentextnr_len + 3) >> 2;
. = STACK_BASE;
.stack16 : AT(STACK_BASE) {
- HIDDEN(__stack16_start = .);
+ __stack16_start = .;
. += STACK_LEN;
- HIDDEN(__stack16_end = .);
+ __stack16_end = .;
}
- HIDDEN(__stack16_len = ABSOLUTE(__stack16_end) - ABSOLUTE(__stack16_start));
- HIDDEN(__stack16_dwords = (__stack16_len + 3) >> 2);
+ __stack16_len = ABSOLUTE(__stack16_end) - ABSOLUTE(__stack16_start);
+ __stack16_dwords = (__stack16_len + 3) >> 2;
/* Initialized sections */
. = 0x7c00;
.init : {
FILL(0x90909090)
- HIDDEN(__init_start = .);
+ __init_start = .;
*(.init)
- HIDDEN(__init_end = .);
+ __init_end = .;
}
- HIDDEN(__init_len = ABSOLUTE(__init_end) - ABSOLUTE(__init_start));
- HIDDEN(__init_dwords = (__init_len + 3) >> 2);
+ __init_len = ABSOLUTE(__init_end) - ABSOLUTE(__init_start);
+ __init_dwords = (__init_len + 3) >> 2;
. = ALIGN(4);
.text16 : {
FILL(0x90909090)
- HIDDEN(__text16_start = .);
+ __text16_start = .;
*(.text16)
- HIDDEN(__text16_end = .);
+ __text16_end = .;
}
- HIDDEN(__text16_len = ABSOLUTE(__text16_end) - ABSOLUTE(__text16_start));
- HIDDEN(__text16_dwords = (__text16_len + 3) >> 2);
+ __text16_len = ABSOLUTE(__text16_end) - ABSOLUTE(__text16_start);
+ __text16_dwords = (__text16_len + 3) >> 2;
/*
* .textnr is used for 32-bit code that is used on the code
@@ -119,83 +119,83 @@ SECTIONS
. = ALIGN(16);
.textnr : {
FILL(0x90909090)
- HIDDEN(__textnr_start = .);
+ __textnr_start = .;
*(.textnr)
- HIDDEN(__textnr_end = .);
+ __textnr_end = .;
}
- HIDDEN(__textnr_len = ABSOLUTE(__textnr_end) - ABSOLUTE(__textnr_start));
- HIDDEN(__textnr_dwords = (__textnr_len + 3) >> 2);
+ __textnr_len = ABSOLUTE(__textnr_end) - ABSOLUTE(__textnr_start);
+ __textnr_dwords = (__textnr_len + 3) >> 2;
. = ALIGN(16);
- HIDDEN(__bcopyxx_start = .);
+ __bcopyxx_start = .;
.bcopyxx.text : {
FILL(0x90909090)
- HIDDEN(__bcopyxx_text_start = .);
+ __bcopyxx_text_start = .;
*(.bcopyxx.text)
- HIDDEN(__bcopyxx_text_end = .);
+ __bcopyxx_text_end = .;
}
- HIDDEN(__bcopyxx_text_len = ABSOLUTE(__bcopyxx_text_end) - ABSOLUTE(__bcopyxx_text_start));
- HIDDEN(__bcopyxx_text_dwords = (__bcopyxx_text_len + 3) >> 2);
+ __bcopyxx_text_len = ABSOLUTE(__bcopyxx_text_end) - ABSOLUTE(__bcopyxx_text_start);
+ __bcopyxx_text_dwords = (__bcopyxx_text_len + 3) >> 2;
.bcopyxx.data : {
- HIDDEN(__bcopyxx_data_start = .);
+ __bcopyxx_data_start = .;
*(.bcopyxx.text)
- HIDDEN(__bcopyxx_data_end = .);
+ __bcopyxx_data_end = .;
}
- HIDDEN(__bcopyxx_data_len = ABSOLUTE(__bcopyxx_data_end) - ABSOLUTE(__bcopyxx_data_start));
- HIDDEN(__bcopyxx_data_dwords = (__bcopyxx_data_len + 3) >> 2);
+ __bcopyxx_data_len = ABSOLUTE(__bcopyxx_data_end) - ABSOLUTE(__bcopyxx_data_start);
+ __bcopyxx_data_dwords = (__bcopyxx_data_len + 3) >> 2;
- HIDDEN(__bcopyxx_end = .);
- HIDDEN(__bcopyxx_len = ABSOLUTE(__bcopyxx_end) - ABSOLUTE(__bcopyxx_start));
- HIDDEN(__bcopyxx_dwords = (__bcopyxx_len + 3) >> 2);
+ __bcopyxx_end = .;
+ __bcopyxx_len = ABSOLUTE(__bcopyxx_end) - ABSOLUTE(__bcopyxx_start);
+ __bcopyxx_dwords = (__bcopyxx_len + 3) >> 2;
. = ALIGN(4);
.data16 : {
- HIDDEN(__data16_start = .);
+ __data16_start = .;
*(.data16)
- HIDDEN(__data16_end = .);
+ __data16_end = .;
}
- HIDDEN(__data16_len = ABSOLUTE(__data16_end) - ABSOLUTE(__data16_start));
- HIDDEN(__data16_dwords = (__data16_len + 3) >> 2);
+ __data16_len = ABSOLUTE(__data16_end) - ABSOLUTE(__data16_start);
+ __data16_dwords = (__data16_len + 3) >> 2;
. = ALIGN(4);
- HIDDEN(__config_lma = ABSOLUTE(.));
+ __config_lma = ABSOLUTE(.);
. += SIZEOF(.config);
. = ALIGN(4);
- HIDDEN(__replacestub_lma = ABSOLUTE(.));
+ __replacestub_lma = ABSOLUTE(.);
. += SIZEOF(.replacestub);
/* The 32-bit code loads above the non-progbits sections */
. = ALIGN(16);
- HIDDEN(__pm_code_lma = ABSOLUTE(.));
+ __pm_code_lma = ABSOLUTE(.);
- HIDDEN(__high_clear_start = .);
+ __high_clear_start = .;
. = ALIGN(512);
.adv (NOLOAD) : {
- HIDDEN(__adv_start = .);
+ __adv_start = .;
*(.adv)
- HIDDEN(__adv_end = .);
+ __adv_end = .;
}
- HIDDEN(__adv_len = ABSOLUTE(__adv_end) - ABSOLUTE(__adv_start));
- HIDDEN(__adv_dwords = (__adv_len + 3) >> 2);
+ __adv_len = ABSOLUTE(__adv_end) - ABSOLUTE(__adv_start);
+ __adv_dwords = (__adv_len + 3) >> 2;
/* Late uninitialized sections */
. = ALIGN(4);
.uibss (NOLOAD) : {
- HIDDEN(__uibss_start = .);
+ __uibss_start = .;
*(.uibss)
- HIDDEN(__uibss_end = .);
+ __uibss_end = .;
}
- HIDDEN(__uibss_len = ABSOLUTE(__uibss_end) - ABSOLUTE(__uibss_start));
- HIDDEN(__uibss_dwords = (__uibss_len + 3) >> 2);
+ __uibss_len = ABSOLUTE(__uibss_end) - ABSOLUTE(__uibss_start);
+ __uibss_dwords = (__uibss_len + 3) >> 2;
- HIDDEN(_end16 = .);
- HIDDEN(__assert_end16 = ASSERT(_end16 <= 0x10000, "64K overflow"));
+ _end16 = .;
+ __assert_end16 = ASSERT(_end16 <= 0x10000, "64K overflow");
/*
* Special 16-bit segments
@@ -204,7 +204,7 @@ SECTIONS
.xfer_buf (NOLOAD) : {
*(.xfer_buf)
}
- HIDDEN(xfer_buf_seg = core_xfer_buf >> 4);
+ xfer_buf_seg = core_xfer_buf >> 4;
/*
* The auxilliary data segment is used by the 16-bit code
@@ -213,33 +213,33 @@ SECTIONS
. = ALIGN(16);
.auxseg (NOLOAD) : {
- HIDDEN(__auxseg_start = .);
+ __auxseg_start = .;
*(.auxseg)
- HIDDEN(__auxseg_end = .);
+ __auxseg_end = .;
}
- HIDDEN(__auxseg_len = ABSOLUTE(__auxseg_end) - ABSOLUTE(__auxseg_start));
- HIDDEN(__auxseg_dwords = (__auxseg_len + 3) >> 2);
- HIDDEN(aux_seg = __auxseg_start >> 4);
+ __auxseg_len = ABSOLUTE(__auxseg_end) - ABSOLUTE(__auxseg_start);
+ __auxseg_dwords = (__auxseg_len + 3) >> 2;
+ aux_seg = __auxseg_start >> 4;
/*
* Used to allocate lowmem buffers from 32-bit code
*/
.lowmem (NOLOAD) : {
- HIDDEN(__lowmem_start = .);
+ __lowmem_start = .;
*(.lowmem)
- HIDDEN(__lowmem_end = .);
+ __lowmem_end = .;
}
- HIDDEN(__lowmem_len = ABSOLUTE(__lowmem_end) - ABSOLUTE(__lowmem_start));
- HIDDEN(__lowmem_dwords = (__lowmem_len + 3) >> 2);
+ __lowmem_len = ABSOLUTE(__lowmem_end) - ABSOLUTE(__lowmem_start);
+ __lowmem_dwords = (__lowmem_len + 3) >> 2;
- HIDDEN(__high_clear_end = .);
+ __high_clear_end = .;
- HIDDEN(__high_clear_len = ABSOLUTE(__high_clear_end) - ABSOLUTE(__high_clear_start));
- HIDDEN(__high_clear_dwords = (__high_clear_len + 3) >> 2);
+ __high_clear_len = ABSOLUTE(__high_clear_end) - ABSOLUTE(__high_clear_start);
+ __high_clear_dwords = (__high_clear_len + 3) >> 2;
/* Start of the lowmem heap */
. = ALIGN(16);
- HIDDEN(__lowmem_heap = .);
+ __lowmem_heap = .;
/*
* 32-bit code. This is a hack for the moment due to the
@@ -248,133 +248,133 @@ SECTIONS
. = 0x100000;
- HIDDEN(__pm_code_start = .);
- HIDDEN(__vma_to_lma = ABSOLUTE(__pm_code_lma - __pm_code_start));
+ __pm_code_start = .;
+ __vma_to_lma = ABSOLUTE(__pm_code_lma - __pm_code_start);
.text : AT(ADDR(.text) + __vma_to_lma) {
FILL(0x90909090)
- HIDDEN(__text_start = .);
+ __text_start = .;
*(.text)
*(.text.*)
- HIDDEN(__text_end = .);
+ __text_end = .;
}
.rodata : AT(ADDR(.rodata) + __vma_to_lma) {
- HIDDEN(__rodata_start = .);
+ __rodata_start = .;
*(.rodata)
*(.rodata.*)
- HIDDEN(__rodata_end = .);
+ __rodata_end = .;
}
.ctors : AT(ADDR(.ctors) + __vma_to_lma) {
- HIDDEN(__ctors_start = .);
+ __ctors_start = .;
KEEP (*(SORT(.ctors.*)))
KEEP (*(.ctors))
- HIDDEN(__ctors_end = .);
+ __ctors_end = .;
}
.dtors : AT(ADDR(.dtors) + __vma_to_lma) {
- HIDDEN(__dtors_start = .);
+ __dtors_start = .;
KEEP (*(SORT(.dtors.*)))
KEEP (*(.dtors))
- HIDDEN(__dtors_end = .);
+ __dtors_end = .;
}
.dynsym : AT(ADDR(.dynsym) + __vma_to_lma) {
- HIDDEN(__dynsym_start = .);
+ __dynsym_start = .;
KEEP (*(.dynsym))
- HIDDEN(__dynsym_end = .);
+ __dynsym_end = .;
}
- HIDDEN(__dynsym_len = __dynsym_end - __dynsym_start);
+ __dynsym_len = __dynsym_end - __dynsym_start;
.dynstr : AT(ADDR(.dynstr) + __vma_to_lma) {
- HIDDEN(__dynstr_start = .);
+ __dynstr_start = .;
KEEP (*(.dynstr))
- HIDDEN(__dynstr_end = .);
+ __dynstr_end = .;
}
- HIDDEN(__dynstr_len = __dynstr_end - __dynstr_start);
+ __dynstr_len = __dynstr_end - __dynstr_start;
.gnu.hash : AT(ADDR(.gnu.hash) + __vma_to_lma) {
- HIDDEN(__gnu_hash_start = .);
+ __gnu_hash_start = .;
KEEP (*(.gnu.hash))
- HIDDEN(__gnu_hash_end = .);
+ __gnu_hash_end = .;
}
.dynlink : AT(ADDR(.dynlink) + __vma_to_lma) {
- HIDDEN(__dynlink_start = .);
+ __dynlink_start = .;
KEEP (*(.dynlink))
- HIDDEN(__dynlink_end = .);
+ __dynlink_end = .;
}
.got : AT(ADDR(.got) + __vma_to_lma) {
- HIDDEN(__got_start = .);
+ __got_start = .;
KEEP (*(.got))
KEEP (*(.got.plt))
- HIDDEN(__got_end = .);
+ __got_end = .;
}
.dynamic : AT(ADDR(.dynamic) + __vma_to_lma) {
- HIDDEN(__dynamic_start = .);
+ __dynamic_start = .;
KEEP (*(.dynamic))
- HIDDEN(__dynamic_end = .);
+ __dynamic_end = .;
}
.data : AT(ADDR(.data) + __vma_to_lma) {
- HIDDEN(__data_start = .);
+ __data_start = .;
*(.data)
*(.data.*)
- HIDDEN(__data_end = .);
+ __data_end = .;
}
- HIDDEN(__pm_code_end = .);
- HIDDEN(__pm_code_len = ABSOLUTE(__pm_code_end) - ABSOLUTE(__pm_code_start));
- HIDDEN(__pm_code_dwords = (__pm_code_len + 3) >> 2);
+ __pm_code_end = .;
+ __pm_code_len = ABSOLUTE(__pm_code_end) - ABSOLUTE(__pm_code_start);
+ __pm_code_dwords = (__pm_code_len + 3) >> 2;
. = ALIGN(128);
- HIDDEN(__bss_vma = .);
- HIDDEN(__bss_lma = ABSOLUTE(.)); /* Dummy */
+ __bss_vma = .;
+ __bss_lma = ABSOLUTE(.); /* Dummy */
.bss (NOLOAD) : AT (__bss_lma) {
- HIDDEN(__bss_start = .);
+ __bss_start = .;
*(.bss)
*(.bss.*)
*(COMMON)
- HIDDEN(__bss_end = .);
+ __bss_end = .;
}
- HIDDEN(__bss_len = ABSOLUTE(__bss_end) - ABSOLUTE(__bss_start));
- HIDDEN(__bss_dwords = (__bss_len + 3) >> 2);
+ __bss_len = ABSOLUTE(__bss_end) - ABSOLUTE(__bss_start);
+ __bss_dwords = (__bss_len + 3) >> 2;
/* Very large objects which don't need to be zeroed */
- HIDDEN(__hugebss_vma = .);
- HIDDEN(__hugebss_lma = ABSOLUTE(.)); /* Dummy */
+ __hugebss_vma = .;
+ __hugebss_lma = ABSOLUTE(.); /* Dummy */
.hugebss (NOLOAD) : AT (__hugebss_lma) {
- HIDDEN(__hugebss_start = .);
+ __hugebss_start = .;
*(.hugebss)
*(.hugebss.*)
- HIDDEN(__hugebss_end = .);
+ __hugebss_end = .;
}
- HIDDEN(__hugebss_len = ABSOLUTE(__hugebss_end) - ABSOLUTE(__hugebss_start));
- HIDDEN(__hugebss_dwords = (__hugebss_len + 3) >> 2);
+ __hugebss_len = ABSOLUTE(__hugebss_end) - ABSOLUTE(__hugebss_start);
+ __hugebss_dwords = (__hugebss_len + 3) >> 2;
/* XXX: This stack should be unified with the COM32 stack */
- HIDDEN(__stack_vma = .);
- HIDDEN(__stack_lma = ABSOLUTE(.)); /* Dummy */
+ __stack_vma = .;
+ __stack_lma = ABSOLUTE(.); /* Dummy */
.stack (NOLOAD) : AT(__stack_lma) {
- HIDDEN(__stack_start = .);
+ __stack_start = .;
*(.stack)
- HIDDEN(__stack_end = .);
+ __stack_end = .;
}
- HIDDEN(__stack_len = ABSOLUTE(__stack_end) - ABSOLUTE(__stack_start));
- HIDDEN(__stack_dwords = (__stack_len + 3) >> 2);
+ __stack_len = ABSOLUTE(__stack_end) - ABSOLUTE(__stack_start);
+ __stack_dwords = (__stack_len + 3) >> 2;
- HIDDEN(_end = .);
+ _end = .;
/* COM32R and kernels are loaded after our own PM code */
. = ALIGN(65536);
- HIDDEN(free_high_memory = .);
+ free_high_memory = .;
/* Stuff we don't need... */
/DISCARD/ : {