I want to statically compile a program with tcc. tcc complains with error: Unknown relocation type: 23. This is apparently caused by my libc implementation (glibc 2.28-10) using thread-local storage to implement errno, which tcc does not support. The program that I'd like to compile does not use threads, and so it would not be a problem if errno was implemented as a global, which would fix it for tcc. Does anyone know if there's a libc implementation that can be configured to do this?
errno without thread-local storage
202 Views Asked by Tom At
0
There are 0 best solutions below
Related Questions in C
- Passing arguments to main in C using Eclipse
- kernel module does not print packet info
- error C2016 (C requires that a struct or union has at least one member) and structs typedefs
- Drawing with ncurses, sockets and fork
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- Configured TTL for A record(s) backing CNAME records
- Allocating memory for pointers inside structures in functions
- Finding articulation point of undirected graph by DFS
- C first fgets() is being skipped while the second runs
- C std library don't appear to be linked in object file
- gcc static library compilation
- How to do a case-insensitive string comparison?
- C programming: Create and write 2D array of files as function
- How to read a file then store to array and then print?
- Function timeouts in C and thread
Related Questions in GLIBC
- How to load all symbols from shared library on start up?
- Malloc( ) - Decision between a new page(s) request or re-cycling previously allocated memory
- Custom glibc in non-standard path on machine with uclibc and gcc compiled against uclibc
- crosstool-NG linux x86 32Bit build fails on 32Bit vm-machine, Assembler messages
- dlopen errors in glibc
- Send UDP broadcast with use of glib
- GNU argp "too few arguments"
- C compiler error: cdefs.h not found
- How can I invoke a function with multiple distinct signatures (as glibc invokes main)?
- sudo su command not working in OEL 7
- -pthread, -lpthread and minimal dynamic linktime dependencies
- How to get the position of the function in the call stack?
- Standard way to call `ffsl` in C++?
- How to set LD_PRELOAD for su or sudo?
- Async signal safety of fork()
Related Questions in LIBC
- nasm: jump when input is NULL
- How to uninitialize the entropy of /dev/urandom in C?
- How does a program inherit environment variables?
- memccpy return lower memory address than the src starting address
- How to find out what floating point is libc using?
- Building shared libc.so for System V ABI under GNU ABI
- Replacing memcpy and .divsi3_skip_div0_test with smaller code on ARM MCU
- how fio loads various io engines when it starts?
- What are the historical reasons that "streams" are called FILE in C
- What operations are unsafe before __libc_init_array is invoked?
- Raspberry Pi Libc corrupted
- Undefined reference to GLIBC_2.15
- ELF weak import / fallback stubs for glibc functions
- what is libc? what are the functions it includes? how can we get the source code of it?
- -Werror=format: how can the compiler know
Related Questions in MUSL
- What are the __NR_-prefixed symbols in glibc?
- Building MariaDB with musl: /usr/bin/ld cannot find -lgcc_s
- How does musl's GCC wrapper differ from musl's cross-compiler?
- X11 linking issue potentially musl libc related
- Compiling with musl gives: 'Error relocating - secure_getenv: symbol not found'
- gettext won't build libintl.so
- Function of __syscall_cp In Musl Libc
- glibc vs. musl (shared) binary compatibility
- how to check the source code of musl in gdb
- Include standard library functions in a specific memory section
- Docker image for Nodejs and Couchbase SDK
- Static build of Nginx
- Compiling dotnet core app for linux-musl-arm
- qemu-x86_64: Could not open '/lib/ld-musl-x86_64.so.1': No such file or directory
- x86_64-linux-musl-g++: fatal error: cannot execute ‘cc1plus’: execvp: No such file or directory, on alpine container
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?