]> git.ipfire.org Git - people/ms/u-boot.git/blame - include/asm-generic/sections.h
travisci: Add support for ARC
[people/ms/u-boot.git] / include / asm-generic / sections.h
CommitLineData
18652864
SG
1/*
2 * Copyright (c) 2011 The Chromium OS Authors.
3 *
1a459660 4 * SPDX-License-Identifier: GPL-2.0+
18652864
SG
5 */
6
7/* Taken from Linux kernel, commit f56c3196 */
8
9#ifndef _ASM_GENERIC_SECTIONS_H_
10#define _ASM_GENERIC_SECTIONS_H_
11
12/* References to section boundaries */
13
14extern char _text[], _stext[], _etext[];
15extern char _data[], _sdata[], _edata[];
16extern char __bss_start[], __bss_stop[];
17extern char __init_begin[], __init_end[];
18extern char _sinittext[], _einittext[];
a733b06b 19extern char _end[], _init[];
18652864
SG
20extern char __per_cpu_load[], __per_cpu_start[], __per_cpu_end[];
21extern char __kprobes_text_start[], __kprobes_text_end[];
22extern char __entry_text_start[], __entry_text_end[];
23extern char __initdata_begin[], __initdata_end[];
24extern char __start_rodata[], __end_rodata[];
c7ae3dfd
SG
25extern char __efi_hello_world_begin[];
26extern char __efi_hello_world_end[];
18652864
SG
27
28/* Start and end of .ctors section - used for constructor calls. */
29extern char __ctors_start[], __ctors_end[];
30
31/* function descriptor handling (if any). Override
32 * in asm/sections.h */
33#ifndef dereference_function_descriptor
34#define dereference_function_descriptor(p) (p)
35#endif
36
37/* random extra sections (if any). Override
38 * in asm/sections.h */
39#ifndef arch_is_kernel_text
40static inline int arch_is_kernel_text(unsigned long addr)
41{
42 return 0;
43}
44#endif
45
46#ifndef arch_is_kernel_data
47static inline int arch_is_kernel_data(unsigned long addr)
48{
49 return 0;
50}
51#endif
52
53/* U-Boot-specific things begin here */
54
55/* Start of U-Boot text region */
56extern char __text_start[];
57
58/* This marks the end of the text region which must be relocated */
59extern char __image_copy_end[];
60
61/*
62 * This is the U-Boot entry point - prior to relocation it should be same
63 * as __text_start
64 */
65extern void _start(void);
66
67/*
b60eff31 68 * ARM defines its symbols as char[]. Other arches define them as ulongs.
18652864
SG
69 */
70#ifdef CONFIG_ARM
18652864 71
b60eff31
AA
72extern char __bss_start[];
73extern char __bss_end[];
74extern char __image_copy_start[];
75extern char __image_copy_end[];
10172962 76extern char _image_binary_end[];
b60eff31
AA
77extern char __rel_dyn_start[];
78extern char __rel_dyn_end[];
18652864
SG
79
80#else /* don't use offsets: */
81
82/* Exports from the Linker Script */
83extern ulong __data_end;
84extern ulong __rel_dyn_start;
85extern ulong __rel_dyn_end;
86extern ulong __bss_end;
22d95743 87extern ulong _image_binary_end;
18652864
SG
88
89extern ulong _TEXT_BASE; /* code start */
90
91#endif
92
93#endif /* _ASM_GENERIC_SECTIONS_H_ */