[PATCH] D59436: [ELF] Fix missing ELF st_other field on versioned symbols

Alfredo Dal'Ava JĂșnior via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 15 15:15:47 PDT 2019


adalava added a comment.

Example code: F8465516: test.c <https://reviews.llvm.org/F8465516>

**Results Unpatched:** (note missing 0x60 before symbol "openattt at FBSD_1.1")

`$ /usr/local/powerpc64-unknown-freebsd12.0/bin/objdump -t test.o 
test.o:     file format elf64-powerpc-freebsd

SYMBOL TABLE:
0000000000000000 l    df *ABS*	0000000000000000 test.c
0000000000000000 l    d  .toc	0000000000000000 .toc
0000000000000000         *UND*	0000000000000000 .TOC.
0000000000000000  w    F .text	000000000000002c 0x60 __impl_openattt
0000000000000000 g     O .bss	0000000000000004 a
0000000000000000 g     F .text	000000000000002c 0x60 openattt
0000000000000000  w    F .text	000000000000002c openattt at FBSD_1.1`

**Patched:**

`$ /usr/local/powerpc64-unknown-freebsd12.0/bin/objdump -t test.o

test.o:     file format elf64-powerpc-freebsd

SYMBOL TABLE:
0000000000000000 l    df *ABS*	0000000000000000 test.c
0000000000000000 l    d  .toc	0000000000000000 .toc
0000000000000000         *UND*	0000000000000000 .TOC.
0000000000000000  w    F .text	000000000000002c 0x60 __impl_openattt
0000000000000000 g     O .bss	0000000000000004 a
0000000000000000 g     F .text	000000000000002c 0x60 openattt
0000000000000000  w    F .text	000000000000002c 0x60 openattt at FBSD_1.1`


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D59436/new/

https://reviews.llvm.org/D59436





More information about the llvm-commits mailing list