Question: I have a file foo.c that contains just: SysIn SysIT OP PU PU int main () { return 0; } Sie SYS , and call

I have a file foo.c that contains just: SysIn SysIT OP PU PU int main () { return 0; } Sie SYS , and call readelf - When I compile it to an object file (gcc -c foo.c)foo.o, the output of readelf is 77 lines long. When I compile this to an executable (gcc foo.o), and call readelf -a a.out, the output of readelf is 257 lines long. Why? relocatable objects. B. gcc by default adds a lot of debug info when compiling to an executable. C. This is because of the LD_PRELOAD environment variable. D. foo.o has been linked with some system libraries to start the program. A. The ELF format force 21 that executable objects be bigger th, 2 21-DPU 6221-DPU 021-DPU -W21-DPU Answer A. Answer B. Answer C. Answer D
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
