This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Commit: Add .note and DWARF3 sections to RX linker scripts


Hi Guys,

  I am applying the patch below as an obvious update to the RX linker
  scripts in libgloss.  It adds entries for the .note, .debug_pubtypes,
  .debug_ranges and .debug_macro sections.

Cheers
  Nick

libgloss/ChangeLog
2015-04-08  Nick Clifton  <nickc@redhat.com>

	* rx/rx.ld: Add .note and DWARF3 sections.
	* rx/rx-sim.ld: Likewise.

diff --git a/libgloss/rx/rx-sim.ld b/libgloss/rx/rx-sim.ld
index 4acc6cb..b5802c5 100644
--- a/libgloss/rx/rx-sim.ld
+++ b/libgloss/rx/rx-sim.ld
@@ -188,6 +188,7 @@ SECTIONS
   }
 
   /* The rest are all not normally part of the runtime image.  */
+  .note : { *(.note) }
 
   /* Stabs debugging sections.  */
   .stab          0 : { *(.stab) }
@@ -222,5 +223,10 @@ SECTIONS
   .debug_funcnames 0 : { *(.debug_funcnames) }
   .debug_typenames 0 : { *(.debug_typenames) }
   .debug_varnames  0 : { *(.debug_varnames) }
+  /* DWARF 3 */
+  .debug_pubtypes 0 : { *(.debug_pubtypes) }
+  .debug_ranges   0 : { *(.debug_ranges) }
+  /* DWARF Extension.  */
+  .debug_macro    0 : { *(.debug_macro) }
   /DISCARD/ : { *(.note.GNU-stack) }
 }
diff --git a/libgloss/rx/rx.ld b/libgloss/rx/rx.ld
index 7aa263a..f56fe01 100644
--- a/libgloss/rx/rx.ld
+++ b/libgloss/rx/rx.ld
@@ -192,6 +192,7 @@ SECTIONS
   }
 
   /* The rest are all not normally part of the runtime image.  */
+  .note : { *(.note) }
 
   /* Stabs debugging sections.  */
   .stab          0 : { *(.stab) }
@@ -226,5 +227,10 @@ SECTIONS
   .debug_funcnames 0 : { *(.debug_funcnames) }
   .debug_typenames 0 : { *(.debug_typenames) }
   .debug_varnames  0 : { *(.debug_varnames) }
+  /* DWARF 3 */
+  .debug_pubtypes 0 : { *(.debug_pubtypes) }
+  .debug_ranges   0 : { *(.debug_ranges) }
+  /* DWARF Extension.  */
+  .debug_macro    0 : { *(.debug_macro) }
   /DISCARD/ : { *(.note.GNU-stack) }
 }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]