bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/22300] New: Abort in elf32_hppa_relocate_section at elf32-hppa.c


From: danglin at gcc dot gnu.org
Subject: [Bug ld/22300] New: Abort in elf32_hppa_relocate_section at elf32-hppa.c:4055 building debian polyml
Date: Sun, 15 Oct 2017 19:13:36 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=22300

            Bug ID: 22300
           Summary: Abort in elf32_hppa_relocate_section at
                    elf32-hppa.c:4055 building debian polyml
           Product: binutils
           Version: 2.30 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: danglin at gcc dot gnu.org
                CC: deller at gmx dot de
  Target Milestone: ---
              Host: hppa-unknown-linux-gnu
            Target: hppa-unknown-linux-gnu
             Build: hppa-unknown-linux-gnu

(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /home/dave/gnu/binutils/objdir/ld/.libs/ld-new -plugin
/usr/lib/gcc/hppa-linux-gnu/7/liblto_plugin.so
-plugin-opt=/usr/lib/gcc/hppa-linux-gnu/7/lto-wrapper
-plugin-opt=-fresolution=-debug.res -plugin-opt=-pass-through=-lgcc
-plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc
-plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --sysroot=/
--build-id --eh-frame-hdr -dynamic-linker /lib/ld.so.1 -o .libs/poly
/usr/lib/gcc/hppa-linux-gnu/7/../../../hppa-linux-gnu/crt1.o
/usr/lib/gcc/hppa-linux-gnu/7/../../../hppa-linux-gnu/crti.o
/usr/lib/gcc/hppa-linux-gnu/7/crtbegin.o -L/usr/lib/gcc/hppa-linux-gnu/7
-L/usr/lib/gcc/hppa-linux-gnu/7/../../../hppa-linux-gnu
-L/usr/lib/gcc/hppa-linux-gnu/7/../../.. -L/lib/hppa-linux-gnu
-L/usr/lib/hppa-linux-gnu --as-needed polyexport.o
libpolymain/.libs/libpolymain.a libpolyml/.libs/libpolyml.so -lpthread -lffi
-lm -ldl -lstdc++ -lgcc_s -lgcc -v -lgcc --as-needed -lgcc_s --no-as-needed -lc
-lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/hppa-linux-gnu/7/crtend.o
/usr/lib/gcc/hppa-linux-gnu/7/../../../hppa-linux-gnu/crtn.o
GNU ld (GNU Binutils) 2.29.51.20170819

Breakpoint 2, elf32_hppa_relocate_section (output_bfd=0x0, info=0x71684
<link_info>, 
    input_bfd=0xf887405b <bfd_bwrite+84>, input_section=0xa5a18,
contents=<optimized out>, 
    relocs=<optimized out>, local_syms=<optimized out>,
local_sections=<optimized out>)
    at ../../src/bfd/elf32-hppa.c:4055
4055                    abort ();

(gdb) p *input_section
$2 = {name = 0xa438b ".data", id = 60, index = 4, next = 0xa5ad0, prev =
0xa5960, flags = 295, 
  user_set_vma = 1, linker_mark = 1, linker_has_input = 0, gc_mark = 0,
compress_status = 0, 
  segment_mark = 0, sec_info_type = 0, use_rela_p = 1, sec_flg0 = 0, sec_flg1 =
0, 
  sec_flg2 = 0, sec_flg3 = 0, sec_flg4 = 0, sec_flg5 = 0, vma = 0, lma = 0,
size = 4920, 
  rawsize = 0, compressed_size = 0, relax = 0x0, relax_count = 0, output_offset
= 24368, 
  output_section = 0x552958, alignment_power = 3, relocation = 0x0, orelocation
= 0x0, 
  reloc_count = 167, filepos = 7931160, rel_filepos = 4019104, line_filepos =
0, 
  userdata = 0x0, contents = 0x0, lineno = 0x0, lineno_count = 0, entsize = 0, 
  kept_section = 0x0, moving_line_filepos = 0, target_index = 0, used_by_bfd =
0xa78e0, 
  constructor_chain = 0x0, owner = 0xa46a8, symbol = 0xa7970, symbol_ptr_ptr =
0xa5ab0, 
  map_head = {link_order = 0xa5ad0, s = 0xa5ad0}, map_tail = {link_order =
0xa5960, 
    s = 0xa5960}}

(gdb) p *((struct bfd_elf_section_data*)(input_section)->used_by_bfd)
$3 = {this_hdr = {sh_name = 19, sh_type = 1, sh_flags = 3, sh_addr = 0,
sh_offset = 7931160, 
    sh_size = 4920, sh_link = 0, sh_info = 0, sh_addralign = 8, sh_entsize = 0, 
    bfd_section = 0xa5a18, contents = 0x0}, section_flag_info = 0x0, rel = {hdr
= 0x0, 
    count = 0, idx = 0, hashes = 0x0}, rela = {hdr = 0xa79a8, count = 0, idx =
0, 
    hashes = 0x0}, this_idx = 11, dynindx = 0, linked_to = 0x0, relocs =
0xa7ec8, 
  local_dynrel = 0x0, sreloc = 0x0, group = {name = 0x0, id = 0x0}, sec_group =
0x0, 
  next_in_group = 0x0, fde_list = 0x0, eh_frame_entry = 0x0, sec_info = 0x0}

Full polyml build log is here:
https://buildd.debian.org/status/fetch.php?pkg=polyml&arch=hppa&ver=5.7-2&stamp=1507223380&raw=0

-- 
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]