Question: a. In which segments of the executable are a, b, s, and func stored? Use the command readelf -hSs out to verify your solution. Locate

a. In which segments of the executable are a, b, s, and func stored? Use the command readelf -hSs out to verify your solution. Locate each object in the symbol table (.symtab) and match the section index given in the Ndx column with the section headers. Hint: The compiler may have renamed s to s.n with n being some decimal number to prevent name clashes.
Consider the following C program that does some random computations. Download the source code of the program gcc with the following command line: gcc -g main.c func.c -o out You should now have an executable file called out. main.c: #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
