Message ID | BANLkTimD_G4jU3BkSs7YWvwvPe8g9tb5=g@mail.gmail.com |
---|---|
State | New |
Headers | show |
Chris Demetriou <cgd@google.com> writes: > 2011-05-03 Chris Demetriou <cgd@google.com> > > * libgcc/config/i386/morestack.S (__i686.get_pc_thunk.bx): New. No "libgcc" in libgcc/ChangeLog. This is OK. It is also OK if you s/__i686/__x86/ to correspond to your earlier change. Either way is OK. Thanks. Ian
On Tue, May 3, 2011 at 15:05, Ian Lance Taylor <iant@google.com> wrote: > > > 2011-05-03 Chris Demetriou <cgd@google.com> > > > > * libgcc/config/i386/morestack.S (__i686.get_pc_thunk.bx): New. > > No "libgcc" in libgcc/ChangeLog. Fixed, sorry. (That's what I get for pasting from svn status output. 8-) > It is also OK if you s/__i686/__x86/ to correspond to your earlier > change. Either way is OK. Well, that change is not in trunk. Should that change move to trunk, yes, it's appropriate to change this as well (though strictly not *necessary*). (On the google branches, my plan was to rename, yes.) chris
[libgcc/ChangeLog] 2011-05-03 Chris Demetriou <cgd@google.com> * libgcc/config/i386/morestack.S (__i686.get_pc_thunk.bx): New. Index: libgcc/config/i386/morestack.S =================================================================== --- libgcc/config/i386/morestack.S (revision 173287) +++ libgcc/config/i386/morestack.S (working copy) @@ -449,6 +449,24 @@ .size __morestack, . - __morestack #endif +#if !defined(__x86_64__) && defined(__PIC__) +# Output the thunk to get PC into bx, since we use it above. +# (__i686 was already undef'd above; don't need to worry about it here.) + .section .text.__i686.get_pc_thunk.bx,"axG",@progbits,__i686.get_pc_thunk.bx,comdat + .globl __i686.get_pc_thunk.bx + .hidden __i686.get_pc_thunk.bx +#ifdef __ELF__ + .type __i686.get_pc_thunk.bx, @function +#endif +__i686.get_pc_thunk.bx: + .cfi_startproc + movl (%esp), %ebx + ret + .cfi_endproc +#ifdef __ELF__ + .size __i686.get_pc_thunk.bx, . - __i686.get_pc_thunk.bx +#endif +#endif # The exception table. This tells the personality routine to execute # the exception handler.