Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gcc __LINE__ make patch in mess by kpatch_gensrc #57

Open
zhengchuan-salut opened this issue Nov 23, 2020 · 1 comment
Open

gcc __LINE__ make patch in mess by kpatch_gensrc #57

zhengchuan-salut opened this issue Nov 23, 2020 · 1 comment

Comments

@zhengchuan-salut
Copy link

When I am going to make patch for QEMU, I found that a lot of unwanted assemble differences are generated by kpatch_gensrc due to gcc LINE;
That is, if I add some code in func A, the funB which is belowed under funA in the file could be recongized as changed because LINE is used and changed in funB.
There are a lot of LINE uses in qemu like error_setstage() which triggers a big patch while only a small part of it is truely needed.

Is there any good idea to solve this problem?
Maybe we should undefine LINE or just filter the changed function we want by kpatch_gensrc?

Thanks,
Chuan

@zhengchuan-salut
Copy link
Author

kindly ping, anyone who has a good solution for that is welcomed to discuss:)

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

No branches or pull requests

1 participant