Include NOTYPE symbols in the archive symbol table

This is necessary for blog os
This commit is contained in:
bjorn3 2021-11-24 20:35:57 +01:00
parent 1222192374
commit 8714be0ad3

View File

@ -149,12 +149,7 @@ enum BuilderKind {
object
.symbols()
.filter_map(|symbol| {
if symbol.is_undefined()
|| symbol.is_local()
|| symbol.kind() != SymbolKind::Data
&& symbol.kind() != SymbolKind::Text
&& symbol.kind() != SymbolKind::Tls
{
if symbol.is_undefined() || symbol.is_local() {
None
} else {
symbol.name().map(|name| name.as_bytes().to_vec()).ok()