* cygwin.sc.in (.text.*): Fold into .text on all platforms.

(.eh_frame): Add section.
	* environ.cc (my_findenv): Drop __stdcall attribute.
	(getearly): Ditto.
	(findenv_func): Drop cast.
This commit is contained in:
Corinna Vinschen 2013-07-10 12:15:32 +00:00
parent 2d66e62c39
commit e3d9d8dfdc
3 changed files with 15 additions and 5 deletions

View File

@ -1,3 +1,11 @@
2013-07-10 Corinna Vinschen <corinna@vinschen.de>
* cygwin.sc.in (.text.*): Fold into .text on all platforms.
(.eh_frame): Add section.
* environ.cc (my_findenv): Drop __stdcall attribute.
(getearly): Ditto.
(findenv_func): Drop cast.
2013-07-03 Christopher Faylor <me.cygwin2013@cgf.cx> 2013-07-03 Christopher Faylor <me.cygwin2013@cgf.cx>
* fhandler.cc (fhandler_base::close_with_arch): Make sure that the * fhandler.cc (fhandler_base::close_with_arch): Make sure that the

View File

@ -15,9 +15,7 @@ SECTIONS
{ {
*(.init) *(.init)
*(.text) *(.text)
#ifdef __x86_64__
*(.text.*) *(.text.*)
#endif
*(SORT(.text$*)) *(SORT(.text$*))
*(.glue_7t) *(.glue_7t)
*(.glue_7) *(.glue_7)
@ -64,6 +62,10 @@ SECTIONS
*(.eh_frame) *(.eh_frame)
*(.rdata_cygwin_nocopy) *(.rdata_cygwin_nocopy)
} }
.eh_frame ALIGN(__section_alignment__) :
{
*(.eh_frame*)
}
.pdata ALIGN(__section_alignment__) : .pdata ALIGN(__section_alignment__) :
{ {
*(.pdata*) *(.pdata*)

View File

@ -470,7 +470,7 @@ posify_maybe (char **here, const char *value, char *outenv)
environment array, for use by setenv(3) and unsetenv(3). environment array, for use by setenv(3) and unsetenv(3).
Explicitly removes '=' in argument name. */ Explicitly removes '=' in argument name. */
static char * __stdcall static char *
my_findenv (const char *name, int *offset) my_findenv (const char *name, int *offset)
{ {
register int len; register int len;
@ -498,7 +498,7 @@ my_findenv (const char *name, int *offset)
/* Primitive getenv before the environment is built. */ /* Primitive getenv before the environment is built. */
static char __stdcall * static char *
getearly (const char * name, int *) getearly (const char * name, int *)
{ {
char *ret; char *ret;
@ -520,7 +520,7 @@ getearly (const char * name, int *)
return NULL; return NULL;
} }
static char * (*findenv_func)(const char *, int *) = (char * (*)(const char *, int *)) getearly; static char * (*findenv_func)(const char *, int *) = getearly;
/* Returns ptr to value associated with name, if any, else NULL. */ /* Returns ptr to value associated with name, if any, else NULL. */