[Bug 973172] Re: Internal error in ld (ld.gold)

Jonas Bülow jonas.bulow at gmail.com
Wed Apr 4 11:47:55 UTC 2012


..and some more info about the symbol and it's context:

(gdb) print *sym->u_.from_object.object
$9 = (gold::Sized_dynobj<64, false>) {
  <gold::Dynobj> = {
    <gold::Object> = {
      _vptr.Object = 0x62d810, 
      name_ = "//lib/x86_64-linux-gnu/libpthread.so.0", 
      input_file_ = 0x1f6574f0, 
      offset_ = 0, 
      shnum_ = 35, 
      is_dynamic_ = true, 
      is_needed_ = true, 
      uses_split_stack_ = false, 
      has_no_split_stack_ = false, 
      no_export_ = false, 
      is_in_system_directory_ = true, 
      as_needed_ = false, 
      xindex_ = 0x0
    }, 
    members of gold::Dynobj: 
    soname_ = "libpthread.so.0", 
    needed_ = std::vector of length 2, capacity 2 = {"libc.so.6", "ld-linux-x86-64.so.2"}, 
    unknown_needed_ = gold::Dynobj::UNKNOWN_NEEDED_TRUE
  }, 
  members of gold::Sized_dynobj<64, false>: 
  elf_file_ = {
    file_ = 0x1f657780, 
    shoff_ = 99312, 
    shnum_ = 35, 
    shstrndx_ = 32, 
    large_shndx_offset_ = 0
  }, 
  dynsym_shndx_ = 4, 
  symbols_ = 0x0, 
  defined_count_ = 246
}
(gdb) print *sym->u_.in_output_data.output_data
$10 = (gold::Sized_dynobj<64, false>) {
  <gold::Dynobj> = {
    <gold::Object> = {
      _vptr.Object = 0x62d810, 
      name_ = "//lib/x86_64-linux-gnu/libpthread.so.0", 
      input_file_ = 0x1f6574f0, 
      offset_ = 0, 
      shnum_ = 35, 
      is_dynamic_ = true, 
      is_needed_ = true, 
      uses_split_stack_ = false, 
      has_no_split_stack_ = false, 
      no_export_ = false, 
      is_in_system_directory_ = true, 
      as_needed_ = false, 
      xindex_ = 0x0
    }, 
    members of gold::Dynobj: 
    soname_ = "libpthread.so.0", 
    needed_ = std::vector of length 2, capacity 2 = {"libc.so.6", "ld-linux-x86-64.so.2"}, 
    unknown_needed_ = gold::Dynobj::UNKNOWN_NEEDED_TRUE
  }, 
  members of gold::Sized_dynobj<64, false>: 
  elf_file_ = {
    file_ = 0x1f657780, 
    shoff_ = 99312, 
    shnum_ = 35, 
    shstrndx_ = 32, 
    large_shndx_offset_ = 0
  }, 
  dynsym_shndx_ = 4, 
  symbols_ = 0x0, 
  defined_count_ = 246
}

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to binutils in Ubuntu.
https://bugs.launchpad.net/bugs/973172

Title:
  Internal error in ld (ld.gold)

Status in “binutils” package in Ubuntu:
  Incomplete

Bug description:
  After upgrading from 11.04 to 11.10 ld fails to link some
  applications:

  /usr/bin/ld: internal error in sized_finalize_symbol, at
  ../../gold/symtab.cc:2663

  Workaround: change ld to point to ld.bfd

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/binutils/+bug/973172/+subscriptions




More information about the foundations-bugs mailing list