Skip to content

Commit abffc4a

Browse files
committed
StripDebugInfo should respect DeleteLocalSymbols
1 parent c4800fc commit abffc4a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/image/NativeImageDebugInfoStripFeature.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
*/
2525
package com.oracle.svm.hosted.image;
2626

27+
import static com.oracle.svm.core.SubstrateOptions.DeleteLocalSymbols;
28+
2729
import java.io.IOException;
2830
import java.nio.file.Files;
2931
import java.nio.file.Path;
@@ -127,7 +129,7 @@ private static void stripLinux(AfterImageWriteAccessImpl accessImpl) {
127129

128130
private static Path createKeepSymbolsListFile(AfterImageWriteAccessImpl accessImpl) throws IOException {
129131
Path exportedSymbolsPath = accessImpl.getTempDirectory().resolve("keep-symbols.list").toAbsolutePath();
130-
Files.write(exportedSymbolsPath, accessImpl.getImageSymbols(true));
132+
Files.write(exportedSymbolsPath, accessImpl.getImageSymbols(DeleteLocalSymbols.getValue()));
131133
return exportedSymbolsPath;
132134
}
133135
}

0 commit comments

Comments
 (0)