On Fri, Jun 28, 2002 at 10:43:06AM +0200, address@hidden wrote:
> On IBM AIX 5.1 (RS6000) platform, the GNU "strip" program doesn't
remove ".debug" sections (unless when using --remove-section=".debug").
>
> I suggest a fix like the following:
> --- binutils-2.12.1/bfd/coffcode.h~ Thu May 9 16:48:49 2002
> +++ binutils-2.12.1/bfd/coffcode.h Fri Jun 28 10:19:12 2002
> @@ -657,7 +657,7 @@
> #endif
> || strncmp (name, ".stab", 5) == 0)
> {
> -#ifdef COFF_PAGE_SIZE
> +#if defined (COFF_PAGE_SIZE) || defined (RS6000COFF_C)
> sec_flags |= SEC_DEBUGGING;
> #endif
> }
I'm no expert with the coff linker code, but did you see the following
comment in other places where SEC_DEBUGGING is set?
/* We mark these as SEC_DEBUGGING, but only if COFF_PAGE_SIZE is
defined. coff_compute_section_file_positions uses
COFF_PAGE_SIZE to ensure that the low order bits of the
section VMA and the file offset match. If we don't know
COFF_PAGE_SIZE, we can't ensure the correct correspondence,
and demand page loading of the file will fail. */
--
Alan Modra
IBM OzLabs - Linux Technology Centre