[Bug ld/2503] New: Problem allocated section

2006-04-03 Thread gurvindersinghdahiya at gmail dot com
I hv problem when i try to linking the object code file.
the object code file is an example of OSKIT X86 obtained from savnnah unofficial
OSKIT, which i compiled  with the gcc as

$gcc -o hello.o -c hello.c

then i try to link the file with OSKIT libraries with ld as

ld -T ldi.ld -Ttext 10 -L /usr/lcal/lib -o hello hello.o
/usr/local/lib/oskit/multiboot.o /usr/local/lib/oskit/crtn.o -loskit_clientos
-loskit_kern -loskit_lmm -loskit_c

then i get error as
ld: hello: Not enough room for program headers (allocated 3, need 4)
ld: final link failed: Bad value

then  i try the PHDRS comand of ld and add this in the default script, the
loader script is as follows

/* Script for -z combreloc: combine and sort reloc sections */
OUTPUT_FORMAT(elf32-i386, elf32-i386,
  elf32-i386)
OUTPUT_ARCH(i386)
ENTRY(_start)
SEARCH_DIR(/usr/i386-redhat-linux/lib); SEARCH_DIR(/usr/local/lib);
SEARCH_DIR(/lib); SEARCH_DIR(/usr/lib);
/* Do we need any of these for elf?
   __DYNAMIC = 0;*/
PHDRS
{
headers PT_PHDR PHDRS;
interp  PT_INTERP;
textPT_LOAD ;
dataPT_LOAD;
 }
SECTIONS
{
  /* Read-only sections, merged into text segment: */
  PROVIDE (__executable_start = 0x08048000); . = 0x08048000 + SIZEOF_HEADERS;
  .interp : { *(.interp) }
  .hash   : { *(.hash) }
  .dynsym : { *(.dynsym) }
  .dynstr : { *(.dynstr) }
  .gnu.version: { *(.gnu.version) }
  .gnu.version_d  : { *(.gnu.version_d) }
  .gnu.version_r  : { *(.gnu.version_r) }
  .rel.dyn:
{
  *(.rel.init)
  *(.rel.text .rel.text.* .rel.gnu.linkonce.t.*)
  *(.rel.fini)
  *(.rel.rodata .rel.rodata.* .rel.gnu.linkonce.r.*)
  *(.rel.data.rel.ro*)
  *(.rel.data .rel.data.* .rel.gnu.linkonce.d.*)
  *(.rel.tdata .rel.tdata.* .rel.gnu.linkonce.td.*)
  *(.rel.tbss .rel.tbss.* .rel.gnu.linkonce.tb.*)
  *(.rel.ctors)
  *(.rel.dtors)
  *(.rel.got)
  *(.rel.bss .rel.bss.* .rel.gnu.linkonce.b.*)
}
  .rela.dyn   :
{
  *(.rela.init)
  *(.rela.text .rela.text.* .rela.gnu.linkonce.t.*)
  *(.rela.fini)
  *(.rela.rodata .rela.rodata.* .rela.gnu.linkonce.r.*)
  *(.rela.data .rela.data.* .rela.gnu.linkonce.d.*)
  *(.rela.tdata .rela.tdata.* .rela.gnu.linkonce.td.*)
  *(.rela.tbss .rela.tbss.* .rela.gnu.linkonce.tb.*)
  *(.rela.ctors)
  *(.rela.dtors)
  *(.rela.got)
  *(.rela.bss .rela.bss.* .rela.gnu.linkonce.b.*)
}
  .rel.plt: { *(.rel.plt) }
  .rela.plt   : { *(.rela.plt) }
  .init   :
  {
KEEP (*(.init))
  } =0x90909090
  .plt: { *(.plt) }
  .text   :
  {
*(.text .stub .text.* .gnu.linkonce.t.*)
KEEP (*(.text.*personality*))
/* .gnu.warning sections are handled specially by elf32.em.  */
*(.gnu.warning)
  } =0x90909090
  .fini   :
  {
KEEP (*(.fini))
  } =0x90909090
  PROVIDE (__etext = .);
  PROVIDE (_etext = .);
  PROVIDE (etext = .);
  .rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) }
  .rodata1: { *(.rodata1) }
  .eh_frame_hdr : { *(.eh_frame_hdr) }
  .eh_frame   : ONLY_IF_RO { KEEP (*(.eh_frame)) }
  .gcc_except_table   : ONLY_IF_RO { KEEP (*(.gcc_except_table))
*(.gcc_except_table.*) }
  /* Adjust the address for the data segment.  We want to adjust up to
 the same address within the page on the next page up.  */
  . = ALIGN (0x1000) - ((0x1000 - .)  (0x1000 - 1)); . = DATA_SEGMENT_ALIGN
(0x1000, 0x1000);
  /* Exception handling  */
  .eh_frame   : ONLY_IF_RW { KEEP (*(.eh_frame)) }
  .gcc_except_table   : ONLY_IF_RW { KEEP (*(.gcc_except_table))
*(.gcc_except_table.*) }
  /* Thread Local Storage sections  */
  .tdata  : { *(.tdata .tdata.* .gnu.linkonce.td.*) }
  .tbss  : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }
  /* Ensure the __preinit_array_start label is properly aligned.  We
 could instead move the label definition inside the section, but
 the linker would then create the section even if it turns out to
 be empty, which isn't pretty.  */
  . = ALIGN(32 / 8);
  PROVIDE (__preinit_array_start = .);
  .preinit_array : { KEEP (*(.preinit_array)) }
  PROVIDE (__preinit_array_end = .);
  PROVIDE (__init_array_start = .);
  .init_array : { KEEP (*(.init_array)) }
  PROVIDE (__init_array_end = .);
  PROVIDE (__fini_array_start = .);
  .fini_array : { KEEP (*(.fini_array)) }
  PROVIDE (__fini_array_end = .);
  .ctors  :
  {
/* gcc uses crtbegin.o to find the start of
   the constructors, so we make sure it is
   first.  Because this is a wildcard, it
   doesn't matter if the user does not
   actually link against crtbegin.o; the
   linker won't look for a file to match a
   wildcard.  The wildcard also means that it
   doesn't matter which directory crtbegin.o
   is in.  */
KEEP (*crtbegin*.o(.ctors))
/* We don't want to include the .ctor section from
   from the crtend.o file until after the sorted 

[Bug binutils/1298] m68k-dis.c:1348: warning: argument 'info' might be clobbered by 'longjmp' or 'vfork'

2006-04-03 Thread bje at sources dot redhat dot com

--- Additional Comments From bje at sources dot redhat dot com  2006-04-03 
23:56 ---
Thanks for the excellent analysis, Jim.  I think I will just rework the code to 
avoid this warning.

-- 


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

--- 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/596] non-dynamic global symbols in .dynstr and .hash sections

2006-04-03 Thread bje at sources dot redhat dot com


-- 
   What|Removed |Added

 AssignedTo|unassigned at sources dot   |echristo at apple dot com
   |redhat dot com  |
 Status|NEW |ASSIGNED


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

--- 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 gas/660] Segmentation fault with big shared libraries

2006-04-03 Thread bje at sources dot redhat dot com


-- 
   What|Removed |Added

 AssignedTo|unassigned at sources dot   |echristo at apple dot com
   |redhat dot com  |
 Status|NEW |ASSIGNED


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

--- 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/702] mipsel a.out always more than 64 kbyte

2006-04-03 Thread bje at sources dot redhat dot com


-- 
   What|Removed |Added

 AssignedTo|unassigned at sources dot   |echristo at apple dot com
   |redhat dot com  |
 Status|NEW |ASSIGNED


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

--- 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/846] MIPS/ELF doesn't set DT_MIPS_UNREFEXTNO correctly

2006-04-03 Thread bje at sources dot redhat dot com


-- 
   What|Removed |Added

 AssignedTo|unassigned at sources dot   |echristo at apple dot com
   |redhat dot com  |
 Status|NEW |ASSIGNED


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

--- 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/993] fail to link if address of libc function taken in n64

2006-04-03 Thread bje at sources dot redhat dot com


-- 
   What|Removed |Added

 AssignedTo|unassigned at sources dot   |echristo at apple dot com
   |redhat dot com  |
 Status|NEW |ASSIGNED


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

--- 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/1018] MIPS ld creates unnecessary DT_NEEDED entry on libgcc_s.so

2006-04-03 Thread bje at sources dot redhat dot com


-- 
   What|Removed |Added

 AssignedTo|unassigned at sources dot   |echristo at apple dot com
   |redhat dot com  |
 Status|NEW |ASSIGNED


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

--- 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/1129] MIPS objdump wrong decode of Config1 ops

2006-04-03 Thread bje at sources dot redhat dot com


-- 
   What|Removed |Added

 AssignedTo|unassigned at sources dot   |echristo at apple dot com
   |redhat dot com  |
 Status|NEW |ASSIGNED


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

--- 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/1185] [mips16] wrong opcode definition in src/opcodes/mips16-opc.c

2006-04-03 Thread bje at sources dot redhat dot com


-- 
   What|Removed |Added

 AssignedTo|unassigned at sources dot   |echristo at apple dot com
   |redhat dot com  |
 Status|NEW |ASSIGNED


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

--- 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/850] linker issued assertion failure elf64-ppc.c:7771

2006-04-03 Thread bje at sources dot redhat dot com


-- 
   What|Removed |Added

 AssignedTo|unassigned at sources dot   |amodra at bigpond dot net
   |redhat dot com  |dot au
 Status|WAITING |NEW


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

--- 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/2484] ar to merge in another library (.a file)

2006-04-03 Thread bje at sources dot redhat dot com


-- 
   What|Removed |Added

 AssignedTo|unassigned at sources dot   |amodra at bigpond dot net
   |redhat dot com  |dot au


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

--- 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/850] linker issued assertion failure elf64-ppc.c:7771

2006-04-03 Thread amodra at bigpond dot net dot au

--- Additional Comments From amodra at bigpond dot net dot au  2006-04-04 
01:20 ---
I'm fairly certain this bug has been fixed.

-- 
   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||WORKSFORME


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

--- 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/1198] Segfault when executing objdump on a special file...

2006-04-03 Thread bje at sources dot redhat dot com


-- 
   What|Removed |Added

 AssignedTo|unassigned at sources dot   |bje at sources dot redhat
   |redhat dot com  |dot com
 Status|NEW |ASSIGNED


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

--- 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/2335] gprof reads executable 10x slower on opteron/x86_64

2006-04-03 Thread bje at sources dot redhat dot com


-- 
   What|Removed |Added

 AssignedTo|unassigned at sources dot   |bje at sources dot redhat
   |redhat dot com  |dot com
 Status|NEW |ASSIGNED


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

--- 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/149] configure incorrectly assumes presence of gettext implies presence of msgfmt

2006-04-03 Thread bje at sources dot redhat dot com


-- 
   What|Removed |Added

 AssignedTo|unassigned at sources dot   |bje at sources dot redhat
   |redhat dot com  |dot com
 Status|NEW |ASSIGNED


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

--- 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/2503] Problem allocated section

2006-04-03 Thread bje at sources dot redhat dot com


-- 
   What|Removed |Added

   Severity|critical|normal
   Priority|P1  |P2


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

--- 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/2454] incorrect syntax in avr disassembly

2006-04-03 Thread bje at sources dot redhat dot com

--- Additional Comments From bje at sources dot redhat dot com  2006-04-04 
01:54 ---
This patch suggests that you are trying to make the disassembler's output
suitable for input back into the assembler, correct?  This is not normally
something that the disassembler strives for.

What are you trying to do?

-- 
   What|Removed |Added

 Status|NEW |WAITING


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

--- 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 gas/997] invalid error messages, and internal error abort

2006-04-03 Thread bje at sources dot redhat dot com


-- 
   What|Removed |Added

 AssignedTo|unassigned at sources dot   |amodra at bigpond dot net
   |redhat dot com  |dot au


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

--- 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/2378] Incorrect opcode in __do_clear_bss if bss has more than 15 bytes

2006-04-03 Thread bje at sources dot redhat dot com

--- Additional Comments From bje at sources dot redhat dot com  2006-04-04 
01:57 ---
Updating priority.

-- 
   What|Removed |Added

   Priority|P2  |P3


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

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