linker.h (Source)

/* Copyright (C) 2018 Oliver Kleinke
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * 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/>.
 */

#pragma once

#include "std.h"

// Declare linker-defined symbols

extern const u8 __text_begin__[];
extern const u32 __text_size__[];

extern u8 const * __rodata_begin__[];
extern const u32 __rodata_size__[];

extern u8 const * __exidx_begin__[];
extern const u32 __exidx_size__[];

extern u8 const * __extab_begin__[];
extern const u32 __extab_size__[];

extern u8 const * __stack_begin__[];
extern const u32 __stack_size__[];
extern u8 const * __stack_init__[];

extern u8 const * __data_lma__[];
extern u8 const * __data_begin__[];
extern const u32 __data_size__[];

extern u8 const * __bss_begin__[];
extern const u32 __bss_size__[];

extern u8 const * __heap_begin__[];
extern const u32 __heap_size__[];