This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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: PR 6848 fix


On Thu, Aug 21, 2008 at 08:05:08AM -0700, Steve Ellcey wrote:
> Alan,
> 
> This patch broke my HPPA (32 bit) build.  Compiling a simple hello
> world program with GCC results in the following error message from
> the GNU assembler:

Sadly, there is no way for me to reproduce this, since the SOM support
only builds natively.  (Someone did post patches at one stage to
supply the needed header files, but the patch really needs HP review
and approval.)

At a guess, try the following:

Index: gas/config/tc-hppa.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-hppa.c,v
retrieving revision 1.138
diff -u -p -r1.138 tc-hppa.c
--- gas/config/tc-hppa.c	16 Mar 2008 23:16:03 -0000	1.138
+++ gas/config/tc-hppa.c	21 Aug 2008 22:20:06 -0000
@@ -8246,7 +8246,7 @@ md_begin (void)
   dummy_symbol = symbol_find_or_make ("L$dummy");
   S_SET_SEGMENT (dummy_symbol, text_section);
   /* Force the symbol to be converted to a real symbol.  */
-  (void) symbol_get_bfdsym (dummy_symbol);
+  (void) symbol_get_bfdsym (dummy_symbol)->flags |= BSF_KEEP;
 #endif
 }
 

-- 
Alan Modra
Australia Development Lab, IBM


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