OpenCores
URL https://opencores.org/ocsvn/open8_urisc/open8_urisc/trunk

Subversion Repositories open8_urisc

[/] [open8_urisc/] [trunk/] [gnu/] [binutils/] [ld/] [testsuite/] [ld-mips-elf/] [undefined.s] - Blame information for rev 84

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 84 khays
# Relocations against undefined symbols would be incorrectly let through
2
# by mips_elf_calculate_relocation() once the result of the
3
# ->undefined_symbol() callback has been interpreted in the opposite
4
# sense.  The link would fail anyway, but for R_MIPS_GOT_PAGE relocations
5
# a failure of the following assertion:
6
#
7
# BFD_ASSERT (h->dynindx >= global_got_dynindx);
8
#
9
# would additionally be reported in mips_elf_global_got_index(), because
10
# at this point h->dynindx for the undefined symbol would be set to -1.
11
# Other kinds of GOT relocations allocate a GOT index for the symbol
12
# referred and set its h->dynindx in _bfd_mips_elf_check_relocs(), but
13
# R_MIPS_GOT_PAGE relocations only allocate a GOT page at that point and
14
# for undefined symbols the page never gets resolved any further.
15
 
16
        .abicalls
17
        .text
18
        .globl  foo
19
        .type   foo, @function
20
        .ent    foo
21
foo:
22
        li      $2, %got_page(bar)
23
        .end    foo
24
        .size   foo, . - foo

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.