mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
Since GNU binutils version 2.44, assembly functions must include the assembler directive .type name, %function. If not a call to these functions fails with the error message 'Unknown destination type (ARM/Thumb)' and the error message 'dangerous relocation: unsupported relocation' at linking. The macros ENTRY/ENDPROC includes this directive and should be used for all assembly functions. Signed-off-by: Johannes Krottmayer <johannes@krotti42.com> Cc: Tom Rini <trini@konsulko.com> Reviewed-by: Tom Rini <trini@konsulko.com>
23 lines
405 B
ArmAsm
23 lines
405 B
ArmAsm
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* (C) Copyright 2015
|
|
* Kamil Lulko, <kamil.lulko@gmail.com>
|
|
*/
|
|
|
|
#include <linux/linkage.h>
|
|
#include <asm/assembler.h>
|
|
|
|
/*
|
|
* Startup code (reset vector)
|
|
*/
|
|
ENTRY(reset)
|
|
W(b) _main @ Jump to _main (C runtime crt0.S)
|
|
ENDPROC(reset)
|
|
|
|
/*
|
|
* Setup CPU for C runtime
|
|
*/
|
|
ENTRY(c_runtime_cpu_setup)
|
|
mov pc, lr @ Jump back to caller
|
|
ENDPROC(c_runtime_cpu_setup)
|