https://sourceware.org/bugzilla/show_bug.cgi?id=23297
Bug ID: 23297 Summary: macOS: BFD_MACH_O_X86_64_RELOC_TLV is not supported Product: binutils Version: 2.31 (HEAD) Status: UNCONFIRMED Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: mephi42 at gmail dot com Target Milestone: --- $ cat thread.c __thread int x = 42; int main() { return x; } $ gcc -c thread.c $ binutils-gdb/binutils/objdump -r thread.o thread.o: file format mach-o-x86-64 RELOCATION RECORDS FOR [.text]: binutils-gdb/binutils/objdump: failed to read relocs in: thread.o binutils-gdb/binutils/objdump: error message was: file in wrong format $ binutils-gdb/binutils/objcopy thread.o thread1.o binutils-gdb/binutils/objcopy:thread.o[.text]: relocation count is negative: file in wrong format I think this is because bfd_mach_o_x86_64_canonicalize_one_reloc() does not handle BFD_MACH_O_X86_64_RELOC_TLV case. -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils