GATE / CS ARCHIVE

GATE CSE 1995 / QUESTION 1.14

Information not required in a relocatable object

Compiler Design · Compiler Phases, Linking & Loading · Full GATE CSE 1995 paper

GATE 1995, Q1.14 1 mark · MCQ
Not in GATE 2027 syllabusReport issue

Compiler Phases, Linking & Loading

Question 1.14, GATE 1995: GFG asks what need NOT be included: object code, relocation bits, exported-symbol names and locations, or absolute addresses of internal symbols. GateForum omits NOT.
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

A relocatable object contains machine code plus information allowing its addresses to be adjusted and its external definitions and references resolved. Internal symbol locations can be encoded relative to the module; their final absolute addresses are not known until placement. Therefore absolute addresses of all internal symbols need not be included, D. Object code and relocation/symbol information are the conventional inputs to linking.

Original paper, page 2