OSDN Git Service

Write 64-bit address in DWARF if we are on 64-bit architecture.
authorDavid Srbecky <dsrbecky@google.com>
Wed, 15 Apr 2015 00:18:12 +0000 (01:18 +0100)
committerDavid Srbecky <dsrbecky@google.com>
Tue, 21 Apr 2015 20:50:04 +0000 (20:50 +0000)
commit297ed22d71e0c67e7b1a3f188cff7c3874abbe47
treeed432521ad0853bea19fa9becd168cd28120c955
parentf0dec62af300eaacfe3e8621276ee89a7d76346e
Write 64-bit address in DWARF if we are on 64-bit architecture.

DWARF includes code address.  Make sure they are of the right size.

I have kept them as 32-bit until now to keep consistent with the
old code.  I do not think that having 32-bit addresses was an issue
since we were using 32-bit Elf, but since we plan to switch to
64-bit Elf, we should definitely be using 64-bit address.

Change-Id: I57138c0dda2d37fc6f0f9329b31d61f38a2d6fcb
compiler/elf_writer_debug.cc