Ignore as_needed in ld_add_file_list
commitded713e90dde1eba60a9c9156e4c00a734039142
authorherman ten brugge <hermantenbrugge@home.nl>
Wed, 8 Nov 2023 18:58:26 +0000 (8 19:58 +0100)
committerherman ten brugge <hermantenbrugge@home.nl>
Wed, 8 Nov 2023 18:58:26 +0000 (8 19:58 +0100)
treee0fed9fc1a191e1bf0e7ab282b76b979c787bc82
parent0f29dbcfd5925f49501e8fb90509fd95a1bddb8c
Ignore as_needed in ld_add_file_list

After the change to DT_NEEDED I get warnings for some functions.
The reason is that libc.so on my machine contains:
GROUP ( /lib64/libc.so.6 /usr/lib64/libc_nonshared.a  AS_NEEDED ( /lib64/ld-linux-x86-64.so.2 ) )

Before the change to DT_NEEDED we solved the symbols because the
/lib64/libc.so.6 file has as DT_NEEDED set for ld-linux-x86-64.so.2
The above AS_NEEDED section was not followed so symbols in this
file gives a warning.
Currently fixed by including AS_NEEDED files.
tccelf.c