From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Lance Taylor To: arnej@pvv.unit.no Cc: gas2@cygnus.com Subject: Re: patches to add mips-dec-netbsd configuration Date: Mon, 18 Sep 1995 11:48:00 -0000 Message-id: <199509181847.OAA18721@sanguine.cygnus.com> References: <9509180901.AA17584@datter.pvv.unit.no> X-SW-Source: 1995/msg00170.html From: "Arne H. Juul" Date: Mon, 18 Sep 1995 11:01:55 +0200 Most of the patches only add recognizing the name to be handled like mips*el-*-elf. I checked in versions of these patches. However, there is one patch to elf.c that modifies ld behaviour on linking: don't merge together readonly and writable object sections into one program segment. It seems to me that this patch could cause trouble. When the linker script uses SIZEOF_HEADERS, as the default linker script does, the ELF linker computes the program header size before it knows the final positions of the sections. That means that it must guess at the total number of program segments which will be required. Your patch will cause the linker to sometimes allocate an additional program segment, and in some cases that will not fit, causing a fatal error. The right fix for this is rather complex: the linker must be able to relax the final positions of the segments based on the number of program header segments which are required, and vice-versa. Ian