vibhatha commented on code in PR #40520:
URL: https://github.com/apache/arrow/pull/40520#discussion_r1592773421
##########
dev/archery/archery/linking.py:
##########
@@ -61,9 +63,83 @@ def list_dependency_names(self):
names.append(name)
return names
+ def _remove_weak_symbols(self, symbol_info):
+ return [line for line in symbol_info if not line.endswith(" w")]
+
+ def _capture_symbols(self, remove_symbol_versions, symbol_info):
+ if remove_symbol_versions:
+ symbol_info = [line.split('@')[0].strip() for line in symbol_info]
+ return symbol_info
+
+ def list_symbols_for_dependency(self, dependency,
remove_symbol_versions=False):
+ if dependency == 'linux-vdso.so.1':
+ # this is a virtual library, thus symbols cannot be listed
+ return []
+ result = _nm.run('-D', '-P', dependency, stdout=subprocess.PIPE)
Review Comment:
What would you recommend?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]