[Bug ld/3223] ld fails to link correct variables from linker script.

2006-09-26 Thread hjl at lucon dot org

--- Additional Comments From hjl at lucon dot org  2006-09-27 04:39 ---
Fixed by

http://sourceware.org/ml/binutils/2006-09/msg00336.html

-- 
   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


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

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/3267] Ld converts section relative symbols to absolute symbols in zero sized sectoins

2006-09-26 Thread hjl at lucon dot org

--- Additional Comments From hjl at lucon dot org  2006-09-27 04:39 ---
Fixed by

http://sourceware.org/ml/binutils/2006-09/msg00336.html

-- 
   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


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

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/3223] ld fails to link correct variables from linker script.

2006-09-26 Thread hjl at lucon dot org


-- 
Bug 3223 depends on bug 3267, which changed state.

Bug 3267 Summary: Ld converts section relative symbols to absolute symbols in 
zero sized sectoins
http://sourceware.org/bugzilla/show_bug.cgi?id=3267

   What|Old Value   |New Value

 Status|NEW |RESOLVED
 Resolution||FIXED

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

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/3267] Ld converts section relative symbols to absolute symbols in zero sized sectoins

2006-09-26 Thread hjl at lucon dot org


-- 
   What|Removed |Added

OtherBugsDependingO||3223
  nThis||


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

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/3223] ld fails to link correct variables from linker script.

2006-09-26 Thread hjl at lucon dot org

--- Additional Comments From hjl at lucon dot org  2006-09-26 22:19 ---
PR 3267 should be fixed together with this:

http://sourceware.org/ml/binutils/2006-09/msg00329.html

-- 
   What|Removed |Added

  BugsThisDependsOn||3267


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

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/3267] Ld converts section relative symbols to absolute symbols in zero sized sectoins

2006-09-26 Thread hjl at lucon dot org

--- Additional Comments From hjl at lucon dot org  2006-09-26 22:18 ---
A patch is posed at

http://sourceware.org/ml/binutils/2006-09/msg00329.html

-- 
   What|Removed |Added

 CC||hjl at lucon dot org


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

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/3262] objcopy --only-keep-debug produces extra large debuginfo.

2006-09-26 Thread hjl at lucon dot org

--- Additional Comments From hjl at lucon dot org  2006-09-26 19:11 ---
Fixed by

http://sourceware.org/ml/binutils/2006-09/msg00327.html

-- 
   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED
Version|2.17|2.18 (HEAD)


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

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/3262] objcopy --only-keep-debug produces extra large debuginfo.

2006-09-26 Thread hjl at lucon dot org


-- 
   What|Removed |Added

 CC||hjl at lucon dot org


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

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/3262] objcopy --only-keep-debug produces extra large debuginfo.

2006-09-26 Thread hjl at lucon dot org

--- Additional Comments From hjl at lucon dot org  2006-09-26 17:44 ---
This patch

http://sourceware.org/ml/binutils/2006-09/msg00098.html

is the cause.

-- 
   What|Removed |Added

 CC||amodra at bigpond dot net
   ||dot au


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

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/3267] New: Ld converts section relative symbols to absolute symbols in zero sized sectoins

2006-09-26 Thread vgoyal at redhat dot com
ld does not conform to the behaviour as specifed in "info ld" and converts
section relative symbols to absolute symbols for zero sized sections. Following
is the problem description and disussion thread.

http://sourceware.org/ml/binutils/2006-09/msg00305.html

I am copying and pasting the orinal problem description.

I got a query. Ld behaviour does not seem to be conforming to what is mentioned
in "info ld"

I was going through the info ld and found following in the section 3.6.7 "Output
Section Discarding"

   "If you use anything other than an input section description as an
output section command, such as a symbol assignment, then the output
section will always be created, even if there are no matching input
sections."

I am compiling my kernel and I don't seem to be getting above mentioned
behaviour. For, example vmlinux.ld.S has got following code.

  .smp_altinstructions : AT(ADDR(.smp_altinstructions) - LOAD_OFFSET) {
__smp_alt_begin = .;
__smp_alt_instructions = .;
*(.smp_altinstructions)
__smp_alt_instructions_end = .;
  }


In finally generated executable, thre is no section as .smp_altinstructions and
symbols __smp_alt_begin, __smp_alt_instructions
and __smp_alt_instructions_end have become absolute symbols.

Looks like there was no section .smp_altinstructions present in input files
hence linker did not create output section and made symbols absolute. This does
not match the behaviour as stated in "info ld". Is this a bug or design intent?

I am using GNU ld version 2.17.50.0.3-1

HOW AM I IMPACTED:


Now we are trying to make i386 kernel fully relocatable. We compile the kernel
with option --emit-relocs and use this relocation information to relocate the
kernel at run time. But as per the specifications absolute symbols are not to be
relocated.

Now, above compiler makes some symbols absolute and these symbols are not
relocated and kernel code fails at some point. In this case kernel fails because
it is trying to free memory between symbol __smp_alt_begin and another symbol
present in other section. __smp_alt_begin is now absolute and does not get
relocated and kernel ends up trying to free a wrong portion of memory.

Do you have any thoughts about what's the right way of fixing the issue?  Its a
linker bug or it should be fixed in kernel?

-- 
   Summary: Ld converts section relative symbols to absolute symbols
in zero sized sectoins
   Product: binutils
   Version: 2.17
Status: NEW
  Severity: normal
  Priority: P2
 Component: ld
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: vgoyal at redhat dot com
CC: bug-binutils at gnu dot org


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

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/3257] "strings -T" doesn't work

2006-09-26 Thread hjl at lucon dot org

--- Additional Comments From hjl at lucon dot org  2006-09-26 16:46 ---
Fixed by

http://sourceware.org/ml/binutils/2006-09/msg00320.html

-- 
   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED
Version|2.17|2.18 (HEAD)


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

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/3262] objcopy --only-keep-debug produces extra large debuginfo.

2006-09-26 Thread pluto at agmk dot net

--- Additional Comments From pluto at agmk dot net  2006-09-26 08:21 ---
Created an attachment (id=1324)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=1324&action=view)
testcase


-- 


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

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/3262] New: objcopy --only-keep-debug produces extra large debuginfo.

2006-09-26 Thread pluto at agmk dot net
$ i486-gnu-linux-objcopy --only-keep-debug ExecGui ExecGui.debuginfo
$ ls -lh
1,3M 2006-09-26 10:15 ExecGui
130M 2006-09-26 10:20 ExecGui.debuginfo
 wow!

-- 
   Summary: objcopy --only-keep-debug produces extra large
debuginfo.
   Product: binutils
   Version: 2.17
Status: NEW
  Severity: normal
  Priority: P2
 Component: binutils
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: pluto at agmk dot net
CC: bug-binutils at gnu dot org


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

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils