blob: f312813f39d8a256f322a428b5740f1476e35b2f [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Matt Flemingbd353862009-08-14 01:58:43 +09002#ifndef __ASM_SH_VMLINUX_LDS_H
3#define __ASM_SH_VMLINUX_LDS_H
4
5#include <asm-generic/vmlinux.lds.h>
6
7#ifdef CONFIG_DWARF_UNWINDER
8#define DWARF_EH_FRAME \
9 .eh_frame : AT(ADDR(.eh_frame) - LOAD_OFFSET) { \
10 VMLINUX_SYMBOL(__start_eh_frame) = .; \
11 *(.eh_frame) \
12 VMLINUX_SYMBOL(__stop_eh_frame) = .; \
13 }
14#else
15#define DWARF_EH_FRAME
16#endif
17
Paul Mundt19f6b8b2010-02-12 15:41:45 +090018#ifdef CONFIG_SUPERH64
19#define EXTRA_TEXT \
20 *(.text64) \
21 *(.text..SHmedia32)
22#else
23#define EXTRA_TEXT
24#endif
25
Matt Flemingbd353862009-08-14 01:58:43 +090026#endif /* __ASM_SH_VMLINUX_LDS_H */