/*
|
*
|
* Automatically generated file; DO NOT EDIT.
|
* Linux/arm64 4.9.170 Kernel Configuration
|
*
|
*/
|
/*
|
* The use of "&&" / "||" is limited in certain expressions.
|
* The followings enable to calculate "and" / "or" with macro expansion only.
|
*/
|
/*
|
* Helper macros to use CONFIG_ options in C/CPP expressions. Note that
|
* these only work with boolean and tristate options.
|
*/
|
/*
|
* Getting something that works in C and CPP for an arg that may or may
|
* not be defined is tricky. Here, if we have "#define CONFIG_BOOGER 1"
|
* we match on the placeholder define, insert the "0," for arg1 and generate
|
* the triplet (0, 1, 0). Then the last step cherry picks the 2nd arg (a one).
|
* When CONFIG_BOOGER is not defined, we generate a (... 1, 0) pair, and when
|
* the last step cherry picks the 2nd arg, we get a zero.
|
*/
|
/*
|
* IS_BUILTIN(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y', 0
|
* otherwise. For boolean options, this is equivalent to
|
* IS_ENABLED(CONFIG_FOO).
|
*/
|
/*
|
* IS_MODULE(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'm', 0
|
* otherwise.
|
*/
|
/*
|
* IS_REACHABLE(CONFIG_FOO) evaluates to 1 if the currently compiled
|
* code can call a function defined in code compiled based on CONFIG_FOO.
|
* This is similar to IS_ENABLED(), but returns false when invoked from
|
* built-in code when CONFIG_FOO is set to 'm'.
|
*/
|
/*
|
* IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',
|
* 0 otherwise.
|
*/
|
/*
|
* GNU linker script for the VDSO library.
|
*
|
* Copyright (C) 2012 ARM Limited
|
*
|
* This program is free software; you can redistribute it and/or modify
|
* it under the terms of the GNU General Public License version 2 as
|
* published by the Free Software Foundation.
|
*
|
* This program is distributed in the hope that it will be useful,
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* GNU General Public License for more details.
|
*
|
* You should have received a copy of the GNU General Public License
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
*
|
* Author: Will Deacon <will.deacon@arm.com>
|
* Heavily based on the vDSO linker scripts for other archs.
|
*/
|
/* const.h: Macros for dealing with constants. */
|
/* Some constant macros are used in both assembler and
|
* C code. Therefore we cannot annotate them always with
|
* 'UL' and other type specifiers unilaterally. We
|
* use the following macros to deal with this.
|
*
|
* Similarly, _AT() will cast an expression with a type in C, but
|
* leave it unchanged in asm.
|
*/
|
/*
|
* Based on arch/arm/include/asm/page.h
|
*
|
* Copyright (C) 1995-2003 Russell King
|
* Copyright (C) 2012 ARM Ltd.
|
*
|
* This program is free software; you can redistribute it and/or modify
|
* it under the terms of the GNU General Public License version 2 as
|
* published by the Free Software Foundation.
|
*
|
* This program is distributed in the hope that it will be useful,
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* GNU General Public License for more details.
|
*
|
* You should have received a copy of the GNU General Public License
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
*/
|
/* const.h: Macros for dealing with constants. */
|
/* PAGE_SHIFT determines the page size */
|
/* CONT_SHIFT determines the number of pages which can be tracked together */
|
/*
|
* Copyright (C) 2012 ARM Limited
|
*
|
* This program is free software; you can redistribute it and/or modify
|
* it under the terms of the GNU General Public License version 2 as
|
* published by the Free Software Foundation.
|
*
|
* This program is distributed in the hope that it will be useful,
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* GNU General Public License for more details.
|
*
|
* You should have received a copy of the GNU General Public License
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
*/
|
/*
|
* Default link address for the vDSO.
|
* Since we randomise the VDSO mapping, there's little point in trying
|
* to prelink this.
|
*/
|
OUTPUT_FORMAT("elf64-littleaarch64", "elf64-bigaarch64", "elf64-littleaarch64")
|
OUTPUT_ARCH(aarch64)
|
SECTIONS
|
{
|
PROVIDE(_vdso_data = . - (1 << 12));
|
. = 0x0 + SIZEOF_HEADERS;
|
.hash : { *(.hash) } :text
|
.gnu.hash : { *(.gnu.hash) }
|
.dynsym : { *(.dynsym) }
|
.dynstr : { *(.dynstr) }
|
.gnu.version : { *(.gnu.version) }
|
.gnu.version_d : { *(.gnu.version_d) }
|
.gnu.version_r : { *(.gnu.version_r) }
|
.note : { *(.note.*) } :text :note
|
. = ALIGN(16);
|
.text : { *(.text*) } :text =0xd503201f
|
PROVIDE (__etext = .);
|
PROVIDE (_etext = .);
|
PROVIDE (etext = .);
|
.eh_frame_hdr : { *(.eh_frame_hdr) } :text :eh_frame_hdr
|
.eh_frame : { KEEP (*(.eh_frame)) } :text
|
.dynamic : { *(.dynamic) } :text :dynamic
|
.rodata : { *(.rodata*) } :text
|
_end = .;
|
PROVIDE(end = .);
|
/DISCARD/ : {
|
*(.note.GNU-stack)
|
*(.data .data.* .gnu.linkonce.d.* .sdata*)
|
*(.bss .sbss .dynbss .dynsbss)
|
}
|
}
|
/*
|
* We must supply the ELF program headers explicitly to get just one
|
* PT_LOAD segment, and set the flags explicitly to make segments read-only.
|
*/
|
PHDRS
|
{
|
text PT_LOAD FLAGS(5) FILEHDR PHDRS; /* PF_R|PF_X */
|
dynamic PT_DYNAMIC FLAGS(4); /* PF_R */
|
note PT_NOTE FLAGS(4); /* PF_R */
|
eh_frame_hdr PT_GNU_EH_FRAME;
|
}
|
/*
|
* This controls what symbols we export from the DSO.
|
*/
|
VERSION
|
{
|
LINUX_2.6.39 {
|
global:
|
__kernel_rt_sigreturn;
|
__kernel_gettimeofday;
|
__kernel_clock_gettime;
|
__kernel_clock_getres;
|
local: *;
|
};
|
}
|
/*
|
* Make the sigreturn code visible to the kernel.
|
*/
|
VDSO_sigtramp = __kernel_rt_sigreturn;
|