You've already forked libmali-rockchip
mirror of
https://github.com/armbian/libmali-rockchip.git
synced 2026-01-06 12:03:41 -08:00
Some pre-built mali libraries would have local symbol issue: readelf -s <libmali.so>: Warning: local symbol 9 found at index >= .dynsym's sh_info value of 9 Let's use lief to increase .dynsym section's sh_info to workaround it. Change-Id: Icf2037824d9c1312c5b24b982f628319a118988a Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
13 lines
285 B
Python
Executable File
13 lines
285 B
Python
Executable File
#!/usr/bin/env python3
|
|
import lief
|
|
import sys
|
|
|
|
libpath = sys.argv[1]
|
|
lib = lief.parse(libpath)
|
|
|
|
# HACK: increase .dynsym's sh_info to workaround local symbol warning:
|
|
# 'found local symbol in global part of symbol table'
|
|
lib.get_section('.dynsym').information = 10
|
|
|
|
lib.write(libpath)
|