diff options
author | Cary Coutant <ccoutant@google.com> | 2014-11-25 14:33:51 -0800 |
---|---|---|
committer | Cary Coutant <ccoutant@google.com> | 2014-11-25 14:33:51 -0800 |
commit | 43b64debe3577c6923ca9f16ec91451bb47f5f65 (patch) | |
tree | 0c80e597d31b882f7efe1f96cc6760553ac50187 /gold/binary.h | |
parent | c924eb67e143722e4098d84c1cb91123a51c988f (diff) | |
download | gdb-43b64debe3577c6923ca9f16ec91451bb47f5f65.zip gdb-43b64debe3577c6923ca9f16ec91451bb47f5f65.tar.gz gdb-43b64debe3577c6923ca9f16ec91451bb47f5f65.tar.bz2 |
Add file size to ELF symbol labelling start of a binary file.
gold/
* binary.cc (Binary_to_elf::sized_convert): Add size to _start symbol.
(Binary_to_elf::write_symbol): Add st_size parameter.
* binary.h (Binary_to_elf::write_symbol): Add st_size parameter.
Diffstat (limited to 'gold/binary.h')
-rw-r--r-- | gold/binary.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gold/binary.h b/gold/binary.h index 3ce84c2..a611e95 100644 --- a/gold/binary.h +++ b/gold/binary.h @@ -95,7 +95,8 @@ class Binary_to_elf template<int size, bool big_endian> void write_symbol(const std::string&, const Stringpool_template<char>*, - section_size_type, unsigned int, unsigned char**); + section_size_type, typename elfcpp::Elf_types<32>::Elf_WXword, + unsigned int, unsigned char**); // The ELF machine code of the file to create. elfcpp::EM elf_machine_; |