From c13f952fa63965ece26391110f499712c3df7cb6 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 4 Feb 2008 05:43:05 +0000 Subject: Fully implement the SECTIONS clause. --- gold/dynobj.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'gold/dynobj.h') diff --git a/gold/dynobj.h b/gold/dynobj.h index 0b22362039..67b0f51d46 100644 --- a/gold/dynobj.h +++ b/gold/dynobj.h @@ -176,6 +176,11 @@ class Sized_dynobj : public Dynobj void do_add_symbols(Symbol_table*, Read_symbols_data*); + // Get the size of a section. + uint64_t + do_section_size(unsigned int shndx) + { return this->elf_file_.section_size(shndx); } + // Get the name of a section. std::string do_section_name(unsigned int shndx) @@ -207,6 +212,11 @@ class Sized_dynobj : public Dynobj do_section_info(unsigned int shndx) { return this->elf_file_.section_info(shndx); } + // Return the section alignment. + uint64_t + do_section_addralign(unsigned int shndx) + { return this->elf_file_.section_addralign(shndx); } + private: // For convenience. typedef Sized_dynobj This; -- cgit v1.2.1