Skip to content

Conversation

@caden-kline
Copy link
Contributor

#496 Identifies all linkers in a given system and ensures that they either have the preload symbol or are glibc.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lintly has detected code quality issues in this pull request.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lintly has detected code quality issues in this pull request.

@caden-kline caden-kline marked this pull request as ready for review January 22, 2025 18:33
During static analysis the LibrarySymbols class collected
key->value mappings from libraries exporting some common nvram
defaults symbols ("Nvrams", "router_defaults") - add these to our
nvram config if we have any.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we update the comment?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah I thought I had

for file in sources.keys():
if file in self.linker_paths.keys():
self.linker_paths.pop(file)
if not ("_dl_preload" in sources[file] or "handle_ld_preload" in sources[file]):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this list is exhaustive... we'll do some experiments to see what we have in the corpus?


logger.debug(f"Identified architecture: {best}")
return best
return (best, loaders)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we consider a dict here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It depends on whether we will extract more info as time goes on. As it is I special cased the dumping process to avoid dumping loaders

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.

3 participants