Alexey Brodkin | 2272382 | 2014-02-04 12:56:15 +0400 | [diff] [blame^] | 1 | /* |
| 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 | |
| 13 | char __bss_start[0] __attribute__((section(".__bss_start"))); |
| 14 | char __bss_end[0] __attribute__((section(".__bss_end"))); |
| 15 | char __image_copy_start[0] __attribute__((section(".__image_copy_start"))); |
| 16 | char __image_copy_end[0] __attribute__((section(".__image_copy_end"))); |
| 17 | char __rel_dyn_start[0] __attribute__((section(".__rel_dyn_start"))); |
| 18 | char __rel_dyn_end[0] __attribute__((section(".__rel_dyn_end"))); |
| 19 | char __text_start[0] __attribute__((section(".__text_start"))); |
| 20 | char __text_end[0] __attribute__((section(".__text_end"))); |
| 21 | char __init_end[0] __attribute__((section(".__init_end"))); |