ELF: Don't generate unused section symbols
[deliverable/binutils-gdb.git] / gas / read.c
index 9d0ba27ea8c75ca21fdc0a151663ab36d3551a7f..be6e3e03d4589d4278030b4652a590cb3b6e31b7 100644 (file)
@@ -4207,6 +4207,9 @@ s_reloc (int ignore ATTRIBUTE_UNUSED)
       goto err_out;
     case O_constant:
       exp.X_add_symbol = section_symbol (now_seg);
+      /* Mark the section symbol used in relocation so that it will be
+        included in the symbol table.  */
+      symbol_mark_used_in_reloc (exp.X_add_symbol);
       exp.X_op = O_symbol;
       /* Fallthru */
     case O_symbol:
This page took 0.025143 seconds and 4 git commands to generate.