This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v6 00/13]port C-SKY to glibc


On Thu, 29 Nov 2018, Mao Han wrote:

> It seems quite hard to valuate the effect of remove restriction on 
> init-array check in gcc configure. We don't know much about what it will
> affect, and can not help to verify this on other platform.

It's not your responsibility to make sure it works on all other platforms.  
You should propose the patch to enable initfini-array for cross 
compilation (subject to the existing tests that currently run in the 
native case despite being just as valid for cross-compilation), and then 
if someone discovers a platform supported by GCC, where that compilation 
test passes but initfini-array support does not work correctly, at that 
point we can look at the right way to avoid enabling initfini-array 
support for that target.

(There are other ways of ensuring GCC uses initfini-array support 
unconditionally for a target - look at what's done for Arm EABI, which 
also uses initfini-array only.  But in the first instance, fixing the 
configure test is the natural thing to do to make this work better for all 
ELF architectures.  In any case, this should be fixed so that GCC gets it 
right and no special use of --enable-initfini-array is needed in 
build-many-glibcs.py.)

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]