berkus / mclinker

Automatically exported from code.google.com/p/mclinker
Other
0 stars 0 forks source link

Read and emit section symbols #93

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Some cases in both producing .o, .so, or .exe, the output relocations may 
against section symbols. So we need to emit section symbols to output symtab

1. let input section LDSymbol point to the corresponding ResolveInfo. The 
resolving rule is the same as section merge. (ex. section symbols `.text.a` and 
`.text.b` should point to the same ResolveInfo when producing shared lib)

2. create output section LDSymbol and point to the corresponding ResolveInfo

3. When read relocations, those relocations against section symbols simply get 
the correct ResolveInfo from the input section symbol 

4. emit section symbol, handling symbol names which should point to .shstrtab

Original issue reported on code.google.com by mysekki on 19 Oct 2012 at 8:41

GoogleCodeExporter commented 9 years ago
done at revision 68b5b7071eac

Original comment by mysekki on 31 Oct 2012 at 1:50