Skip to content

Conversation

@tonycoz
Copy link
Contributor

@tonycoz tonycoz commented Nov 14, 2023

This makes two basic changes:

  • use nm -P objectfile instead of nm objectfile. POSIX defines a specific layout for nm -P ...
  • AIX (at least) lists multiple definitions (of different types) for global symbols, so restructure the code to handle that

Tested on smokes, AIX 5, HP-UX 11.31 (Tux's machine)

Fixes #21623

POSIX specifies well defined output for nm -P

This will hopefully run this test on more platforms, including old AIX,
for which nm produces a different output from what the test expected.

Part of Perl#21623
nm on AIX can list both local and global definitions for the same
variable, which meant the parsing would delete the first instance
from %exported, but then add the second to %unexported, failing the
test.

This didn't fail on AIX 5 because the default nm output didn't
match what the code expected when checking for PL_Yes, and so
the entire test script skipped.

Fixes Perl#21623
@tonycoz tonycoz merged commit 2804f7d into Perl:blead Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

t/porting/globvar.t has failures on AIX

2 participants