This is the mail archive of the mailing list for the GCC 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: [PATCH] Update -mcmodel=medium documentation

Jakub Jelinek <> writes:

> 2008-10-21  Jakub Jelinek  <>
> 	PR target/37880
> 	* doc/invoke.texi: Fix spelling of -mlarge-data-threshold option.
> 	Adjust -mcmodel=medium description for 2005-07-31 changes.

> @@ -11273,9 +11273,10 @@ This model has to be used for Linux kern
>  @item -mcmodel=medium
>  @opindex mcmodel=medium
>  Generate code for the medium model: The program is linked in the lower 2
> -GB of the address space but symbols can be located anywhere in the
> -address space.  Programs can be statically or dynamically linked, but
> -building of shared libraries are not supported with the medium model.
> +GB of the address space and symbols with small size as well.  Symbols
> +with sizes larger than @option{-mlarge-data-threshold} are put into
> +large data or bss sections and can be located above 2GB.  Programs can
> +be statically or dynamically linked.

I recommend "The program is linked in the lower 2 GB of the address
space.  Small symbols are also placed there.  Symbols with sizes

OK with that change.



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