How to use test-nlist
Tue May 28 02:17:00 GMT 2019
On 2019å¹´05æ24æ¥ 15:00, Mark Wielaard wrote:
> On Fri, May 24, 2019 at 02:45:21PM +0800, Yu, Mingli wrote:
>> And I noticed the source code and already run as "./test-nlist", but Seems
>> it doesn't work as expected.
>> # ./test-nlist
>> # echo $?
>> # ./test-nlist -d
>> nl.n_name = "var"
>> nl.n_value = 0
>> nl.n_scnum = 0
>> nl.n_type = 0
>> nl.n_sclass = 0
>> nl.n_numaux = 0
> Right. And that is because...
>>>> For some reason your test-nlist doesn't have an .symtab.
>>>> Make sure that when you build the tests CLFAGS contains -g.
>>>> And the that test binary isn't accidentially stripped afterwards.
> Make sure you fix that and the test will pass.
Thanks Mark very much!
In fact, the package always build with -g, but I just split the debug
info to another package elfutils-dbg, and now the test pass if not split
the debug info to the elfutils-dbg package.
More information about the Elfutils-devel