How to use test-nlist
Fri May 24 07:00:00 GMT 2019
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.
More information about the Elfutils-devel