aboutsummaryrefslogtreecommitdiff
path: root/gold/object.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gold/object.cc')
-rw-r--r--gold/object.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/gold/object.cc b/gold/object.cc
index eeacdaa..798e42d 100644
--- a/gold/object.cc
+++ b/gold/object.cc
@@ -1138,6 +1138,12 @@ Sized_relobj<size, big_endian>::do_layout(Symbol_table* symtab,
omit[i] = true;
}
+ // Skip attributes section.
+ if (parameters->target().is_attributes_section(name))
+ {
+ omit[i] = true;
+ }
+
bool discard = omit[i];
if (!discard)
{