From da8d9c793b449c66fc281ef045d72d2d920b652e Mon Sep 17 00:00:00 2001 From: Dave Murphy Date: Wed, 15 Aug 2018 02:02:33 +0100 Subject: [PATCH] explicitly MPL crt0 files. Closes #31 --- dkarm-eabi/crtls/3dsx.ld | 5 +++++ dkarm-eabi/crtls/3dsx_crt0.s | 6 ++++++ dkarm-eabi/crtls/dldi.ld | 5 +++++ dkarm-eabi/crtls/ds_arm7.ld | 5 +++++ dkarm-eabi/crtls/ds_arm7_crt0.s | 6 ++++++ dkarm-eabi/crtls/ds_arm7_iwram.ld | 5 +++++ dkarm-eabi/crtls/ds_arm7_vram.ld | 5 +++++ dkarm-eabi/crtls/ds_arm9.ld | 5 +++++ dkarm-eabi/crtls/ds_arm9.mem | 5 +++++ dkarm-eabi/crtls/ds_arm9_crt0.s | 6 ++++++ dkarm-eabi/crtls/ds_cart.ld | 5 +++++ dkarm-eabi/crtls/ds_cart_crt0.s | 6 ++++++ dkarm-eabi/crtls/dsi_arm9.mem | 5 +++++ dkarm-eabi/crtls/er_crt0.s | 4 ++++ dkarm-eabi/crtls/gba_crt0.s | 6 ++++++ dkarm-eabi/crtls/gp32_crt0.s | 6 ++++++ 16 files changed, 85 insertions(+) diff --git a/dkarm-eabi/crtls/3dsx.ld b/dkarm-eabi/crtls/3dsx.ld index 025034a..6488d62 100644 --- a/dkarm-eabi/crtls/3dsx.ld +++ b/dkarm-eabi/crtls/3dsx.ld @@ -1,3 +1,8 @@ +/*-------------------------------------------------------------------------------- + This Source Code Form is subject to the terms of the Mozilla Public License, + v. 2.0. If a copy of the MPL was not distributed with this file, You can + obtain one at https://mozilla.org/MPL/2.0/. +--------------------------------------------------------------------------------*/ OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm", "elf32-littlearm") OUTPUT_ARCH(arm) ENTRY(_start) diff --git a/dkarm-eabi/crtls/3dsx_crt0.s b/dkarm-eabi/crtls/3dsx_crt0.s index eaf0843..e2b5088 100644 --- a/dkarm-eabi/crtls/3dsx_crt0.s +++ b/dkarm-eabi/crtls/3dsx_crt0.s @@ -1,3 +1,9 @@ +/*-------------------------------------------------------------------------------- + This Source Code Form is subject to the terms of the Mozilla Public License, + v. 2.0. If a copy of the MPL was not distributed with this file, You can + obtain one at https://mozilla.org/MPL/2.0/. +--------------------------------------------------------------------------------*/ + @--------------------------------------------------------------------------------- @ 3DS processor selection @--------------------------------------------------------------------------------- diff --git a/dkarm-eabi/crtls/dldi.ld b/dkarm-eabi/crtls/dldi.ld index e39228f..a940c38 100644 --- a/dkarm-eabi/crtls/dldi.ld +++ b/dkarm-eabi/crtls/dldi.ld @@ -1,3 +1,8 @@ +/*-------------------------------------------------------------------------------- + This Source Code Form is subject to the terms of the Mozilla Public License, + v. 2.0. If a copy of the MPL was not distributed with this file, You can + obtain one at https://mozilla.org/MPL/2.0/. +--------------------------------------------------------------------------------*/ OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm", "elf32-littlearm") OUTPUT_ARCH(arm) ENTRY(_start) diff --git a/dkarm-eabi/crtls/ds_arm7.ld b/dkarm-eabi/crtls/ds_arm7.ld index af6f1f9..1479ee5 100644 --- a/dkarm-eabi/crtls/ds_arm7.ld +++ b/dkarm-eabi/crtls/ds_arm7.ld @@ -1,3 +1,8 @@ +/*-------------------------------------------------------------------------------- + This Source Code Form is subject to the terms of the Mozilla Public License, + v. 2.0. If a copy of the MPL was not distributed with this file, You can + obtain one at https://mozilla.org/MPL/2.0/. +--------------------------------------------------------------------------------*/ OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm", "elf32-littlearm") OUTPUT_ARCH(arm) ENTRY(_start) diff --git a/dkarm-eabi/crtls/ds_arm7_crt0.s b/dkarm-eabi/crtls/ds_arm7_crt0.s index 11cf60b..46894f9 100644 --- a/dkarm-eabi/crtls/ds_arm7_crt0.s +++ b/dkarm-eabi/crtls/ds_arm7_crt0.s @@ -1,3 +1,9 @@ +/*-------------------------------------------------------------------------------- + This Source Code Form is subject to the terms of the Mozilla Public License, + v. 2.0. If a copy of the MPL was not distributed with this file, You can + obtain one at https://mozilla.org/MPL/2.0/. +--------------------------------------------------------------------------------*/ + @--------------------------------------------------------------------------------- .section ".crt0","ax" .global _start diff --git a/dkarm-eabi/crtls/ds_arm7_iwram.ld b/dkarm-eabi/crtls/ds_arm7_iwram.ld index 64673b9..d990656 100644 --- a/dkarm-eabi/crtls/ds_arm7_iwram.ld +++ b/dkarm-eabi/crtls/ds_arm7_iwram.ld @@ -1,3 +1,8 @@ +/*-------------------------------------------------------------------------------- + This Source Code Form is subject to the terms of the Mozilla Public License, + v. 2.0. If a copy of the MPL was not distributed with this file, You can + obtain one at https://mozilla.org/MPL/2.0/. +--------------------------------------------------------------------------------*/ OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm", "elf32-littlearm") OUTPUT_ARCH(arm) ENTRY(_start) diff --git a/dkarm-eabi/crtls/ds_arm7_vram.ld b/dkarm-eabi/crtls/ds_arm7_vram.ld index 333783c..4c283ed 100644 --- a/dkarm-eabi/crtls/ds_arm7_vram.ld +++ b/dkarm-eabi/crtls/ds_arm7_vram.ld @@ -1,3 +1,8 @@ +/*-------------------------------------------------------------------------------- + This Source Code Form is subject to the terms of the Mozilla Public License, + v. 2.0. If a copy of the MPL was not distributed with this file, You can + obtain one at https://mozilla.org/MPL/2.0/. +--------------------------------------------------------------------------------*/ OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm", "elf32-littlearm") OUTPUT_ARCH(arm) ENTRY(_start) diff --git a/dkarm-eabi/crtls/ds_arm9.ld b/dkarm-eabi/crtls/ds_arm9.ld index ea554c9..28853f3 100644 --- a/dkarm-eabi/crtls/ds_arm9.ld +++ b/dkarm-eabi/crtls/ds_arm9.ld @@ -1,3 +1,8 @@ +/*-------------------------------------------------------------------------------- + This Source Code Form is subject to the terms of the Mozilla Public License, + v. 2.0. If a copy of the MPL was not distributed with this file, You can + obtain one at https://mozilla.org/MPL/2.0/. +--------------------------------------------------------------------------------*/ OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm", "elf32-littlearm") OUTPUT_ARCH(arm) ENTRY(_start) diff --git a/dkarm-eabi/crtls/ds_arm9.mem b/dkarm-eabi/crtls/ds_arm9.mem index 1b3f0b4..5fe5f8c 100644 --- a/dkarm-eabi/crtls/ds_arm9.mem +++ b/dkarm-eabi/crtls/ds_arm9.mem @@ -1,3 +1,8 @@ +/*-------------------------------------------------------------------------------- + This Source Code Form is subject to the terms of the Mozilla Public License, + v. 2.0. If a copy of the MPL was not distributed with this file, You can + obtain one at https://mozilla.org/MPL/2.0/. +--------------------------------------------------------------------------------*/ MEMORY { ewram : ORIGIN = 0x02000000, LENGTH = 4M - 512k dtcm : ORIGIN = 0x0b000000, LENGTH = 16K diff --git a/dkarm-eabi/crtls/ds_arm9_crt0.s b/dkarm-eabi/crtls/ds_arm9_crt0.s index 7b5850f..378bf62 100644 --- a/dkarm-eabi/crtls/ds_arm9_crt0.s +++ b/dkarm-eabi/crtls/ds_arm9_crt0.s @@ -1,3 +1,9 @@ +/*-------------------------------------------------------------------------------- + This Source Code Form is subject to the terms of the Mozilla Public License, + v. 2.0. If a copy of the MPL was not distributed with this file, You can + obtain one at https://mozilla.org/MPL/2.0/. +--------------------------------------------------------------------------------*/ + @--------------------------------------------------------------------------------- @ DS processor selection @--------------------------------------------------------------------------------- diff --git a/dkarm-eabi/crtls/ds_cart.ld b/dkarm-eabi/crtls/ds_cart.ld index baf2059..22d65f9 100644 --- a/dkarm-eabi/crtls/ds_cart.ld +++ b/dkarm-eabi/crtls/ds_cart.ld @@ -1,3 +1,8 @@ +/*-------------------------------------------------------------------------------- + This Source Code Form is subject to the terms of the Mozilla Public License, + v. 2.0. If a copy of the MPL was not distributed with this file, You can + obtain one at https://mozilla.org/MPL/2.0/. +--------------------------------------------------------------------------------*/ OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm", "elf32-littlearm") OUTPUT_ARCH(arm) ENTRY(_start) diff --git a/dkarm-eabi/crtls/ds_cart_crt0.s b/dkarm-eabi/crtls/ds_cart_crt0.s index 8b2c4da..0cba51e 100644 --- a/dkarm-eabi/crtls/ds_cart_crt0.s +++ b/dkarm-eabi/crtls/ds_cart_crt0.s @@ -1,3 +1,9 @@ +/*-------------------------------------------------------------------------------- + This Source Code Form is subject to the terms of the Mozilla Public License, + v. 2.0. If a copy of the MPL was not distributed with this file, You can + obtain one at https://mozilla.org/MPL/2.0/. +--------------------------------------------------------------------------------*/ + @--------------------------------------------------------------------------------- .section ".crt0","ax" .global _start diff --git a/dkarm-eabi/crtls/dsi_arm9.mem b/dkarm-eabi/crtls/dsi_arm9.mem index a1d6aa8..a324980 100644 --- a/dkarm-eabi/crtls/dsi_arm9.mem +++ b/dkarm-eabi/crtls/dsi_arm9.mem @@ -1,3 +1,8 @@ +/*-------------------------------------------------------------------------------- + This Source Code Form is subject to the terms of the Mozilla Public License, + v. 2.0. If a copy of the MPL was not distributed with this file, You can + obtain one at https://mozilla.org/MPL/2.0/. +--------------------------------------------------------------------------------*/ MEMORY { ewram : ORIGIN = 0x02000000, LENGTH = 15M - 512k dtcm : ORIGIN = 0x0b000000, LENGTH = 16K diff --git a/dkarm-eabi/crtls/er_crt0.s b/dkarm-eabi/crtls/er_crt0.s index af2b57b..022afab 100644 --- a/dkarm-eabi/crtls/er_crt0.s +++ b/dkarm-eabi/crtls/er_crt0.s @@ -3,6 +3,10 @@ @--------------------------------------------------------------------------------- @ author : tim schuerewegen @ version : 1.0 +@--------------------------------------------------------------------------------- +@ This Source Code Form is subject to the terms of the Mozilla Public License, +@ v. 2.0. If a copy of the MPL was not distributed with this file, You can +@ obtain one at https://mozilla.org/MPL/2.0/. @--------------------------------------------------------------------------------- .section ".crt0","ax" .global _start diff --git a/dkarm-eabi/crtls/gba_crt0.s b/dkarm-eabi/crtls/gba_crt0.s index a561751..18315b3 100644 --- a/dkarm-eabi/crtls/gba_crt0.s +++ b/dkarm-eabi/crtls/gba_crt0.s @@ -1,3 +1,9 @@ +/*-------------------------------------------------------------------------------- + This Source Code Form is subject to the terms of the Mozilla Public License, + v. 2.0. If a copy of the MPL was not distributed with this file, You can + obtain one at https://mozilla.org/MPL/2.0/. +--------------------------------------------------------------------------------*/ + .section ".crt0","ax" .global _start .align diff --git a/dkarm-eabi/crtls/gp32_crt0.s b/dkarm-eabi/crtls/gp32_crt0.s index 9eaf54e..fd67b32 100644 --- a/dkarm-eabi/crtls/gp32_crt0.s +++ b/dkarm-eabi/crtls/gp32_crt0.s @@ -1,3 +1,9 @@ +/*-------------------------------------------------------------------------------- + This Source Code Form is subject to the terms of the Mozilla Public License, + v. 2.0. If a copy of the MPL was not distributed with this file, You can + obtain one at https://mozilla.org/MPL/2.0/. +--------------------------------------------------------------------------------*/ + .section ".crt0","ax" .code 32 .align