Cleanup symbol add method in ElfBuilder.

Use deque to avoid reallocating the cached symbols.

We never generate absolute symbols because gdb don't like them.

Add helper method to add symbols as Elf_Sym.

Test: build.oat is unchanged.
Change-Id: Id8289a71a23cf602f3f9e3e2c2a26277faf937a9
1 file changed