Page MenuHomeFreeBSD

Fix symbol redefinition when MFS is being used
ClosedPublic

Authored by wma on Apr 7 2016, 9:02 AM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 11 2024, 2:10 PM
Unknown Object (File)
Dec 19 2023, 11:50 PM
Unknown Object (File)
Dec 16 2023, 2:23 PM
Unknown Object (File)
Oct 2 2023, 5:55 PM
Unknown Object (File)
Aug 12 2023, 1:37 AM
Unknown Object (File)
Jun 26 2023, 11:51 PM
Unknown Object (File)
Jun 17 2023, 7:48 PM
Unknown Object (File)
Jun 17 2023, 7:48 PM
Subscribers

Details

Summary

Newest CLANG uses different name parsing. Modify regexp to match (i.e. avoid substitution of "/" or "-" with "_").

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

wma retitled this revision from to Fix symbol redefinition when MFS is being used.
wma updated this object.
wma edited the test plan for this revision. (Show Details)
wma added reviewers: bdrewery, marcel, hselasky.
wma set the repository for this revision to rS FreeBSD src repository - subversion.

Uploading correct diff...

Does this change work with older clang and what about gcc?

Do we still use clang <3.8.0 or GCC to build kernel on HEAD? If yes then it'd be better to leave previous redefine-syms and add 3 new which will handle the translation for newer clang. I'll prepare a patch and upload tomorrow.

wma added a reviewer: zbb.

That will leave previous parsing intact, just add secondary options to perform proper translation on clang-3.8.0

Are there any other comments for this patch? If not, I'd like to commit it soon.

zbb edited edge metadata.

I would add a comment there why we need two definitions of the same

This revision is now accepted and ready to land.Apr 20 2016, 5:48 PM
This revision was automatically updated to reflect the committed changes.

This patch is actually a workaround for an elfcopy bug that is now fixed in rS298361. It should be reverted some time later on (I will probably update the ELF Tool Chain bootstrapping test at some point).