summaryrefslogtreecommitdiff
path: root/Makefile
AgeCommit message (Collapse)AuthorFilesLines
2018-01-14dlfcn: Combine functions for the same header into one fileSamuel Holland1-2/+1
Changes to existing code: * Make explicit comparison against NULL. * Adjust debug message for readability. Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-01-14execinfo: Clean up, implement backtrace_symbols_fdSamuel Holland1-1/+1
Rename the file to match the header it implements functions from. Changes to existing code: * Fix the return value from backtrace (off by one). * Use __builtin_extract_return_addr as recommended in gcc documentation. * Document header usage. * Document where the functions are referenced in the LSB standard. Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-01-14Makefile: Update compilation optionsSamuel Holland1-3/+4
* Remove -DPIC as it is unused (and PIC is always enabled). * Export the loader name as a macro (this will be used in the future). * Enable compiler warnings, except the expected ones. Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-01-14libgcompat: Add and use a macro for defining symbol aliasesSamuel Holland1-0/+4
* Prefer providing the underscore-prefixed symbol as the strong definition. * Do not use a weak alias if the alias is also underscore-prefixed. * Make libgcompat objects depend on the new header. [NOTE: I originally took the weak_alias macro from musl's libc.h, but it's trivial and the same pattern already in use. If desired, I can add the musl copyright notice.] Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-01-14Add clang-format configuration and Makefile ruleSamuel Holland1-0/+5
The settings here are based on the current code style documentation. Signed-off-by: Samuel Holland <samuel@sholland.org>
2017-10-26Makefile: Ensure correct compilation on GCC 4.xA. Wilcox1-2/+5
On GCC 4.9.4, at least backtrace.c fails to compile because of variable declaration in a for statement, which requires -std=c99 or -std=c11. Since we are using ISO C mode instead of a GNU standard, we additionally must define _BSD_SOURCE to expose Dl_info for the dl code.
2017-10-15ucontext: new moduleA. Wilcox1-0/+1
2017-10-15resolv: new moduleA. Wilcox1-0/+1
2017-09-16Makefile: allow compilation with specified compiler rather than hard-coded gccDaniel James1-3/+3
2017-07-28libgcompat: add getpwent_r() and fgetpwent_r() stubsWilliam Pitcock1-0/+1
2017-06-14add sysctl()William Pitcock1-0/+1
2017-06-14pthread: add __register_atfork() stubWilliam Pitcock1-0/+1
2017-06-14recent musl has pthread_setname_np().William Pitcock1-1/+0
2017-06-14build system: add install target, fix loader build rulesWilliam Pitcock1-2/+6
2017-06-14add MakefileWilliam Pitcock1-0/+38