Include NOTYPE symbols in the archive symbol table
This is necessary for blog os
This commit is contained in:
parent
1222192374
commit
8714be0ad3
@ -149,12 +149,7 @@ impl<'a> ArchiveBuilder<'a> for ArArchiveBuilder<'a> {
|
|||||||
object
|
object
|
||||||
.symbols()
|
.symbols()
|
||||||
.filter_map(|symbol| {
|
.filter_map(|symbol| {
|
||||||
if symbol.is_undefined()
|
if symbol.is_undefined() || symbol.is_local() {
|
||||||
|| symbol.is_local()
|
|
||||||
|| symbol.kind() != SymbolKind::Data
|
|
||||||
&& symbol.kind() != SymbolKind::Text
|
|
||||||
&& symbol.kind() != SymbolKind::Tls
|
|
||||||
{
|
|
||||||
None
|
None
|
||||||
} else {
|
} else {
|
||||||
symbol.name().map(|name| name.as_bytes().to_vec()).ok()
|
symbol.name().map(|name| name.as_bytes().to_vec()).ok()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user