Back to index

cell-binutils  2.17cvs20070401
hiddef1.d
Go to the documentation of this file.
00001 #source: gotrel1.s
00002 #source: hiddef1.s
00003 #source: hidrefgotplt1.s
00004 #ld: -shared -m crislinux
00005 #as: --pic --no-underscore -I$srcdir/$subdir --em=criself
00006 #readelf: -S -s -r
00007 
00008 # Regression test for mishandling of GOTPLT relocs against a
00009 # hidden symbol, where the reloc is found after the symbol
00010 # definition.  There should be no PLT, just a single GOT entry
00011 # from a GOTPLT reloc moved to the .got section.  It's hard to
00012 # check for absence of a .plt section, so we just check the
00013 # number of symbols and sections.  When the number of symbols
00014 # and sections change, make sure that there's no .plt and that
00015 # dsofn is hidden (not exported as a dynamic symbol).
00016 
00017 There are 11 section headers, starting at offset 0x[0-9a-f]+:
00018 #...
00019   \[[ 0-9]+\] \.got              PROGBITS        [0-9a-f]+ [0-9a-f]+ 0+10 04  WA  0   0  4
00020 #...
00021 Relocation section '\.rela\.dyn' at offset 0x[0-9a-f]+ contains 1 entries:
00022 #...
00023 [0-9a-f]+  0+c R_CRIS_RELATIVE                              [0-9a-f]+
00024 #...
00025 Symbol table '\.dynsym' contains 6 entries:
00026 #...
00027 Symbol table '\.symtab' contains 16 entries:
00028 #pass