Skip to content

Commit

Permalink
Readd .gitattributes and fix some line endings
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoti committed Nov 28, 2024
1 parent 04602cd commit 9447557
Show file tree
Hide file tree
Showing 5 changed files with 85 additions and 77 deletions.
8 changes: 8 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
* text=auto
#*.c text
#*.h text
*.l text
*.S text
*.py text
*.sh text eol=lf
*.bat text eol=crlf
6 changes: 3 additions & 3 deletions loader/live/user/hello_world/asd.bat
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
rm *.o anim/*.o common/*.o config/*.o graphics/*.o
make clean
make
rm *.o anim/*.o common/*.o config/*.o graphics/*.o
make clean
make
pause>nul
52 changes: 26 additions & 26 deletions loader/perma/cipl/classic/mainbinex/linkfile.l
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
OUTPUT_FORMAT("elf32-littlemips")
OUTPUT_ARCH(mips)

ENTRY(_arkBoot)

SECTIONS
{
. = 0x040e0000;
.text.startup : {
*(.text.startup)
}
.text : {
*(.text)
}
.rodata : {
*(.rodata)
}
.data : {
*(.data)
}
__bss_start = .;
.bss : {
*(.bss)
}
__bss_end = .;
}
OUTPUT_FORMAT("elf32-littlemips")
OUTPUT_ARCH(mips)

ENTRY(_arkBoot)

SECTIONS
{
. = 0x040e0000;
.text.startup : {
*(.text.startup)
}
.text : {
*(.text)
}
.rodata : {
*(.rodata)
}
.data : {
*(.data)
}
__bss_start = .;
.bss : {
*(.bss)
}
__bss_end = .;
}
46 changes: 23 additions & 23 deletions loader/rebootex/crt0.S
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
.set noreorder

.section .text.vector

#include "as_reg_compat.h"

.global _start

.ent _start
_start:
# Clear bss
la $t3, __bss_start
la $t4, __bss_end
clear_bss_loop:
sltu $t5, $t3, $t4
addiu $t3, $t3, 4
bnel $t5, $0, clear_bss_loop
sw $0, -4($t3)
j _arkReboot
nop
.end _start

.set reorder
.set noreorder

.section .text.vector

#include "as_reg_compat.h"

.global _start

.ent _start
_start:
# Clear bss
la $t3, __bss_start
la $t4, __bss_end
clear_bss_loop:
sltu $t5, $t3, $t4
addiu $t3, $t3, 4
bnel $t5, $0, clear_bss_loop
sw $0, -4($t3)
j _arkReboot
nop
.end _start

.set reorder
50 changes: 25 additions & 25 deletions loader/rebootex/linkfile.l
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
OUTPUT_FORMAT("elf32-littlemips", "elf32-bigmips", "elf32-littlemips")
OUTPUT_ARCH(mips:allegrex)

ENTRY(_start)

SECTIONS
{
. = 0x88FC0000;
.text :
{
KEEP(*(.text.vector))
*(.text)
}
.sdata : { *(.sdata) *(.sdata.*) *(.gnu.linkonce.s.*) }
.rodata : { *(.rodata) }
.data : { *(.data*) }
. = .;
.bss (NOLOAD):
{
__bss_start = .;
*(.bss* .bss.*)
*(COMMON)
__bss_end = .;
}
}
OUTPUT_FORMAT("elf32-littlemips", "elf32-bigmips", "elf32-littlemips")
OUTPUT_ARCH(mips:allegrex)

ENTRY(_start)

SECTIONS
{
. = 0x88FC0000;
.text :
{
KEEP(*(.text.vector))
*(.text)
}
.sdata : { *(.sdata) *(.sdata.*) *(.gnu.linkonce.s.*) }
.rodata : { *(.rodata) }
.data : { *(.data*) }
. = .;
.bss (NOLOAD):
{
__bss_start = .;
*(.bss* .bss.*)
*(COMMON)
__bss_end = .;
}
}

0 comments on commit 9447557

Please sign in to comment.