blob: b0b46a4e9aeeffdc62c8afaabba74151f17f363a [file] [log] [blame]
Alexey Brodkin22723822014-02-04 12:56:15 +04001/*
2 * Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved.
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
7/*
8 * For some reason linker sets linker-generated symbols to zero in PIE mode.
9 * A work-around is substitution of linker-generated symbols with
10 * compiler-generated symbols which are properly handled by linker in PAE mode.
11 */
12
13char __bss_start[0] __attribute__((section(".__bss_start")));
14char __bss_end[0] __attribute__((section(".__bss_end")));
15char __image_copy_start[0] __attribute__((section(".__image_copy_start")));
16char __image_copy_end[0] __attribute__((section(".__image_copy_end")));
17char __rel_dyn_start[0] __attribute__((section(".__rel_dyn_start")));
18char __rel_dyn_end[0] __attribute__((section(".__rel_dyn_end")));
19char __text_start[0] __attribute__((section(".__text_start")));
20char __text_end[0] __attribute__((section(".__text_end")));
21char __init_end[0] __attribute__((section(".__init_end")));