bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/23297] New: macOS: BFD_MACH_O_X86_64_RELOC_TLV is not supp


From: mephi42 at gmail dot com
Subject: [Bug binutils/23297] New: macOS: BFD_MACH_O_X86_64_RELOC_TLV is not supported
Date: Sat, 16 Jun 2018 22:58:08 +0000

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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]