Question: 1 2 . For each of the following code snippets, write down all symbols in the resulting object files from compilation. Write whether it is
For each of the following code snippets, write down all symbols in the resulting object files from compilation. Write whether it is a weak global, strong global, or local variable, and what section of the final compiled ELF binary the variable will go into. Fill in the value if you have enough information to determine the value.
This problem will be gscored automatically Please follow the rules. of course. Do NOT write this characterin the answer.
Please sort symbols for each file in ascending order eg xy not yx Symbol x y z a a x y z
Strengthscope should be one of the following: weak localstrong local and strong global lease only one whitespace must be given in your answer.
If value is not assigned or not available, please write NA
ELF section answers should start with dotdatatextbss etc.
foo.c
short x ;
short y ;
main.c
#include
int x;
int y;
int z ;
int main
printfx
x;
printfx
y;
xxdeadbeef;
printfx
x;
printfx
y;
return ;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
