// attributes.h -- object attributes for gold -*- C++ -*-
-// Copyright 2009 Free Software Foundation, Inc.
+// Copyright (C) 2009-2019 Free Software Foundation, Inc.
// Written by Doug Kwan <dougkwan@google.com>.
// This file contains code adapted from BFD.
// Determine what arguments an attribute tag takes.
static int
- arg_type (int vendor, int tag)
+ arg_type(int vendor, int tag)
{
switch (vendor)
{
// Determine whether a GNU object attribute tag takes an integer, a
// string or both. */
static int
- gnu_arg_type (int tag)
+ gnu_arg_type(int tag)
{
// Except for Tag_compatibility, for GNU attributes we follow the
// same rule ARM ones > 32 follow: odd-numbered tags take strings
other_attributes() const
{ return &this->other_attributes_; }
- // Return a new attribute asssociated with TAG.
+ // Return a new attribute associated with TAG.
Object_attribute*
new_attribute(int tag);
{ }
protected:
+ // Write to a map file.
+ void
+ do_print_to_mapfile(Mapfile* mapfile) const
+ { mapfile->print_output_data(this, _("** attributes")); }
+
// Write the data to the output file.
void
do_write(Output_file*);