bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/13302] IRELATIVE relocation should come last


From: cvs-commit at gcc dot gnu.org
Subject: [Bug binutils/13302] IRELATIVE relocation should come last
Date: Fri, 21 Oct 2011 15:13:42 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=13302

--- Comment #3 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> 2011-10-21 15:13:42 UTC ---
CVSROOT:    /cvs/src
Module name:    src
Changes by:    address@hidden    2011-10-21 15:13:37

Modified files:
    bfd            : ChangeLog elf32-i386.c elf64-x86-64.c 
    ld/testsuite   : ChangeLog 
Added files:
    ld/testsuite/ld-ifunc: ifunc-16-i386.d ifunc-16-x86-64.d 
                           ifunc-16-x86.s 

Log message:
    Put IRELATIVE relocations after JUMP_SLOT.

    bfd/

    2011-10-21  H.J. Lu  <address@hidden>

    PR ld/13302
    * elf32-i386.c (elf_i386_link_hash_table): Add next_jump_slot_index
    and next_irelative_index.
    (elf_i386_link_hash_table_create): Initialize next_jump_slot_index
    and next_irelative_index.
    (elf_i386_allocate_dynrelocs): Increment reloc_count instead of
    next_tls_desc_index.
    (elf_i386_size_dynamic_sections): Set next_tls_desc_index and
    next_irelative_index from reloc_count.
    (elf_i386_finish_dynamic_symbol): Put R_386_IRELATIVE after
    R_386_JUMP_SLOT.

    * elf64-x86-64.c (elf_x86_64_link_hash_table): Add
    next_jump_slot_index and next_irelative_index.
    (elf_x86_64_link_hash_table_create): Initialize
    next_jump_slot_index and next_irelative_index.
    (elf_x86_64_size_dynamic_sections): Set next_irelative_index
    from reloc_count.
    (elf_x86_64_finish_dynamic_symbol): Put R_X86_64_IRELATIVE after
    R_X86_64_JUMP_SLOT.

    ld/testsuite/

    2011-10-21  H.J. Lu  <address@hidden>

    PR ld/13302
    * ld-ifunc/ifunc-16-i386.d: New.
    * ld-ifunc/ifunc-16-x86-64.d: Likewise.
    * ld-ifunc/ifunc-16-x86.s: Likewise.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/ChangeLog.diff?cvsroot=src&r1=1.5497&r2=1.5498
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elf32-i386.c.diff?cvsroot=src&r1=1.262&r2=1.263
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elf64-x86-64.c.diff?cvsroot=src&r1=1.241&r2=1.242
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ChangeLog.diff?cvsroot=src&r1=1.1472&r2=1.1473
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-ifunc/ifunc-16-i386.d.diff?cvsroot=src&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-ifunc/ifunc-16-x86-64.d.diff?cvsroot=src&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-ifunc/ifunc-16-x86.s.diff?cvsroot=src&r1=NONE&r2=1.1

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]