[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/1443] /lib/libc.so.6: undefined reference to address@hidden'
From: |
dave at hiauly1 dot hia dot nrc dot ca |
Subject: |
[Bug ld/1443] /lib/libc.so.6: undefined reference to address@hidden' |
Date: |
10 Oct 2005 18:22:36 -0000 |
------- Additional Comments From dave at hiauly1 dot hia dot nrc dot ca
2005-10-10 18:22 -------
Subject: Re: /lib/libc.so.6: undefined reference to address@hidden'
> > ------- Additional Comments From hjl at lucon dot org 2005-10-09 15:15
> > -------
> > If you can provide all input files, I will try to take a look.
>
> I'll try to do this tomorrow. It's Thanksgiving holiday here today.
Thinking a bit more about this, I decided providing the files would be
a bit tricky as I need to provide the glibc shared libraries. So, I
looked a bit more into what's going on.
When elf_add_dt_needed_tag is called for ld.so.1, DO_IT is false.
Looking at this bit of code:
/* If this dynamic lib was specified on the command line with
--as-needed in effect, then we don't want to add a DT_NEEDED
tag unless the lib is actually used. Similary for libs brought
in by another lib's DT_NEEDED. When --no-add-needed is used
on a dynamic lib, we don't want to add a DT_NEEDED entry for
any dynamic library in DT_NEEDED tags in the dynamic lib at
all. */
add_needed = (elf_dyn_lib_class (abfd)
& (DYN_AS_NEEDED | DYN_DT_NEEDED
| DYN_NO_NEEDED)) == 0;
I see:
(gdb) p *abfd
$17 = {id = 28, filename = 0xf5308 "/home/dave/opt/gnu/lib/ld.so.1",
xvec = 0xb7c24, iostream = 0x0, iovec = 0xaa6ac, cacheable = 1,
...
(gdb) p abfd->tdata.elf_obj_data->dyn_lib_class
$18 = DYN_DT_NEEDED
So, add_needed is set to false.
Dave
--
http://sourceware.org/bugzilla/show_bug.cgi?id=1443
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
- [Bug ld/1443] New: /lib/libc.so.6: undefined reference to address@hidden', danglin at gcc dot gnu dot org, 2005/10/08
- [Bug ld/1443] /lib/libc.so.6: undefined reference to address@hidden', danglin at gcc dot gnu dot org, 2005/10/08
- [Bug ld/1443] /lib/libc.so.6: undefined reference to address@hidden', hjl at lucon dot org, 2005/10/09
- [Bug ld/1443] /lib/libc.so.6: undefined reference to address@hidden', dave at hiauly1 dot hia dot nrc dot ca, 2005/10/09
- [Bug ld/1443] /lib/libc.so.6: undefined reference to address@hidden',
dave at hiauly1 dot hia dot nrc dot ca <=
- [Bug ld/1443] /lib/libc.so.6: undefined reference to address@hidden', danglin at gcc dot gnu dot org, 2005/10/10
- [Bug ld/1443] /lib/libc.so.6: undefined reference to address@hidden', hjl at lucon dot org, 2005/10/10
- [Bug ld/1443] /lib/libc.so.6: undefined reference to address@hidden', hjl at lucon dot org, 2005/10/10
- [Bug ld/1443] /lib/libc.so.6: undefined reference to address@hidden', dave at hiauly1 dot hia dot nrc dot ca, 2005/10/10
- [Bug ld/1443] /lib/libc.so.6: undefined reference to address@hidden', hjl at lucon dot org, 2005/10/10
- [Bug ld/1443] /lib/libc.so.6: undefined reference to address@hidden', dave at hiauly1 dot hia dot nrc dot ca, 2005/10/10
- [Bug ld/1443] /lib/libc.so.6: undefined reference to address@hidden', hjl at lucon dot org, 2005/10/10
- [Bug ld/1443] /lib/libc.so.6: undefined reference to address@hidden', dave at hiauly1 dot hia dot nrc dot ca, 2005/10/10
- [Bug ld/1443] /lib/libc.so.6: undefined reference to address@hidden', dave at hiauly1 dot hia dot nrc dot ca, 2005/10/10
- [Bug ld/1443] /lib/libc.so.6: undefined reference to address@hidden', dave at hiauly1 dot hia dot nrc dot ca, 2005/10/10