scripts/addToolsVersion: properly handle .in vs. .in.2
While most components have their version in the .in file, some
have it in the .in.2 (eg. elf2flt).
Currently, to handle this case, we indiscriminately munge both files,
but this is wrong: in the elf2flt case, if we add a binutils version,
we do not want it to be added to elf2flt, and conversely.
So, for each tool, we need to explicitly know what file to munge.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
1 diff -ru eglibc-2_9_orig/sysdeps/powerpc/powerpc32/memset.S eglibc-2_9/sysdeps/powerpc/powerpc32/memset.S
2 --- eglibc-2_9_orig/sysdeps/powerpc/powerpc32/memset.S 2007-04-13 08:35:45.000000000 -0700
3 +++ eglibc-2_9/sysdeps/powerpc/powerpc32/memset.S 2009-05-06 16:52:04.000000000 -0700
5 clrrwi. rALIGN, rLEN, 5
6 mtcrf 0x01, rLEN /* 40th instruction from .align */
8 +#ifndef BROKEN_PPC_8xx_CPU15
9 /* Check if we can use the special case for clearing memory using dcbz.
10 This requires that we know the correct cache line size for this
11 processor. Getting the __cache_line_size may require establishing GOT
12 addressability, so branch out of line to set this up. */
13 beq cr1, L(checklinesize)
16 /* Store blocks of 32-bytes (256-bits) starting on a 32-byte boundary.
17 Can't assume that rCHR is zero or that the cache line size is either
19 add rMEMP, rMEMP, rALIGN
20 b L(medium_tail2) /* 72nd instruction from .align */
22 +#ifndef BROKEN_PPC_8xx_CPU15
25 /* Clear cache lines of memory in 128-byte chunks.
30 +#endif /* ! BROKEN_PPC_8xx_CPU15 */
38 +#ifndef BROKEN_PPC_8xx_CPU15
44 clrrwi. rALIGN, rLEN, 5
46 +#endif /* ! BROKEN_PPC_8xx_CPU15 */
49 libc_hidden_builtin_def (memset)