Skip to content

Commit

Permalink
Merge branch 'main' of github.com:betrusted-io/xous-core into main
Browse files Browse the repository at this point in the history
  • Loading branch information
bunnie committed Nov 4, 2022
2 parents 5de44a9 + f861af7 commit 4264231
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions loader/link.x
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
MEMORY
{
RAM : ORIGIN = 0x40000000, LENGTH = 16M
FLASH : ORIGIN = 0x20501000, LENGTH = 188k
FONTS : ORIGIN = 0x20530000, LENGTH = 4352k
MEMLCD: ORIGIN = 0xB0000000, LENGTH = 32k
RAM : ORIGIN = 0x40000000, LENGTH = 16M
MEMLCD : ORIGIN = 0xB0000000, LENGTH = 32k
}
/*
Fonts go from 0x2053_0000 to 0x2097_0000
Expand Down Expand Up @@ -51,7 +51,7 @@ SECTIONS
.text.dummy (NOLOAD) :
{
/* This section is intended to make _stext address work */
. = _stext;
. = ABSOLUTE(_stext);
} > REGION_TEXT

.text _stext :
Expand Down Expand Up @@ -91,7 +91,7 @@ SECTIONS
_edata = .;
} > REGION_DATA AT > REGION_RODATA

.fonts ALIGN(65536) : SUBALIGN(65536)
.fonts : ALIGN(65536)
{
KEEP(*(.fontdata));
} > FONTS
Expand Down
2 changes: 1 addition & 1 deletion tools/src/elf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ pub fn process_program(b: &[u8]) -> Result<ProgramDescription, ElfReadError> {
s.address()
);
continue;
} else if text_offset == 0 && s.size() != 0 {
} else if text_offset == 0 && (s.address() != 0 || s.size() != 0) {
text_offset = s.address() as u32;
text_size += s.size() as u32;
} else {
Expand Down

0 comments on commit 4264231

Please sign in to comment.