Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
output/elf: Don't set data symbol type/size in ABS sections
I'm dealing with a FreeBSD-derived embedded target that ends up showing such symbols (which is mainly NASM struct definitions) in backtraces after calling NULL function pointers, since these symbols _are_ technically covering bytes around address zero. Needless to say, this is extremely confusing and generates nonsensical bug reports. (Essentially, random unrelated crashes get cross-referenced to a random ASM struct, whatever the linker picked for address 0). These symbols are already a bit strange to begin with (they're purely an artifact of how NASM happens to implement structs), leaving their sizes at 0 seems reasonable. Signed-off-by: Fabian Giesen <fabian.giesen@epicgames.com>
- Loading branch information