Project

General

Profile

Bug #3638

ld confuses files with group sections and files that should lazy load

Added by Rich Lowe about 7 years ago. Updated about 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
tools - gate/build tools
Start date:
2013-03-21
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

in process_groups we set FLG_IS_GROUPS on the input file. That's an input section flag with the value 0x200, 0x200 in the file flags is FLG_IF_LAZYLD.

Oops.


Related issues

Related to illumos gate - Bug #3616: SHF_GROUP sections should not be discarded via other COMDAT mechanismsResolved2013-03-09

Actions

History

#1

Updated by Rich Lowe about 7 years ago

  • Category set to tools - gate/build tools
  • Status changed from New to Resolved
  • % Done changed from 10 to 100
  • Difficulty changed from Medium to Bite-size

Resolved in a8c23f9

#2

Updated by Richard PALO about 7 years ago

It seems that vernote is unchanged after this update to libld?

richard@x3200:~$ /usr/bin/ld -V
ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1739 (illumos)

I wonder if minor tags should be added to shared libraries in order to determine which revision...

richard@x3200:/usr/bin$ beadm list
BE                   Active Mountpoint      Space Policy Created
nightly-2013030516   -      -               10,1M static 2013-03-05 16:26
nightly-201303170731 -      /tmp/tmp.3PaGLm 11,7M static 2013-03-17 07:31
nightly-201304070749 NR     /               21,9G static 2013-04-07 07:49
oi_151a.1.7          -      -               20,6M static 2012-10-09 08:01
oi_151a7.nv173       -      /tmp/tmp.NRa4Lm 59,9M static 2013-02-16 07:40
oi_151a7jds          -      -               170M  static 2013-03-24 08:18
richard@x3200:/usr/bin$ /usr/bin/ld -V
ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1739 (illumos)
richard@x3200:/usr/bin$ ldd -d ./ld
    libld.so.4 =>     /usr/bin/../../lib/libld.so.4
    libelf.so.1 =>     /usr/bin/../../lib/libelf.so.1
    libc.so.1 =>     /usr/bin/../../lib/libc.so.1
    liblddbg.so.4 =>     /lib/liblddbg.so.4
    libm.so.2 =>     /lib/libm.so.2
richard@x3200:/usr/bin$ cd /tmp/tmp.3PaGLm/usr/bin
richard@x3200:/tmp/tmp.3PaGLm/usr/bin$ ./ld -V
ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1739 (illumos)
richard@x3200:/tmp/tmp.3PaGLm/usr/bin$ ldd -d ./ld
    libld.so.4 =>     /tmp/tmp.3PaGLm/usr/bin/../../lib/libld.so.4
    libelf.so.1 =>     /tmp/tmp.3PaGLm/usr/bin/../../lib/libelf.so.1
    libc.so.1 =>     /tmp/tmp.3PaGLm/usr/bin/../../lib/libc.so.1
    liblddbg.so.4 =>     /tmp/tmp.3PaGLm/lib/liblddbg.so.4
    libc.so.1 =>     /lib/libc.so.1
    libm.so.2 =>     /lib/libm.so.2
richard@x3200:/tmp/tmp.3PaGLm/usr/bin$ cd /tmp/tmp.NRa4Lm/usr/bin/
richard@x3200:/tmp/tmp.NRa4Lm/usr/bin$ ./ld -V
ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1726
richard@x3200:/tmp/tmp.NRa4Lm/usr/bin$ ldd -d ./ld
    libld.so.4 =>     /tmp/tmp.NRa4Lm/usr/bin/../../lib/libld.so.4
    libelf.so.1 =>     /tmp/tmp.NRa4Lm/usr/bin/../../lib/libelf.so.1
    libc.so.1 =>     /tmp/tmp.NRa4Lm/usr/bin/../../lib/libc.so.1
    liblddbg.so.4 =>     /tmp/tmp.NRa4Lm/lib/liblddbg.so.4
    libc.so.1 =>     /lib/libc.so.1
    libm.so.2 =>     /lib/libm.so.2

#3

Updated by Rich Lowe about 7 years ago

I actually left the vernote unchanged on purpose, in that I was trying to restrict it to things that actually made a difference in use, which this doesn't.

Minor versions in the soname really don't help anyone much.

Also available in: Atom PDF