https://sourceware.org/bugzilla/show_bug.cgi?id=23315

            Bug ID: 23315
           Summary: macOS: objcopy --globalize-symbol and
                    --localize-symbol are no-ops
           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 obj.c
static void f() {}
void g() { f(); }

$ gcc -c obj.c

$ nm obj.o
0000000000000010 t _f
0000000000000000 T _g

$ binutils-gdb/binutils/objcopy --globalize-symbol _f --localize-symbol=_g
obj.o obj1.o

$ nm obj1.o
0000000000000010 t _f
0000000000000000 T _g

With the attached patch:

$ binutils-gdb/binutils/objcopy --globalize-symbol _f --localize-symbol=_g
obj.o obj1.o

$ nm obj1.o
0000000000000010 T _f
0000000000000000 t _g

-- 
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

Reply via email to