I have a rather lengthy legacy code function. Is there any way to check if it is using any global variables or disable access to any?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I would check for data symbols in the generated object file:
nm -po file.o | grep ' D 'The compiler generates a couple of symbols and you probably want to check for a couple of other kind of symbols, e.g.Band lowercase versions.