This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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]

binutils testsuite tweak


Some targets emit both .rel and .rela reloc sections, eg. m32r-elf.
This affects section numbering.

	* binutils-all/readelf.ss: Allow for both .rel and .rela sections.

Index: binutils/testsuite/binutils-all/readelf.ss
===================================================================
RCS file: /cvs/src/src/binutils/testsuite/binutils-all/readelf.ss,v
retrieving revision 1.5
diff -u -p -r1.5 readelf.ss
--- binutils/testsuite/binutils-all/readelf.ss	15 May 2004 14:09:08 -0000	1.5
+++ binutils/testsuite/binutils-all/readelf.ss	30 Dec 2004 22:06:08 -0000
@@ -3,16 +3,16 @@ Symbol table '.symtab' contains .* entri
    Num:    Value  Size Type    Bind   Vis      Ndx Name
      0: 00000000     0 NOTYPE  LOCAL  DEFAULT  UND 
      1: 00000000     0 SECTION LOCAL  DEFAULT    1 
-     2: 00000000     0 SECTION LOCAL  DEFAULT    3 
-     3: 00000000     0 SECTION LOCAL  DEFAULT    4 
+     2: 00000000     0 SECTION LOCAL  DEFAULT    [34] 
+     3: 00000000     0 SECTION LOCAL  DEFAULT    [45] 
      4: 00000000     0 NOTYPE  LOCAL  DEFAULT    1 static_text_symbol
 # arm-elf targets add the $d mapping symbol here...
 #...
-     .: 00000000     0 NOTYPE  LOCAL  DEFAULT    3 static_data_symbol
+     .: 00000000     0 NOTYPE  LOCAL  DEFAULT    [34] static_data_symbol
 # v850 targets include extra SECTION symbols here for the .call_table_data
 # and .call_table_text sections.
 #...
 .*   .: 00000000     0 NOTYPE  GLOBAL DEFAULT    1 text_symbol
      .: 00000000     0 NOTYPE  GLOBAL DEFAULT  UND external_symbol
-    ..: 00000000     0 NOTYPE  GLOBAL DEFAULT    3 data_symbol
+    ..: 00000000     0 NOTYPE  GLOBAL DEFAULT    [34] data_symbol
     ..: 00000004     4 OBJECT  GLOBAL DEFAULT ( COM|ANSI_COM) common_symbol

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


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