Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 8714be0

Browse files
committed
Include NOTYPE symbols in the archive symbol table
This is necessary for blog os
1 parent 1222192 commit 8714be0

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/archive.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -149,12 +149,7 @@ impl<'a> ArchiveBuilder<'a> for ArArchiveBuilder<'a> {
149149
object
150150
.symbols()
151151
.filter_map(|symbol| {
152-
if symbol.is_undefined()
153-
|| symbol.is_local()
154-
|| symbol.kind() != SymbolKind::Data
155-
&& symbol.kind() != SymbolKind::Text
156-
&& symbol.kind() != SymbolKind::Tls
157-
{
152+
if symbol.is_undefined() || symbol.is_local() {
158153
None
159154
} else {
160155
symbol.name().map(|name| name.as_bytes().to_vec()).ok()

0 commit comments

Comments
 (0)