toolchain: add stuff i forgot about

This commit is contained in:
Felix Kopp 2021-01-04 14:58:52 +01:00
parent 6f10f507da
commit 190eedd842
No known key found for this signature in database
GPG key ID: C478BA0A85F75728
2 changed files with 4 additions and 0 deletions

View file

@ -25,6 +25,7 @@ typedef __UINT64_TYPE__ uint64_t;
/** Unsigned size specifier. */
typedef __SIZE_TYPE__ size_t;
typedef __SIZE_TYPE__ uintptr_t;
/** Signed size specifier (negative sizes mean error codes). */
typedef __PTRDIFF_TYPE__ ssize_t;
typedef __PTRDIFF_TYPE__ ptrdiff_t;

View file

@ -46,6 +46,9 @@
#define __section(name) __attribute__((section(#name)))
#endif /* __section */
/** Place a variable in program memory rather than into RAM. */
#define __rodata __section(.rodata#)
/*
* Copyright (c) 2020 Felix Kopp <sandtler@sandtler.club>
*