[7/9] skiboot.lds.S: remove dynsym/dynstr and plt
diff mbox series

Message ID 20200226183408.1626737-8-npiggin@gmail.com
State New
Headers show
Series
  • assorted fixes and preparation
Related show

Checks

Context Check Description
snowpatch_ozlabs/snowpatch_job_snowpatch-skiboot-dco success Signed-off-by present
snowpatch_ozlabs/snowpatch_job_snowpatch-skiboot success Test snowpatch/job/snowpatch-skiboot on branch master
snowpatch_ozlabs/apply_patch success Successfully applied on branch master (f123417068e51842004bdc047c8c5107b70442ef)

Commit Message

Nicholas Piggin Feb. 26, 2020, 6:34 p.m. UTC
skiboot is static so these are always empty.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
---
 skiboot.lds.S | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

Patch
diff mbox series

diff --git a/skiboot.lds.S b/skiboot.lds.S
index 1822334b2..64efa7765 100644
--- a/skiboot.lds.S
+++ b/skiboot.lds.S
@@ -163,10 +163,6 @@  SECTIONS
 		__platforms_end = .;
 	}
 
-	/* Do I need to keep these ? */
-	.dynsym : { *(.dynsym)	}
-	.dynstr : { *(.dynstr)	}
-
 	/* Relocations */
 	. = ALIGN(0x10);
 	.dynamic : {
@@ -181,12 +177,8 @@  SECTIONS
 		*(.rela*)
 		__rela_dyn_end = .;
 	}
-	.plt    : { *(.plt) *(.iplt) }
-
 	.hash          : { *(.hash)   }
 	.gnu.hash      : { *(.gnu.hash) }
-	.dynsym        : { *(.dynsym) }
-	.dynstr        : { *(.dynstr) }
 	.gnu.version   : { *(.gnu.version) }
 	.gnu.version_d : { *(.gnu.version_d) }
 	.gnu.version_r : { *(.gnu.version_r) }
@@ -252,5 +244,9 @@  SECTIONS
 		*(.eh_frame)
 		*(.interp)
 		*(.fini_array.*)
+		*(.dynsym)
+		*(.dynstr)
+		*(.plt)
+		*(.iplt)
 	}
 }