File: hiddef1.d

package info (click to toggle)
binutils 2.46-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 417,696 kB
  • sloc: ansic: 1,487,508; asm: 829,455; cpp: 216,692; exp: 80,527; makefile: 73,165; sh: 24,213; yacc: 15,060; lisp: 13,632; perl: 13,404; lex: 1,714; ada: 1,681; pascal: 1,446; cs: 879; python: 638; java: 478; sed: 191; xml: 95; awk: 25
file content (28 lines) | stat: -rw-r--r-- 1,066 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#source: gotrel1.s
#source: hiddef1.s
#source: hidrefgotplt1.s
#ld: -shared -m crislinux --hash-style=sysv
#as: --pic --no-underscore -I$srcdir/$subdir --emulation=criself
#readelf: -S -s -r

# Regression test for mishandling of GOTPLT relocs against a
# hidden symbol, where the reloc is found after the symbol
# definition.  There should be no PLT, just a single GOT entry
# from a GOTPLT reloc moved to the .got section.  It's hard to
# check for absence of a .plt section, so we just check the
# number of symbols and sections.  When the number of symbols
# and sections change, make sure that there's no .plt and that
# dsofn is hidden (not exported as a dynamic symbol).

There are 11 section headers, starting at offset 0x[0-9a-f]+:
#...
  \[[ 0-9]+\] \.got              PROGBITS        [0-9a-f]+ [0-9a-f]+ 0+10 04  WA  0   0  4
#...
Relocation section '\.rela\.dyn' at offset 0x[0-9a-f]+ contains 1 entry:
#...
[0-9a-f]+  0+c R_CRIS_RELATIVE +[0-9a-f]+
#...
Symbol table '\.dynsym' contains 3 entries:
#...
Symbol table '\.symtab' contains 15 entries:
#pass