Skip to content

Commit

Permalink
Don't export any data symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
ThadHouse committed Aug 18, 2024
1 parent 6ed2c9b commit 2dbcd43
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion DefFileGenerator/bindexplib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,9 @@ class DumpSymbols
symbol.find("$iexit_thunk") == std::string::npos &&
symbol.find("$exit_thunk") == std::string::npos)) {
if (!pSymbolTable->Type && (SectChar & IMAGE_SCN_MEM_WRITE)) {
// WPILib. Don't export any data symbols. We don't want to have to worry about dllimport
// Read only (i.e. constants) must be excluded
this->DataSymbols.insert(symbol);
//this->DataSymbols.insert(symbol);
} else {
if (pSymbolTable->Type || !(SectChar & IMAGE_SCN_MEM_READ) ||
(SectChar & IMAGE_SCN_MEM_EXECUTE) ||
Expand Down
Binary file modified src/main/resources/arm64/DefFileGenerator.exe
Binary file not shown.
Binary file modified src/main/resources/x64/DefFileGenerator.exe
Binary file not shown.

0 comments on commit 2dbcd43

Please sign in to comment.