Re: RFC: Move .plt after .text in x86-64 binaries

2014-11-18 Thread Roland McGrath
The relative order of multiple executable sections inside the executable segment (distinct from nonexecutable read-only segment) is not important to NaCl.

Re: Hurd: /lib/ld.so vs. /lib/ld.so.1 (was: Policy: Require new dynamic loader names for entirely new ABIs?)

2014-01-28 Thread Roland McGrath
> For x86 Hurd, GCC has been specifying »-dynamic-linker /lib/ld.so« in > LINK_SPEC since forever (1995, or earlier), and Debian glibc has had the > following since forever (2002, or earlier): > > ifeq ($(DEB_HOST_GNU_SYSTEM),gnu) > # Why doesn't the glibc makefile install this? >

Re: [x86-64 psABI] RFC: Extend x86-64 PLT entry to support MPX

2013-07-24 Thread Roland McGrath
I've read through the MPX spec once, but most of it is still not very clear to me. So please correct any misconceptions. (HJ, if you answer any or all of these questions in your usual style with just, "It's not a problem," I will find you and I will kill you. Explain!) Will an MPX-using binary

Re: Bootstrapping glibc vs. dependency on system headers

2013-01-23 Thread Roland McGrath
As to the general case, I think float.h is probably the best choice and stdarg.h probably just as good. It's been a very long time since anything but GCC itself installed headers by those names. For libc, I think always using $CC -E is fine. You don't need to bother with the MSG_CHECKING and CAC

Re: Fwd: Using movw/movt rather than minipools in ARM gcc

2012-04-30 Thread Roland McGrath
On Mon, Apr 30, 2012 at 9:02 AM, Richard Earnshaw wrote: > It very much depends on your processor. I suppose we are probably concerned primarily with recentish OMAP and Tegra2 sorts of processors, but we are looking for generic good performance solutions for ARMv7-A class processors. > MOVW/MOVT

Re: RFC: Add STB_GNU_SECONDARY

2012-04-20 Thread Roland McGrath
> Currently we use weak undefined symbol, foo, to do > > if (&foo != 0) > foo is defined. > else > foo isn't defined. > > We want is to define foo as a secondary symbol so that > we can always use foo without checking. If there is a primary > one in a .o file and .so file, we will get the prim

Re: RFC: Add STB_GNU_SECONDARY

2012-04-20 Thread Roland McGrath
Please provide an example that illustrates why you think you need this. Thanks, Roland

Re: Building libstdc++ with current glibc, NULL and pthread.h

2012-03-09 Thread Roland McGrath
The change seems fine. But I think the log entry should have an explicit pointer to the POSIX interpretation citation by way of rationale. Thanks, Roland

Re: -fno-inline-functions vs glibc's initfini

2012-02-01 Thread Roland McGrath
> Want me to prepare a s/-fno-inline-functions/-fno-inline/ patch? My reading was that actually we would want both of those switches (the first to avoid inlining as an implicit optimization, the second to avoid inlining of functions declared inline). But whatever the exact detail, yes, please sen

Re: -fno-inline-functions vs glibc's initfini

2012-01-31 Thread Roland McGrath
>From Richard's response it sounds like there is an easy fix that's compatible with both old and new GCC (-fno-inline). I think we can do that right away without trouble, and get it onto release branches too. On the libc side more generally, I've become skeptical that the generic C version of ini

Re: x32 psABI draft version 0.2

2011-02-16 Thread Roland McGrath
> I'm wondering if we should define a section header flag (sh_flags) > and/or an ELF header flag (e_flags) for x32 for the people unhappy about > keying it to the ELF class... I don't see what's wrong with paying attention to the class. IMHO sh_flags only makes sense if you might ever mix x32 and

Re: DWARF v4 .debug_line and .debug_frame formats

2010-06-18 Thread Roland McGrath
> I'd say we should switch to version 4 only when we need the new fields > (i.e. if ia64 or other VLIW starts using the new VLIW .debug_line features, > let it use version 4, but for other targets 3 would be good enough). > Similarly for .debug_frame. I agree that makes sense. The .debug_info v4

DWARF v4 .debug_line and .debug_frame formats

2010-06-16 Thread Roland McGrath
Are there any plans to make GCC and/or GAS emit the version 4 variants of the .debug_line and/or .debug_frame formats? The .debug_line version 4 format only adds the "maximum operations per instruction" header field and associated logic, which is only meaningful for VLIW machines (i.e. ia64--are t

Re: PATCH: Support --enable-gold=both --with-linker=[bfd|gold]

2010-01-06 Thread Roland McGrath
> > Feel free to send some gcc patches. I see no point in this. > > We have -Wl. > > I deal with a lot of host systems where shell scripts aren't a viable > option for ld. Why make everyone write the wrapper script? Makes > sense to me to have gcc decide. Like I said, I don't object to any new

Re: PATCH: Support --enable-gold=both --with-linker=[bfd|gold]

2010-01-05 Thread Roland McGrath
> why not make this more explicit by adding an option --ld which is > directly understood by the gcc driver? Feel free to send some gcc patches. I see no point in this. We have -Wl.

Re: PATCH: Support --enable-gold=both --with-linker=[bfd|gold]

2010-01-05 Thread Roland McGrath
> Mainly because an alternative is to install them in subdirectories > with the name ld. Then gcc can run them directly using a -B option. > I don't know which approach is best. I think it keeps things simplest for humans to understand if the actual binaries are available as ld.bfd and ld.gold.

Re: PATCH: Support --enable-gold=both --with-linker=[bfd|gold]

2010-01-05 Thread Roland McGrath
> I'm still not entirely convinced that this is the way to go. It seems > to me that ideally one wants to be able to select the linker at > runtime. I don't see how this patch supports that. What am I > missing? It covers the first step by letting you run "ld.bfd" or "ld.gold" to choose. Havin

Re: PATCH: Support --enable-gold=both --with-linker=[bfd|gold]

2009-11-03 Thread Roland McGrath
I can't really tell how that's different from the patch I posted. It looks fine to me. Thanks, Roland

Re: PATCH: Support --enable-gold=both --with-linker=[bfd|gold]

2009-11-03 Thread Roland McGrath
--with is wrong for this. It's not about the ambient system built against. It's a feature selection for how you build binutils, which means --enable.

Re: Unwinding CFI gcc practice of assumed `same value' regs

2006-12-11 Thread Roland McGrath
GCC's unwinder doesn't distinguish undefined from same_value, because it doesn't matter for EH unwinding purposes. Both mean "nothing to be done for this register". The distinction only matters to informative unwinding purposes like debugging. I'm not sure why libgcc's unwinder really ought to c

Re: Request for clarification on the 128bit long double requirments

2006-02-06 Thread Roland McGrath
> * If GCC 4.1.0 does not support the new ABI, but GCC 4.1.1 does support > that, would it be possible to activate the support on the GLIBC 2.4 branch? This is not an option. When glibc 2.4 is released, the GLIBC_2.4 version set will never change again. Each platform will either change by the fi

Re: Request for clarification on the 128bit long double requirments

2006-02-05 Thread Roland McGrath
I hope I can clarify the situation. Planning and communication surely could have been much better, and as the person who coordinated the efforts that were made, I can be blamed for what we did and when we did it. glibc has lacked the manpower to be as organized as we would like to be, and given w

Re: i_am_not_a_leaf() and -fno-unit-at-a-time

2005-08-01 Thread Roland McGrath
initfini.c needs -fno-unit-at-a-time. It's not a normal compilation, but a special hack for generating assembly fragments. The development libc uses the flag for that file.