Skip to content
Snippets Groups Projects
Verified Commit 3bc1ab55 authored by rahix's avatar rahix
Browse files

fix(l0der): Fix whitespace issues


Signed-off-by: default avatarRahix <rahix@rahix.de>
parent 2fa3090d
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* *
* To implement it, we parse an ELF file somewhat defensively, trying to * To implement it, we parse an ELF file somewhat defensively, trying to
* not DoS ourselves by overallocating RAM (no heap allocations, no recursion). * not DoS ourselves by overallocating RAM (no heap allocations, no recursion).
* *
* Currently we support only relocatable, PIE binaries. Adding support for * Currently we support only relocatable, PIE binaries. Adding support for
* static ELFs would be trivial, however we want to keep the possibility to * static ELFs would be trivial, however we want to keep the possibility to
* shuffle around memory areas in future versions of card10 (possibly giving * shuffle around memory areas in future versions of card10 (possibly giving
...@@ -104,7 +104,7 @@ static int _read_elf_header(int fd, Elf32_Ehdr *hdr) ...@@ -104,7 +104,7 @@ static int _read_elf_header(int fd, Elf32_Ehdr *hdr)
* :param void *data: buffer into which to read * :param void *data: buffer into which to read
* :param size_t count: amount of bytes to read * :param size_t count: amount of bytes to read
* :returns: ``0`` on success or a negative value on error. Possible errors: * :returns: ``0`` on success or a negative value on error. Possible errors:
* *
* - ``-EIO``: Could not read from FAT - address out of bounds of not enough bytes available. * - ``-EIO``: Could not read from FAT - address out of bounds of not enough bytes available.
*/ */
static int _seek_and_read(int fd, uint32_t address, void *data, size_t count) static int _seek_and_read(int fd, uint32_t address, void *data, size_t count)
......
...@@ -44,7 +44,7 @@ void fade() ...@@ -44,7 +44,7 @@ void fade()
} }
} }
/* /*
* main() is called when l0dable is loaded and executed. * main() is called when l0dable is loaded and executed.
*/ */
int main(void) int main(void)
......
...@@ -35,7 +35,7 @@ SECTIONS { ...@@ -35,7 +35,7 @@ SECTIONS {
{ {
*(.text*) *(.text*)
*(.rodata*) *(.rodata*)
KEEP(*(.init)) KEEP(*(.init))
KEEP(*(.fini)) KEEP(*(.fini))
} :text } :text
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment