Initialize count_ field, tweak parameters testing.
[deliverable/binutils-gdb.git] / gold / object.h
1 // object.h -- support for an object file for linking in gold -*- C++ -*-
2
3 #ifndef GOLD_OBJECT_H
4 #define GOLD_OBJECT_H
5
6 #include <string>
7 #include <vector>
8
9 #include "elfcpp.h"
10 #include "elfcpp_file.h"
11 #include "fileread.h"
12 #include "target.h"
13
14 namespace gold
15 {
16
17 class General_options;
18 class Layout;
19 class Output_section;
20 class Output_file;
21 class Dynobj;
22
23 template<typename Stringpool_char>
24 class Stringpool_template;
25
26 // Data to pass from read_symbols() to add_symbols().
27
28 struct Read_symbols_data
29 {
30 // Section headers.
31 File_view* section_headers;
32 // Section names.
33 File_view* section_names;
34 // Size of section name data in bytes.
35 off_t section_names_size;
36 // Symbol data.
37 File_view* symbols;
38 // Size of symbol data in bytes.
39 off_t symbols_size;
40 // Symbol names.
41 File_view* symbol_names;
42 // Size of symbol name data in bytes.
43 off_t symbol_names_size;
44
45 // Version information. This is only used on dynamic objects.
46 // Version symbol data (from SHT_GNU_versym section).
47 File_view* versym;
48 off_t versym_size;
49 // Version definition data (from SHT_GNU_verdef section).
50 File_view* verdef;
51 off_t verdef_size;
52 unsigned int verdef_info;
53 // Needed version data (from SHT_GNU_verneed section).
54 File_view* verneed;
55 off_t verneed_size;
56 unsigned int verneed_info;
57 };
58
59 // Data about a single relocation section. This is read in
60 // read_relocs and processed in scan_relocs.
61
62 struct Section_relocs
63 {
64 // Index of reloc section.
65 unsigned int reloc_shndx;
66 // Index of section that relocs apply to.
67 unsigned int data_shndx;
68 // Contents of reloc section.
69 File_view* contents;
70 // Reloc section type.
71 unsigned int sh_type;
72 // Number of reloc entries.
73 size_t reloc_count;
74 };
75
76 // Relocations in an object file. This is read in read_relocs and
77 // processed in scan_relocs.
78
79 struct Read_relocs_data
80 {
81 typedef std::vector<Section_relocs> Relocs_list;
82 // The relocations.
83 Relocs_list relocs;
84 // The local symbols.
85 File_view* local_symbols;
86 };
87
88 // Object is an abstract base class which represents either a 32-bit
89 // or a 64-bit input object. This can be a regular object file
90 // (ET_REL) or a shared object (ET_DYN).
91
92 class Object
93 {
94 public:
95 // NAME is the name of the object as we would report it to the user
96 // (e.g., libfoo.a(bar.o) if this is in an archive. INPUT_FILE is
97 // used to read the file. OFFSET is the offset within the input
98 // file--0 for a .o or .so file, something else for a .a file.
99 Object(const std::string& name, Input_file* input_file, bool is_dynamic,
100 off_t offset = 0)
101 : name_(name), input_file_(input_file), offset_(offset), shnum_(-1U),
102 is_dynamic_(is_dynamic), target_(NULL)
103 { }
104
105 virtual ~Object()
106 { }
107
108 // Return the name of the object as we would report it to the tuser.
109 const std::string&
110 name() const
111 { return this->name_; }
112
113 // Return whether this is a dynamic object.
114 bool
115 is_dynamic() const
116 { return this->is_dynamic_; }
117
118 // Return the target structure associated with this object.
119 Target*
120 target() const
121 { return this->target_; }
122
123 // Lock the underlying file.
124 void
125 lock()
126 { this->input_file_->file().lock(); }
127
128 // Unlock the underlying file.
129 void
130 unlock()
131 { this->input_file_->file().unlock(); }
132
133 // Return whether the underlying file is locked.
134 bool
135 is_locked() const
136 { return this->input_file_->file().is_locked(); }
137
138 // Return the sized target structure associated with this object.
139 // This is like the target method but it returns a pointer of
140 // appropriate checked type.
141 template<int size, bool big_endian>
142 Sized_target<size, big_endian>*
143 sized_target(ACCEPT_SIZE_ENDIAN_ONLY);
144
145 // Get the number of sections.
146 unsigned int
147 shnum() const
148 { return this->shnum_; }
149
150 // Return a view of the contents of a section. Set *PLEN to the
151 // size.
152 const unsigned char*
153 section_contents(unsigned int shndx, off_t* plen);
154
155 // Return the name of a section given a section index. This is only
156 // used for error messages.
157 std::string
158 section_name(unsigned int shndx)
159 { return this->do_section_name(shndx); }
160
161 // Return the section flags given a section index.
162 uint64_t
163 section_flags(unsigned int shndx)
164 { return this->do_section_flags(shndx); }
165
166 // Read the symbol information.
167 void
168 read_symbols(Read_symbols_data* sd)
169 { return this->do_read_symbols(sd); }
170
171 // Pass sections which should be included in the link to the Layout
172 // object, and record where the sections go in the output file.
173 void
174 layout(Symbol_table* symtab, Layout* layout, Read_symbols_data* sd)
175 { this->do_layout(symtab, layout, sd); }
176
177 // Add symbol information to the global symbol table.
178 void
179 add_symbols(Symbol_table* symtab, Read_symbols_data* sd)
180 { this->do_add_symbols(symtab, sd); }
181
182 // Functions and types for the elfcpp::Elf_file interface. This
183 // permit us to use Object as the File template parameter for
184 // elfcpp::Elf_file.
185
186 // The View class is returned by view. It must support a single
187 // method, data(). This is trivial, because get_view does what we
188 // need.
189 class View
190 {
191 public:
192 View(const unsigned char* p)
193 : p_(p)
194 { }
195
196 const unsigned char*
197 data() const
198 { return this->p_; }
199
200 private:
201 const unsigned char* p_;
202 };
203
204 // Return a View.
205 View
206 view(off_t file_offset, off_t data_size)
207 { return View(this->get_view(file_offset, data_size)); }
208
209 // Report an error.
210 void
211 error(const char* format, ...) ATTRIBUTE_PRINTF_2;
212
213 // A location in the file.
214 struct Location
215 {
216 off_t file_offset;
217 off_t data_size;
218
219 Location(off_t fo, off_t ds)
220 : file_offset(fo), data_size(ds)
221 { }
222 };
223
224 // Get a View given a Location.
225 View view(Location loc)
226 { return View(this->get_view(loc.file_offset, loc.data_size)); }
227
228 protected:
229 // Read the symbols--implemented by child class.
230 virtual void
231 do_read_symbols(Read_symbols_data*) = 0;
232
233 // Lay out sections--implemented by child class.
234 virtual void
235 do_layout(Symbol_table*, Layout*, Read_symbols_data*) = 0;
236
237 // Add symbol information to the global symbol table--implemented by
238 // child class.
239 virtual void
240 do_add_symbols(Symbol_table*, Read_symbols_data*) = 0;
241
242 // Return the location of the contents of a section. Implemented by
243 // child class.
244 virtual Location
245 do_section_contents(unsigned int shndx) = 0;
246
247 // Get the name of a section--implemented by child class.
248 virtual std::string
249 do_section_name(unsigned int shndx) = 0;
250
251 // Get section flags--implemented by child class.
252 virtual uint64_t
253 do_section_flags(unsigned int shndx) = 0;
254
255 // Get the file.
256 Input_file*
257 input_file() const
258 { return this->input_file_; }
259
260 // Get the offset into the file.
261 off_t
262 offset() const
263 { return this->offset_; }
264
265 // Get a view into the underlying file.
266 const unsigned char*
267 get_view(off_t start, off_t size)
268 { return this->input_file_->file().get_view(start + this->offset_, size); }
269
270 // Get a lasting view into the underlying file.
271 File_view*
272 get_lasting_view(off_t start, off_t size)
273 {
274 return this->input_file_->file().get_lasting_view(start + this->offset_,
275 size);
276 }
277
278 // Read data from the underlying file.
279 void
280 read(off_t start, off_t size, void* p)
281 { this->input_file_->file().read(start + this->offset_, size, p); }
282
283 // Set the target.
284 void
285 set_target(int machine, int size, bool big_endian, int osabi,
286 int abiversion);
287
288 // Set the number of sections.
289 void
290 set_shnum(int shnum)
291 { this->shnum_ = shnum; }
292
293 // Functions used by both Sized_relobj and Sized_dynobj.
294
295 // Read the section data into a Read_symbols_data object.
296 template<int size, bool big_endian>
297 void
298 read_section_data(elfcpp::Elf_file<size, big_endian, Object>*,
299 Read_symbols_data*);
300
301 // If NAME is the name of a special .gnu.warning section, arrange
302 // for the warning to be issued. SHNDX is the section index.
303 // Return whether it is a warning section.
304 bool
305 handle_gnu_warning_section(const char* name, unsigned int shndx,
306 Symbol_table*);
307
308 private:
309 // This class may not be copied.
310 Object(const Object&);
311 Object& operator=(const Object&);
312
313 // Name of object as printed to user.
314 std::string name_;
315 // For reading the file.
316 Input_file* input_file_;
317 // Offset within the file--0 for an object file, non-0 for an
318 // archive.
319 off_t offset_;
320 // Number of input sections.
321 unsigned int shnum_;
322 // Whether this is a dynamic object.
323 bool is_dynamic_;
324 // Target functions--may be NULL if the target is not known.
325 Target* target_;
326 };
327
328 // Implement sized_target inline for efficiency. This approach breaks
329 // static type checking, but is made safe using asserts.
330
331 template<int size, bool big_endian>
332 inline Sized_target<size, big_endian>*
333 Object::sized_target(ACCEPT_SIZE_ENDIAN_ONLY)
334 {
335 gold_assert(this->target_->get_size() == size);
336 gold_assert(this->target_->is_big_endian() ? big_endian : !big_endian);
337 return static_cast<Sized_target<size, big_endian>*>(this->target_);
338 }
339
340 // A regular object (ET_REL). This is an abstract base class itself.
341 // The implementation is the template class Sized_relobj.
342
343 class Relobj : public Object
344 {
345 public:
346 Relobj(const std::string& name, Input_file* input_file, off_t offset = 0)
347 : Object(name, input_file, false, offset)
348 { }
349
350 // Read the relocs.
351 void
352 read_relocs(Read_relocs_data* rd)
353 { return this->do_read_relocs(rd); }
354
355 // Scan the relocs and adjust the symbol table.
356 void
357 scan_relocs(const General_options& options, Symbol_table* symtab,
358 Layout* layout, Read_relocs_data* rd)
359 { return this->do_scan_relocs(options, symtab, layout, rd); }
360
361 // Initial local symbol processing: set the offset where local
362 // symbol information will be stored; add local symbol names to
363 // *POOL; return the new local symbol index.
364 unsigned int
365 finalize_local_symbols(unsigned int index, off_t off,
366 Stringpool_template<char>* pool)
367 { return this->do_finalize_local_symbols(index, off, pool); }
368
369 // Relocate the input sections and write out the local symbols.
370 void
371 relocate(const General_options& options, const Symbol_table* symtab,
372 const Layout* layout, Output_file* of)
373 { return this->do_relocate(options, symtab, layout, of); }
374
375 // Return whether an input section is being included in the link.
376 bool
377 is_section_included(unsigned int shndx) const
378 {
379 gold_assert(shndx < this->map_to_output_.size());
380 return this->map_to_output_[shndx].output_section != NULL;
381 }
382
383 // Given a section index, return the corresponding Output_section
384 // (which will be NULL if the section is not included in the link)
385 // and set *POFF to the offset within that section.
386 inline Output_section*
387 output_section(unsigned int shndx, off_t* poff) const;
388
389 // Set the offset of an input section within its output section.
390 void
391 set_section_offset(unsigned int shndx, off_t off)
392 {
393 gold_assert(shndx < this->map_to_output_.size());
394 this->map_to_output_[shndx].offset = off;
395 }
396
397 protected:
398 // What we need to know to map an input section to an output
399 // section. We keep an array of these, one for each input section,
400 // indexed by the input section number.
401 struct Map_to_output
402 {
403 // The output section. This is NULL if the input section is to be
404 // discarded.
405 Output_section* output_section;
406 // The offset within the output section. This is -1 if the
407 // section requires special handling.
408 off_t offset;
409 };
410
411 // Read the relocs--implemented by child class.
412 virtual void
413 do_read_relocs(Read_relocs_data*) = 0;
414
415 // Scan the relocs--implemented by child class.
416 virtual void
417 do_scan_relocs(const General_options&, Symbol_table*, Layout*,
418 Read_relocs_data*) = 0;
419
420 // Finalize local symbols--implemented by child class.
421 virtual unsigned int
422 do_finalize_local_symbols(unsigned int, off_t,
423 Stringpool_template<char>*) = 0;
424
425 // Relocate the input sections and write out the local
426 // symbols--implemented by child class.
427 virtual void
428 do_relocate(const General_options& options, const Symbol_table* symtab,
429 const Layout*, Output_file* of) = 0;
430
431 // Return the vector mapping input sections to output sections.
432 std::vector<Map_to_output>&
433 map_to_output()
434 { return this->map_to_output_; }
435
436 const std::vector<Map_to_output>&
437 map_to_output() const
438 { return this->map_to_output_; }
439
440 private:
441 // Mapping from input sections to output section.
442 std::vector<Map_to_output> map_to_output_;
443 };
444
445 // Implement Object::output_section inline for efficiency.
446 inline Output_section*
447 Relobj::output_section(unsigned int shndx, off_t* poff) const
448 {
449 gold_assert(shndx < this->map_to_output_.size());
450 const Map_to_output& mo(this->map_to_output_[shndx]);
451 *poff = mo.offset;
452 return mo.output_section;
453 }
454
455 // This POD class is holds the value of a symbol. This is used for
456 // local symbols, and for all symbols during relocation processing.
457 // In order to process relocs we need to be able to handle SHF_MERGE
458 // sections correctly.
459
460 template<int size>
461 class Symbol_value
462 {
463 public:
464 typedef typename elfcpp::Elf_types<size>::Elf_Addr Value;
465
466 Symbol_value()
467 : output_symtab_index_(0), input_shndx_(0), needs_output_address_(false),
468 value_(0)
469 { }
470
471 // Get the value of this symbol. OBJECT is the object in which this
472 // symbol is defined, and ADDEND is an addend to add to the value.
473 template<bool big_endian>
474 Value
475 value(const Sized_relobj<size, big_endian>* object, Value addend) const
476 {
477 if (!this->needs_output_address_)
478 return this->value_ + addend;
479 return object->local_value(this->input_shndx_, this->value_, addend);
480 }
481
482 // Set the value of this symbol in the output symbol table.
483 void
484 set_output_value(Value value)
485 {
486 this->value_ = value;
487 this->needs_output_address_ = false;
488 }
489
490 // If this symbol is mapped to an output section which requires
491 // special handling to determine the output value, we store the
492 // value of the symbol in the input file. This is used for
493 // SHF_MERGE sections.
494 void
495 set_input_value(Value value)
496 {
497 this->value_ = value;
498 this->needs_output_address_ = true;
499 }
500
501 // Return whether this symbol should go into the output symbol
502 // table.
503 bool
504 needs_output_symtab_entry() const
505 {
506 gold_assert(this->output_symtab_index_ != 0);
507 return this->output_symtab_index_ != -1U;
508 }
509
510 // Return the index in the output symbol table.
511 unsigned int
512 output_symtab_index() const
513 {
514 gold_assert(this->output_symtab_index_ != 0);
515 return this->output_symtab_index_;
516 }
517
518 // Set the index in the output symbol table.
519 void
520 set_output_symtab_index(unsigned int i)
521 {
522 gold_assert(this->output_symtab_index_ == 0);
523 this->output_symtab_index_ = i;
524 }
525
526 // Record that this symbol should not go into the output symbol
527 // table.
528 void
529 set_no_output_symtab_entry()
530 {
531 gold_assert(this->output_symtab_index_ == 0);
532 this->output_symtab_index_ = -1U;
533 }
534
535 // Set the index of the input section in the input file.
536 void
537 set_input_shndx(unsigned int i)
538 { this->input_shndx_ = i; }
539
540 private:
541 // The index of this local symbol in the output symbol table. This
542 // will be -1 if the symbol should not go into the symbol table.
543 unsigned int output_symtab_index_;
544 // The section index in the input file in which this symbol is
545 // defined.
546 unsigned int input_shndx_ : 31;
547 // Whether getting the value of this symbol requires calling an
548 // Output_section method. For example, this will be true of a
549 // STT_SECTION symbol in a SHF_MERGE section.
550 bool needs_output_address_ : 1;
551 // The value of the symbol. If !needs_output_address_, this is the
552 // value in the output file. If needs_output_address_, this is the
553 // value in the input file.
554 Value value_;
555 };
556
557 // A regular object file. This is size and endian specific.
558
559 template<int size, bool big_endian>
560 class Sized_relobj : public Relobj
561 {
562 public:
563 typedef typename elfcpp::Elf_types<size>::Elf_Addr Address;
564 typedef std::vector<Symbol_value<size> > Local_values;
565
566 Sized_relobj(const std::string& name, Input_file* input_file, off_t offset,
567 const typename elfcpp::Ehdr<size, big_endian>&);
568
569 ~Sized_relobj();
570
571 // Set up the object file based on the ELF header.
572 void
573 setup(const typename elfcpp::Ehdr<size, big_endian>&);
574
575 // Return the index of local symbol SYM in the ordinary symbol
576 // table. A value of -1U means that the symbol is not being output.
577 unsigned int
578 symtab_index(unsigned int sym) const
579 {
580 gold_assert(sym < this->local_values_.size());
581 return this->local_values_[sym].output_symtab_index();
582 }
583
584 // Read the symbols.
585 void
586 do_read_symbols(Read_symbols_data*);
587
588 // Lay out the input sections.
589 void
590 do_layout(Symbol_table*, Layout*, Read_symbols_data*);
591
592 // Add the symbols to the symbol table.
593 void
594 do_add_symbols(Symbol_table*, Read_symbols_data*);
595
596 // Read the relocs.
597 void
598 do_read_relocs(Read_relocs_data*);
599
600 // Scan the relocs and adjust the symbol table.
601 void
602 do_scan_relocs(const General_options&, Symbol_table*, Layout*,
603 Read_relocs_data*);
604
605 // Finalize the local symbols.
606 unsigned int
607 do_finalize_local_symbols(unsigned int, off_t,
608 Stringpool_template<char>*);
609
610 // Relocate the input sections and write out the local symbols.
611 void
612 do_relocate(const General_options& options, const Symbol_table* symtab,
613 const Layout*, Output_file* of);
614
615 // Get the name of a section.
616 std::string
617 do_section_name(unsigned int shndx)
618 { return this->elf_file_.section_name(shndx); }
619
620 // Return the location of the contents of a section.
621 Object::Location
622 do_section_contents(unsigned int shndx)
623 { return this->elf_file_.section_contents(shndx); }
624
625 // Return section flags.
626 uint64_t
627 do_section_flags(unsigned int shndx)
628 { return this->elf_file_.section_flags(shndx); }
629
630 // Return the appropriate Sized_target structure.
631 Sized_target<size, big_endian>*
632 sized_target()
633 {
634 return this->Object::sized_target
635 SELECT_SIZE_ENDIAN_NAME(size, big_endian) (
636 SELECT_SIZE_ENDIAN_ONLY(size, big_endian));
637 }
638
639 // Return the value of a local symbol define in input section SHNDX,
640 // with value VALUE, adding addend ADDEND. This handles SHF_MERGE
641 // sections.
642 Address
643 local_value(unsigned int shndx, Address value, Address addend) const;
644
645 private:
646 // For convenience.
647 typedef Sized_relobj<size, big_endian> This;
648 static const int ehdr_size = elfcpp::Elf_sizes<size>::ehdr_size;
649 static const int shdr_size = elfcpp::Elf_sizes<size>::shdr_size;
650 static const int sym_size = elfcpp::Elf_sizes<size>::sym_size;
651 typedef elfcpp::Shdr<size, big_endian> Shdr;
652
653 // Find the SHT_SYMTAB section, given the section headers.
654 void
655 find_symtab(const unsigned char* pshdrs);
656
657 // Whether to include a section group in the link.
658 bool
659 include_section_group(Layout*, unsigned int,
660 const elfcpp::Shdr<size, big_endian>&,
661 std::vector<bool>*);
662
663 // Whether to include a linkonce section in the link.
664 bool
665 include_linkonce_section(Layout*, const char*,
666 const elfcpp::Shdr<size, big_endian>&);
667
668 // Views and sizes when relocating.
669 struct View_size
670 {
671 unsigned char* view;
672 typename elfcpp::Elf_types<size>::Elf_Addr address;
673 off_t offset;
674 off_t view_size;
675 };
676
677 typedef std::vector<View_size> Views;
678
679 // Write section data to the output file. Record the views and
680 // sizes in VIEWS for use when relocating.
681 void
682 write_sections(const unsigned char* pshdrs, Output_file*, Views*);
683
684 // Relocate the sections in the output file.
685 void
686 relocate_sections(const General_options& options, const Symbol_table*,
687 const Layout*, const unsigned char* pshdrs, Views*);
688
689 // Write out the local symbols.
690 void
691 write_local_symbols(Output_file*,
692 const Stringpool_template<char>*);
693
694 // General access to the ELF file.
695 elfcpp::Elf_file<size, big_endian, Object> elf_file_;
696 // Index of SHT_SYMTAB section.
697 unsigned int symtab_shndx_;
698 // The number of local symbols.
699 unsigned int local_symbol_count_;
700 // The number of local symbols which go into the output file.
701 unsigned int output_local_symbol_count_;
702 // The entries in the symbol table for the external symbols.
703 Symbol** symbols_;
704 // File offset for local symbols.
705 off_t local_symbol_offset_;
706 // Values of local symbols.
707 Local_values local_values_;
708 };
709
710 // A class to manage the list of all objects.
711
712 class Input_objects
713 {
714 public:
715 Input_objects()
716 : relobj_list_(), dynobj_list_(), target_(NULL), sonames_()
717 { }
718
719 // The type of the list of input relocateable objects.
720 typedef std::vector<Relobj*> Relobj_list;
721 typedef Relobj_list::const_iterator Relobj_iterator;
722
723 // The type of the list of input dynamic objects.
724 typedef std::vector<Dynobj*> Dynobj_list;
725 typedef Dynobj_list::const_iterator Dynobj_iterator;
726
727 // Add an object to the list. Return true if all is well, or false
728 // if this object should be ignored.
729 bool
730 add_object(Object*);
731
732 // Get the target we should use for the output file.
733 Target*
734 target() const
735 { return this->target_; }
736
737 // Iterate over all regular objects.
738
739 Relobj_iterator
740 relobj_begin() const
741 { return this->relobj_list_.begin(); }
742
743 Relobj_iterator
744 relobj_end() const
745 { return this->relobj_list_.end(); }
746
747 // Iterate over all dynamic objects.
748
749 Dynobj_iterator
750 dynobj_begin() const
751 { return this->dynobj_list_.begin(); }
752
753 Dynobj_iterator
754 dynobj_end() const
755 { return this->dynobj_list_.end(); }
756
757 // Return whether we have seen any dynamic objects.
758 bool
759 any_dynamic() const
760 { return !this->dynobj_list_.empty(); }
761
762 private:
763 Input_objects(const Input_objects&);
764 Input_objects& operator=(const Input_objects&);
765
766 // The list of ordinary objects included in the link.
767 Relobj_list relobj_list_;
768 // The list of dynamic objects included in the link.
769 Dynobj_list dynobj_list_;
770 // The target.
771 Target* target_;
772 // SONAMEs that we have seen.
773 Unordered_set<std::string> sonames_;
774 };
775
776 // Some of the information we pass to the relocation routines. We
777 // group this together to avoid passing a dozen different arguments.
778
779 template<int size, bool big_endian>
780 struct Relocate_info
781 {
782 // Command line options.
783 const General_options* options;
784 // Symbol table.
785 const Symbol_table* symtab;
786 // Layout.
787 const Layout* layout;
788 // Object being relocated.
789 Sized_relobj<size, big_endian>* object;
790 // Number of local symbols.
791 unsigned int local_symbol_count;
792 // Values of local symbols.
793 const typename Sized_relobj<size, big_endian>::Local_values* local_values;
794 // Global symbols.
795 const Symbol* const * symbols;
796 // Section index of relocation section.
797 unsigned int reloc_shndx;
798 // Section index of section being relocated.
799 unsigned int data_shndx;
800
801 // Return a string showing the location of a relocation. This is
802 // only used for error messages.
803 std::string
804 location(size_t relnum, off_t reloffset) const;
805 };
806
807 // Return an Object appropriate for the input file. P is BYTES long,
808 // and holds the ELF header.
809
810 extern Object*
811 make_elf_object(const std::string& name, Input_file*,
812 off_t offset, const unsigned char* p,
813 off_t bytes);
814
815 } // end namespace gold
816
817 #endif // !defined(GOLD_OBJECT_H)
This page took 0.045714 seconds and 4 git commands to generate.