summaryrefslogtreecommitdiff
path: root/sys/modules/ath_hal/ath_hal.ldscript
blob: ea1af93de0af6e84fb832ef6c8689149b1313b3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*	$NetBSD: ath_hal.ldscript,v 1.1 2011/02/20 03:58:33 jmcneill Exp $	*/

SECTIONS
{
   /* Pre-loaded modules must have merged BSS and data. */
   .data 0 :
   {
     *(.data)
     *(.bss)
     *(.bss.*)
     *(COMMON)
   }

   link_set_ah_rfs :
   {
     __start_link_set_ah_rfs = .;
     *(link_set_ah_rfs);
     __stop_link_set_ah_rfs = .;
   }

   link_set_ah_chips :
   {
     __start_link_set_ah_chips = .;
     *(link_set_ah_chips);
     __stop_link_set_ah_chips = .;
   }

   . = ALIGN(64);	/* COHERENCY_UNIT */
   .data.cacheline_aligned	: { *(.data.cacheline_aligned) }
   . = ALIGN(64);	/* COHERENCY_UNIT */
   .data.read_mostly		: { *(.data.read_mostly) }
   . = ALIGN(64);	/* COHERENCY_UNIT */
   /* Pre-loaded modules do not need the following. */
   /DISCARD/ :
   {
     *(.comment)
   }
}
'nohover-highlight'> 2021-04-16Change octal and hex parsing to not use strtoul so that they don't handlechristos '-'. From Martijn van Duren. Also add a warning if the conversion fails (like the gnu printf does) 2019-07-22Amend the previous change: we can have (almost) the best of bothkre worlds, as when the first arg (which should be the format) contains no % conversions, and there are more args, the results are unspecified (according to POSIX). We can use this so the previous usage printf -- format arg... (which is stupid, and pointless, but used to work) continues to simply ignore the -- (unspecified results mean we can do whatever feels good...) This brings back the #if 0'd block from the previous modification (so there is no longer anything that needs cleaning up later) but runs the getopt() loop it contained only when there are at least 2 args (so any 1 arg printf always uses that arg as the format string, whatever it contains, including just "--") and also only when the first (format) arg contains no '%' characters (which guarantees no % conversions without needing to actually parse the arg). This is the (or a) "unspecified results" case from POSIX, so we are free to do anything we like - including assuming that we might have options (we don't) and pretending to process them. 2019-07-21Stop assuming that printf handles options in any way at allkre (it doesn't - that is, shouldn't) which includes processing -- as an "end of options". The first arg is (always) the format string. Remove call to getopt() (but still do associated changes to argc/argv) Note: for now this is #if 0's out instead of being deleted, the old code should be fully removed sometime soon. Problem pointed out on tech-userlevel by Thierry Laronde. 2019-01-27Revert previous, it was based upon a misreading of the POSIXkre spec. POSIX requires "as if by calling strtod()" which we did already ... by calling strtod(). Go back to doing that. 2019-01-26Always convert input numbers (from the command line) in the Ckre locale, not as set in the environment. Conforms with POSIX spec. 2018-09-10A truly ancient bug found by Edgar Fusskre When printf is running builtin in a sh, global vars aren't reset to 0 between invocations. This affects "rval" which remembers state from a previous %b \c and thereafter always exits after the first format conversion, until we get a conversion that generates an error (which resets the flag almost by accident) printf %b abc\\c abc (no \n) printf %s%s hello world hello (no \n, of course, no world ...) printf %s%s hello world hello printf %s%s hello world hello printf %d hello printf: hello: expected numeric value 0 (no \n) printf %s%s hello world helloworld (no \n, and we are back!) This affects both /bin/sh and /bin/csh (and has for a very long time). XXX pullup -8 2018-09-04Printf's that support \e for escape all seem to also support \E.kre Except us. Now we do as well. 2018-09-03Tighten syntax a little (no more %*4.*2d nonsense).kre Include the format collected so far in "missing format char" err message. Minor KNF and whitespace. 2018-08-31PR standards/53563kre POSIX requires that signed numbers (strings preceded by '+' or '-') be allowed as inputs to all of the integer format conversions, including those which treat the data as unsigned. Hence we do not need a variant function whose only difference from its companion is to reject strings starting with '-' - instead we use the primary function (getintmax()) for everything and remove getuintmax(). Minor update to the man page to indicate that the arg to all of the integer conversions (diouxX) must be an integer constant (with an optional sign) and to make it blatantly clear that %o is octal and %u is unsigned decimal (for some reason those weren't explicitly stated unlike d i x and X). Delete "respectively", it is not needed (and does not really apply). XXX pullup -8 2018-07-25NFC: More KNF (remove () around returned constants).kre 2018-07-25NFC: whitespace & KNF.kre 2018-07-24Add support for F a and A formats (which go with the eEfgG formatskre already supported.) 2018-07-03Avoid printing error messages twice when an invalidkre escape sequence (\ sequence) is present in an arg to a %b conversion. 2018-07-03From leot@ on tech-userlevel:kre Avoid running off into oblivion when a format string, or arg to a %b conversion ends in an unescaped backslash. Patch from Leo slightly modified by me. 2015-06-16fix some error handling.christos 2013-07-16WARNS=6christos 2011-03-15support grouping format.christos 2009-10-13Avoid segv on "printf '%*********s' 666", from Maksymilian Arciemowiczchristos 2008-07-21Remove the \n and tabs from the __COPYRIGHT() strings.lukem Tweak to use a consistent format. 2008-03-28detect more errors from printf/malloc.christos 2005-03-22Remember to consume input bytes when processing '\0nnn' for %b formatsdsl 2004-10-30- KNF, WARNS=3, pass lint.christos - Simplify octal parsing code. 2003-08-07Move UCB-licensed code from 4-clause to 3-clause licence.agc Patches provided by Joel Baker in PR 22365, verified by myself. 2003-06-25Revert previous. 'None' means that the "Utility Syntax Guidlines" apply.dsl 2003-06-25Remove getopt() loop, IEEE 1003.1 doesn't say that printf(1) should conformdsl to the "Utility Syntax Guidlines". Fixes PR 21970. 2003-02-24Fix the output of NUL bytes within %b formats.dsl (Approved by Christos) 2002-11-24Fixes from David Laight:christos - ansification - format of output of jobs command (etc) - job identiers %+, %- etc - $? and $(...) - correct quoting of output of set, export -p and readonly -p - differentiation between nornal and 'posix special' builtins - correct behaviour (posix) for errors on builtins and special builtins - builtin printf and kill - set -o debug (if compiled with DEBUG) - cd src obj (as ksh - too useful to do without) - unset -e name, remove non-readonly variable from export list. (so I could unset -e PS1 before running the test shell...) 2002-06-14Complete declaration of progprintf() to fix build problem in csh(1).tron 2002-06-14Remove #ifdef __STDC__. De-__P() and ANSIfy. Fix a prototype mismatchwiz uncovered by this. 2001-05-05Change to use {u,}intmax_t internally (was: (unsigned) long).kleink 1998-12-19brace pollution, and char -> unsigned charchristos 1998-10-14include unistdwsanchez 1998-02-03add <unistd.h> to fix compiler warningperry 1997-10-19s/index/strchrlukem 1997-10-18"merge" lite-2. our printf is already kinda different...minor changes only.mrg