Compare commits

..

6 Commits

Author SHA1 Message Date
Dave Murphy
b954aaf35d
dereference pointer. Closes #612 2023-06-07 16:16:37 +01:00
Dave Murphy
8ce306b9b6
4.4.2 release 2023-05-27 15:24:25 +01:00
Dave Murphy
2e80cf9bba quote timezone to allow +/- & alphanumerics 2023-05-27 16:16:37 +02:00
Dave Murphy
95f973fe98 ensure correct address for __bss_start__ 2023-05-27 16:16:31 +02:00
Dave Murphy
6602c440b4
end compile_commmands generation when elf linked 2023-05-27 10:25:44 +01:00
Dave Murphy
99a29b97ca
ignore more generated files 2023-05-27 10:18:45 +01:00
7 changed files with 21 additions and 6 deletions

2
.gitignore vendored
View File

@ -13,3 +13,5 @@ debug/
release/ release/
lib/ lib/
docs/ docs/
compile_commands.json
.clangd

View File

@ -1,5 +1,14 @@
# Changelog # Changelog
## Version 4.4.2
#### system
* ensure correct addresses for bss
#### miscellaneous
* fix timezone to allow +/- and alphanumrics
* end compile_commmands generation when elf linked
## Version 4.4.1 ## Version 4.4.1
#### miscellaneous #### miscellaneous

View File

@ -10,7 +10,7 @@ include $(DEVKITPRO)/devkitA64/base_rules
export LIBNX_MAJOR := 4 export LIBNX_MAJOR := 4
export LIBNX_MINOR := 4 export LIBNX_MINOR := 4
export LIBNX_PATCH := 0 export LIBNX_PATCH := 2
VERSION := $(LIBNX_MAJOR).$(LIBNX_MINOR).$(LIBNX_PATCH) VERSION := $(LIBNX_MAJOR).$(LIBNX_MINOR).$(LIBNX_PATCH)

View File

@ -553,7 +553,7 @@ Result swkbdInlineGetImage(SwkbdInline* s, void* buffer, u64 size, bool *data_av
if (!buffer || !size) return MAKERESULT(Module_Libnx, LibnxError_BadInput); if (!buffer || !size) return MAKERESULT(Module_Libnx, LibnxError_BadInput);
if (_swkbdInlineHandleFinished(s)) { if (_swkbdInlineHandleFinished(s)) {
data_available = false; *data_available = false;
return 0; return 0;
} }

View File

@ -320,10 +320,13 @@ void __libnx_init_time(void)
hour = tmp_offset % 24; hour = tmp_offset % 24;
memset(envstr, 0, sizeof(envstr)); memset(envstr, 0, sizeof(envstr));
strptr = envstr;
// Some tznames have numeric characters and '-'/'+', so quote tzname with <>.
*strptr++ = '<';
//Avoid using *printf. //Avoid using *printf.
strncpy(envstr, /*info.timezoneName*/"NX", sizeof(envstr)-1); // Some tznames have numeric characters and '-'/'+', so the actual tzname can't be used. strncpy(strptr, info.timezoneName, sizeof(envstr)-1);
strptr = &envstr[strlen(envstr)]; strptr = &envstr[strlen(envstr)];
*strptr++ = '>';
*strptr++ = is_west ? '+' : '-'; *strptr++ = is_west ? '+' : '-';
*strptr++ = '0' + (hour / 10); *strptr++ = '0' + (hour / 10);

View File

@ -134,7 +134,6 @@ SECTIONS
SORT(CONSTRUCTORS) SORT(CONSTRUCTORS)
} :data } :data
__bss_start__ = .;
.bss ALIGN(8) : .bss ALIGN(8) :
{ {
*(.dynbss) *(.dynbss)
@ -147,7 +146,8 @@ SECTIONS
. += + SIZEOF(.tdata) + SIZEOF(.tbss); . += + SIZEOF(.tdata) + SIZEOF(.tbss);
__tls_end = .; __tls_end = .;
} : data } : data
__bss_end__ = .; __bss_start__ = ADDR(.bss);
__bss_end__ = ADDR(.bss) + SIZEOF(.bss);
__end__ = ABSOLUTE(.) ; __end__ = ABSOLUTE(.) ;

View File

@ -77,5 +77,6 @@ endif
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
%.elf: %.elf:
@echo linking $(notdir $@) @echo linking $(notdir $@)
$(ADD_COMPILE_COMMAND) end
@$(LD) $(LDFLAGS) $(OFILES) $(LIBPATHS) $(LIBS) -o $@ @$(LD) $(LDFLAGS) $(OFILES) $(LIBPATHS) $(LIBS) -o $@
@$(NM) -CSn $@ > $(notdir $*.lst) @$(NM) -CSn $@ > $(notdir $*.lst)