binutils.info 235 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834
  1. This is binutils.info, produced by makeinfo version 6.5 from
  2. binutils.texi.
  3. Copyright (C) 1991-2021 Free Software Foundation, Inc.
  4. Permission is granted to copy, distribute and/or modify this document
  5. under the terms of the GNU Free Documentation License, Version 1.3 or
  6. any later version published by the Free Software Foundation; with no
  7. Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
  8. Texts. A copy of the license is included in the section entitled "GNU
  9. Free Documentation License".
  10. INFO-DIR-SECTION Software development
  11. START-INFO-DIR-ENTRY
  12. * Binutils: (binutils). The GNU binary utilities.
  13. END-INFO-DIR-ENTRY
  14. INFO-DIR-SECTION Individual utilities
  15. START-INFO-DIR-ENTRY
  16. * addr2line: (binutils)addr2line. Convert addresses to file and line.
  17. * ar: (binutils)ar. Create, modify, and extract from archives.
  18. * c++filt: (binutils)c++filt. Filter to demangle encoded C++ symbols.
  19. * cxxfilt: (binutils)c++filt. MS-DOS name for c++filt.
  20. * dlltool: (binutils)dlltool. Create files needed to build and use DLLs.
  21. * nm: (binutils)nm. List symbols from object files.
  22. * objcopy: (binutils)objcopy. Copy and translate object files.
  23. * objdump: (binutils)objdump. Display information from object files.
  24. * ranlib: (binutils)ranlib. Generate index to archive contents.
  25. * readelf: (binutils)readelf. Display the contents of ELF format files.
  26. * size: (binutils)size. List section sizes and total size.
  27. * strings: (binutils)strings. List printable strings from files.
  28. * strip: (binutils)strip. Discard symbols.
  29. * elfedit: (binutils)elfedit. Update ELF header and property of ELF files.
  30. * windmc: (binutils)windmc. Generator for Windows message resources.
  31. * windres: (binutils)windres. Manipulate Windows resources.
  32. END-INFO-DIR-ENTRY
  33. 
  34. File: binutils.info, Node: Top, Next: ar, Up: (dir)
  35. Introduction
  36. ************
  37. This brief manual contains documentation for the GNU binary utilities
  38. (GNU Toolchain for the A-profile Architecture 10.3-2021.07 (arm-10.29))
  39. version 2.36.1:
  40. This document is distributed under the terms of the GNU Free
  41. Documentation License version 1.3. A copy of the license is included in
  42. the section entitled "GNU Free Documentation License".
  43. * Menu:
  44. * ar:: Create, modify, and extract from archives
  45. * nm:: List symbols from object files
  46. * objcopy:: Copy and translate object files
  47. * objdump:: Display information from object files
  48. * ranlib:: Generate index to archive contents
  49. * size:: List section sizes and total size
  50. * strings:: List printable strings from files
  51. * strip:: Discard symbols
  52. * c++filt:: Filter to demangle encoded C++ symbols
  53. * cxxfilt: c++filt. MS-DOS name for c++filt
  54. * addr2line:: Convert addresses to file and line
  55. * windmc:: Generator for Windows message resources
  56. * windres:: Manipulate Windows resources
  57. * dlltool:: Create files needed to build and use DLLs
  58. * readelf:: Display the contents of ELF format files
  59. * elfedit:: Update ELF header and property of ELF files
  60. * Common Options:: Command-line options for all utilities
  61. * Selecting the Target System:: How these utilities determine the target
  62. * debuginfod:: Using binutils with debuginfod
  63. * Reporting Bugs:: Reporting Bugs
  64. * GNU Free Documentation License:: GNU Free Documentation License
  65. * Binutils Index:: Binutils Index
  66. 
  67. File: binutils.info, Node: ar, Next: nm, Prev: Top, Up: Top
  68. 1 ar
  69. ****
  70. ar [-]P[MOD] [--plugin NAME] [--target BFDNAME] [--output DIRNAME] [--record-libdeps LIBDEPS] [RELPOS] [COUNT] ARCHIVE [MEMBER...]
  71. ar -M [ <mri-script ]
  72. The GNU 'ar' program creates, modifies, and extracts from archives.
  73. An "archive" is a single file holding a collection of other files in a
  74. structure that makes it possible to retrieve the original individual
  75. files (called "members" of the archive).
  76. The original files' contents, mode (permissions), timestamp, owner,
  77. and group are preserved in the archive, and can be restored on
  78. extraction.
  79. GNU 'ar' can maintain archives whose members have names of any
  80. length; however, depending on how 'ar' is configured on your system, a
  81. limit on member-name length may be imposed for compatibility with
  82. archive formats maintained with other tools. If it exists, the limit is
  83. often 15 characters (typical of formats related to a.out) or 16
  84. characters (typical of formats related to coff).
  85. 'ar' is considered a binary utility because archives of this sort are
  86. most often used as "libraries" holding commonly needed subroutines.
  87. Since libraries often will depend on other libraries, 'ar' can also
  88. record the dependencies of a library when the '--record-libdeps' option
  89. is specified.
  90. 'ar' creates an index to the symbols defined in relocatable object
  91. modules in the archive when you specify the modifier 's'. Once created,
  92. this index is updated in the archive whenever 'ar' makes a change to its
  93. contents (save for the 'q' update operation). An archive with such an
  94. index speeds up linking to the library, and allows routines in the
  95. library to call each other without regard to their placement in the
  96. archive.
  97. You may use 'nm -s' or 'nm --print-armap' to list this index table.
  98. If an archive lacks the table, another form of 'ar' called 'ranlib' can
  99. be used to add just the table.
  100. GNU 'ar' can optionally create a _thin_ archive, which contains a
  101. symbol index and references to the original copies of the member files
  102. of the archive. This is useful for building libraries for use within a
  103. local build tree, where the relocatable objects are expected to remain
  104. available, and copying the contents of each object would only waste time
  105. and space.
  106. An archive can either be _thin_ or it can be normal. It cannot be
  107. both at the same time. Once an archive is created its format cannot be
  108. changed without first deleting it and then creating a new archive in its
  109. place.
  110. Thin archives are also _flattened_, so that adding one thin archive
  111. to another thin archive does not nest it, as would happen with a normal
  112. archive. Instead the elements of the first archive are added
  113. individually to the second archive.
  114. The paths to the elements of the archive are stored relative to the
  115. archive itself.
  116. GNU 'ar' is designed to be compatible with two different facilities.
  117. You can control its activity using command-line options, like the
  118. different varieties of 'ar' on Unix systems; or, if you specify the
  119. single command-line option '-M', you can control it with a script
  120. supplied via standard input, like the MRI "librarian" program.
  121. * Menu:
  122. * ar cmdline:: Controlling 'ar' on the command line
  123. * ar scripts:: Controlling 'ar' with a script
  124. 
  125. File: binutils.info, Node: ar cmdline, Next: ar scripts, Up: ar
  126. 1.1 Controlling 'ar' on the Command Line
  127. ========================================
  128. ar [-X32_64] [-]P[MOD] [--plugin NAME] [--target BFDNAME] [--output DIRNAME] [--record-libdeps LIBDEPS] [RELPOS] [COUNT] ARCHIVE [MEMBER...]
  129. When you use 'ar' in the Unix style, 'ar' insists on at least two
  130. arguments to execute: one keyletter specifying the _operation_
  131. (optionally accompanied by other keyletters specifying _modifiers_), and
  132. the archive name to act on.
  133. Most operations can also accept further MEMBER arguments, specifying
  134. particular files to operate on.
  135. GNU 'ar' allows you to mix the operation code P and modifier flags
  136. MOD in any order, within the first command-line argument.
  137. If you wish, you may begin the first command-line argument with a
  138. dash.
  139. The P keyletter specifies what operation to execute; it may be any of
  140. the following, but you must specify only one of them:
  141. 'd'
  142. _Delete_ modules from the archive. Specify the names of modules to
  143. be deleted as MEMBER...; the archive is untouched if you specify no
  144. files to delete.
  145. If you specify the 'v' modifier, 'ar' lists each module as it is
  146. deleted.
  147. 'm'
  148. Use this operation to _move_ members in an archive.
  149. The ordering of members in an archive can make a difference in how
  150. programs are linked using the library, if a symbol is defined in
  151. more than one member.
  152. If no modifiers are used with 'm', any members you name in the
  153. MEMBER arguments are moved to the _end_ of the archive; you can use
  154. the 'a', 'b', or 'i' modifiers to move them to a specified place
  155. instead.
  156. 'p'
  157. _Print_ the specified members of the archive, to the standard
  158. output file. If the 'v' modifier is specified, show the member
  159. name before copying its contents to standard output.
  160. If you specify no MEMBER arguments, all the files in the archive
  161. are printed.
  162. 'q'
  163. _Quick append_; Historically, add the files MEMBER... to the end of
  164. ARCHIVE, without checking for replacement.
  165. The modifiers 'a', 'b', and 'i' do _not_ affect this operation; new
  166. members are always placed at the end of the archive.
  167. The modifier 'v' makes 'ar' list each file as it is appended.
  168. Since the point of this operation is speed, implementations of 'ar'
  169. have the option of not updating the archive's symbol table if one
  170. exists. Too many different systems however assume that symbol
  171. tables are always up-to-date, so GNU 'ar' will rebuild the table
  172. even with a quick append.
  173. Note - GNU 'ar' treats the command 'qs' as a synonym for 'r' -
  174. replacing already existing files in the archive and appending new
  175. ones at the end.
  176. 'r'
  177. Insert the files MEMBER... into ARCHIVE (with _replacement_). This
  178. operation differs from 'q' in that any previously existing members
  179. are deleted if their names match those being added.
  180. If one of the files named in MEMBER... does not exist, 'ar'
  181. displays an error message, and leaves undisturbed any existing
  182. members of the archive matching that name.
  183. By default, new members are added at the end of the file; but you
  184. may use one of the modifiers 'a', 'b', or 'i' to request placement
  185. relative to some existing member.
  186. The modifier 'v' used with this operation elicits a line of output
  187. for each file inserted, along with one of the letters 'a' or 'r' to
  188. indicate whether the file was appended (no old member deleted) or
  189. replaced.
  190. 's'
  191. Add an index to the archive, or update it if it already exists.
  192. Note this command is an exception to the rule that there can only
  193. be one command letter, as it is possible to use it as either a
  194. command or a modifier. In either case it does the same thing.
  195. 't'
  196. Display a _table_ listing the contents of ARCHIVE, or those of the
  197. files listed in MEMBER... that are present in the archive.
  198. Normally only the member name is shown, but if the modifier 'O' is
  199. specified, then the corresponding offset of the member is also
  200. displayed. Finally, in order to see the modes (permissions),
  201. timestamp, owner, group, and size the 'v' modifier should be
  202. included.
  203. If you do not specify a MEMBER, all files in the archive are
  204. listed.
  205. If there is more than one file with the same name (say, 'fie') in
  206. an archive (say 'b.a'), 'ar t b.a fie' lists only the first
  207. instance; to see them all, you must ask for a complete listing--in
  208. our example, 'ar t b.a'.
  209. 'x'
  210. _Extract_ members (named MEMBER) from the archive. You can use the
  211. 'v' modifier with this operation, to request that 'ar' list each
  212. name as it extracts it.
  213. If you do not specify a MEMBER, all files in the archive are
  214. extracted.
  215. Files cannot be extracted from a thin archive, and there are
  216. restrictions on extracting from archives created with 'P': The
  217. paths must not be absolute, may not contain '..', and any
  218. subdirectories in the paths must exist. If it is desired to avoid
  219. these restrictions then used the '--output' option to specify an
  220. output directory.
  221. A number of modifiers (MOD) may immediately follow the P keyletter,
  222. to specify variations on an operation's behavior:
  223. 'a'
  224. Add new files _after_ an existing member of the archive. If you
  225. use the modifier 'a', the name of an existing archive member must
  226. be present as the RELPOS argument, before the ARCHIVE
  227. specification.
  228. 'b'
  229. Add new files _before_ an existing member of the archive. If you
  230. use the modifier 'b', the name of an existing archive member must
  231. be present as the RELPOS argument, before the ARCHIVE
  232. specification. (same as 'i').
  233. 'c'
  234. _Create_ the archive. The specified ARCHIVE is always created if
  235. it did not exist, when you request an update. But a warning is
  236. issued unless you specify in advance that you expect to create it,
  237. by using this modifier.
  238. 'D'
  239. Operate in _deterministic_ mode. When adding files and the archive
  240. index use zero for UIDs, GIDs, timestamps, and use consistent file
  241. modes for all files. When this option is used, if 'ar' is used
  242. with identical options and identical input files, multiple runs
  243. will create identical output files regardless of the input files'
  244. owners, groups, file modes, or modification times.
  245. If 'binutils' was configured with
  246. '--enable-deterministic-archives', then this mode is on by default.
  247. It can be disabled with the 'U' modifier, below.
  248. 'f'
  249. Truncate names in the archive. GNU 'ar' will normally permit file
  250. names of any length. This will cause it to create archives which
  251. are not compatible with the native 'ar' program on some systems.
  252. If this is a concern, the 'f' modifier may be used to truncate file
  253. names when putting them in the archive.
  254. 'i'
  255. Insert new files _before_ an existing member of the archive. If
  256. you use the modifier 'i', the name of an existing archive member
  257. must be present as the RELPOS argument, before the ARCHIVE
  258. specification. (same as 'b').
  259. 'l'
  260. Specify dependencies of this library. The dependencies must
  261. immediately follow this option character, must use the same syntax
  262. as the linker command line, and must be specified within a single
  263. argument. I.e., if multiple items are needed, they must be quoted
  264. to form a single command line argument. For example 'L
  265. "-L/usr/local/lib -lmydep1 -lmydep2"'
  266. 'N'
  267. Uses the COUNT parameter. This is used if there are multiple
  268. entries in the archive with the same name. Extract or delete
  269. instance COUNT of the given name from the archive.
  270. 'o'
  271. Preserve the _original_ dates of members when extracting them. If
  272. you do not specify this modifier, files extracted from the archive
  273. are stamped with the time of extraction.
  274. 'O'
  275. Display member offsets inside the archive. Use together with the
  276. 't' option.
  277. 'P'
  278. Use the full path name when matching or storing names in the
  279. archive. Archives created with full path names are not POSIX
  280. compliant, and thus may not work with tools other than up to date
  281. GNU tools. Modifying such archives with GNU 'ar' without using 'P'
  282. will remove the full path names unless the archive is a thin
  283. archive. Note that 'P' may be useful when adding files to a thin
  284. archive since 'r' without 'P' ignores the path when choosing which
  285. element to replace. Thus
  286. ar rcST archive.a subdir/file1 subdir/file2 file1
  287. will result in the first 'subdir/file1' being replaced with 'file1'
  288. from the current directory. Adding 'P' will prevent this
  289. replacement.
  290. 's'
  291. Write an object-file index into the archive, or update an existing
  292. one, even if no other change is made to the archive. You may use
  293. this modifier flag either with any operation, or alone. Running
  294. 'ar s' on an archive is equivalent to running 'ranlib' on it.
  295. 'S'
  296. Do not generate an archive symbol table. This can speed up
  297. building a large library in several steps. The resulting archive
  298. can not be used with the linker. In order to build a symbol table,
  299. you must omit the 'S' modifier on the last execution of 'ar', or
  300. you must run 'ranlib' on the archive.
  301. 'T'
  302. Make the specified ARCHIVE a _thin_ archive. If it already exists
  303. and is a regular archive, the existing members must be present in
  304. the same directory as ARCHIVE.
  305. 'u'
  306. Normally, 'ar r'... inserts all files listed into the archive. If
  307. you would like to insert _only_ those of the files you list that
  308. are newer than existing members of the same names, use this
  309. modifier. The 'u' modifier is allowed only for the operation 'r'
  310. (replace). In particular, the combination 'qu' is not allowed,
  311. since checking the timestamps would lose any speed advantage from
  312. the operation 'q'.
  313. 'U'
  314. Do _not_ operate in _deterministic_ mode. This is the inverse of
  315. the 'D' modifier, above: added files and the archive index will get
  316. their actual UID, GID, timestamp, and file mode values.
  317. This is the default unless 'binutils' was configured with
  318. '--enable-deterministic-archives'.
  319. 'v'
  320. This modifier requests the _verbose_ version of an operation. Many
  321. operations display additional information, such as filenames
  322. processed, when the modifier 'v' is appended.
  323. 'V'
  324. This modifier shows the version number of 'ar'.
  325. The 'ar' program also supports some command-line options which are
  326. neither modifiers nor actions, but which do change its behaviour in
  327. specific ways:
  328. '--help'
  329. Displays the list of command-line options supported by 'ar' and
  330. then exits.
  331. '--version'
  332. Displays the version information of 'ar' and then exits.
  333. '-X32_64'
  334. 'ar' ignores an initial option spelled '-X32_64', for compatibility
  335. with AIX. The behaviour produced by this option is the default for
  336. GNU 'ar'. 'ar' does not support any of the other '-X' options; in
  337. particular, it does not support '-X32' which is the default for AIX
  338. 'ar'.
  339. '--plugin NAME'
  340. The optional command-line switch '--plugin NAME' causes 'ar' to
  341. load the plugin called NAME which adds support for more file
  342. formats, including object files with link-time optimization
  343. information.
  344. This option is only available if the toolchain has been built with
  345. plugin support enabled.
  346. If '--plugin' is not provided, but plugin support has been enabled
  347. then 'ar' iterates over the files in '${libdir}/bfd-plugins' in
  348. alphabetic order and the first plugin that claims the object in
  349. question is used.
  350. Please note that this plugin search directory is _not_ the one used
  351. by 'ld''s '-plugin' option. In order to make 'ar' use the linker
  352. plugin it must be copied into the '${libdir}/bfd-plugins'
  353. directory. For GCC based compilations the linker plugin is called
  354. 'liblto_plugin.so.0.0.0'. For Clang based compilations it is
  355. called 'LLVMgold.so'. The GCC plugin is always backwards
  356. compatible with earlier versions, so it is sufficient to just copy
  357. the newest one.
  358. '--target TARGET'
  359. The optional command-line switch '--target BFDNAME' specifies that
  360. the archive members are in an object code format different from
  361. your system's default format. See *Note Target Selection::, for
  362. more information.
  363. '--output DIRNAME'
  364. The '--output' option can be used to specify a path to a directory
  365. into which archive members should be extracted. If this option is
  366. not specified then the current directory will be used.
  367. Note - although the presence of this option does imply a 'x'
  368. extraction operation that option must still be included on the
  369. command line.
  370. '--record-libdeps LIBDEPS'
  371. The '--record-libdeps' option is identical to the 'l' modifier,
  372. just handled in long form.
  373. 
  374. File: binutils.info, Node: ar scripts, Prev: ar cmdline, Up: ar
  375. 1.2 Controlling 'ar' with a Script
  376. ==================================
  377. ar -M [ <SCRIPT ]
  378. If you use the single command-line option '-M' with 'ar', you can
  379. control its operation with a rudimentary command language. This form of
  380. 'ar' operates interactively if standard input is coming directly from a
  381. terminal. During interactive use, 'ar' prompts for input (the prompt is
  382. 'AR >'), and continues executing even after errors. If you redirect
  383. standard input to a script file, no prompts are issued, and 'ar'
  384. abandons execution (with a nonzero exit code) on any error.
  385. The 'ar' command language is _not_ designed to be equivalent to the
  386. command-line options; in fact, it provides somewhat less control over
  387. archives. The only purpose of the command language is to ease the
  388. transition to GNU 'ar' for developers who already have scripts written
  389. for the MRI "librarian" program.
  390. The syntax for the 'ar' command language is straightforward:
  391. * commands are recognized in upper or lower case; for example, 'LIST'
  392. is the same as 'list'. In the following descriptions, commands are
  393. shown in upper case for clarity.
  394. * a single command may appear on each line; it is the first word on
  395. the line.
  396. * empty lines are allowed, and have no effect.
  397. * comments are allowed; text after either of the characters '*' or
  398. ';' is ignored.
  399. * Whenever you use a list of names as part of the argument to an 'ar'
  400. command, you can separate the individual names with either commas
  401. or blanks. Commas are shown in the explanations below, for
  402. clarity.
  403. * '+' is used as a line continuation character; if '+' appears at the
  404. end of a line, the text on the following line is considered part of
  405. the current command.
  406. Here are the commands you can use in 'ar' scripts, or when using 'ar'
  407. interactively. Three of them have special significance:
  408. 'OPEN' or 'CREATE' specify a "current archive", which is a temporary
  409. file required for most of the other commands.
  410. 'SAVE' commits the changes so far specified by the script. Prior to
  411. 'SAVE', commands affect only the temporary copy of the current archive.
  412. 'ADDLIB ARCHIVE'
  413. 'ADDLIB ARCHIVE (MODULE, MODULE, ... MODULE)'
  414. Add all the contents of ARCHIVE (or, if specified, each named
  415. MODULE from ARCHIVE) to the current archive.
  416. Requires prior use of 'OPEN' or 'CREATE'.
  417. 'ADDMOD MEMBER, MEMBER, ... MEMBER'
  418. Add each named MEMBER as a module in the current archive.
  419. Requires prior use of 'OPEN' or 'CREATE'.
  420. 'CLEAR'
  421. Discard the contents of the current archive, canceling the effect
  422. of any operations since the last 'SAVE'. May be executed (with no
  423. effect) even if no current archive is specified.
  424. 'CREATE ARCHIVE'
  425. Creates an archive, and makes it the current archive (required for
  426. many other commands). The new archive is created with a temporary
  427. name; it is not actually saved as ARCHIVE until you use 'SAVE'.
  428. You can overwrite existing archives; similarly, the contents of any
  429. existing file named ARCHIVE will not be destroyed until 'SAVE'.
  430. 'DELETE MODULE, MODULE, ... MODULE'
  431. Delete each listed MODULE from the current archive; equivalent to
  432. 'ar -d ARCHIVE MODULE ... MODULE'.
  433. Requires prior use of 'OPEN' or 'CREATE'.
  434. 'DIRECTORY ARCHIVE (MODULE, ... MODULE)'
  435. 'DIRECTORY ARCHIVE (MODULE, ... MODULE) OUTPUTFILE'
  436. List each named MODULE present in ARCHIVE. The separate command
  437. 'VERBOSE' specifies the form of the output: when verbose output is
  438. off, output is like that of 'ar -t ARCHIVE MODULE...'. When
  439. verbose output is on, the listing is like 'ar -tv ARCHIVE
  440. MODULE...'.
  441. Output normally goes to the standard output stream; however, if you
  442. specify OUTPUTFILE as a final argument, 'ar' directs the output to
  443. that file.
  444. 'END'
  445. Exit from 'ar', with a '0' exit code to indicate successful
  446. completion. This command does not save the output file; if you
  447. have changed the current archive since the last 'SAVE' command,
  448. those changes are lost.
  449. 'EXTRACT MODULE, MODULE, ... MODULE'
  450. Extract each named MODULE from the current archive, writing them
  451. into the current directory as separate files. Equivalent to 'ar -x
  452. ARCHIVE MODULE...'.
  453. Requires prior use of 'OPEN' or 'CREATE'.
  454. 'LIST'
  455. Display full contents of the current archive, in "verbose" style
  456. regardless of the state of 'VERBOSE'. The effect is like 'ar tv
  457. ARCHIVE'. (This single command is a GNU 'ar' enhancement, rather
  458. than present for MRI compatibility.)
  459. Requires prior use of 'OPEN' or 'CREATE'.
  460. 'OPEN ARCHIVE'
  461. Opens an existing archive for use as the current archive (required
  462. for many other commands). Any changes as the result of subsequent
  463. commands will not actually affect ARCHIVE until you next use
  464. 'SAVE'.
  465. 'REPLACE MODULE, MODULE, ... MODULE'
  466. In the current archive, replace each existing MODULE (named in the
  467. 'REPLACE' arguments) from files in the current working directory.
  468. To execute this command without errors, both the file, and the
  469. module in the current archive, must exist.
  470. Requires prior use of 'OPEN' or 'CREATE'.
  471. 'VERBOSE'
  472. Toggle an internal flag governing the output from 'DIRECTORY'.
  473. When the flag is on, 'DIRECTORY' output matches output from 'ar -tv
  474. '....
  475. 'SAVE'
  476. Commit your changes to the current archive, and actually save it as
  477. a file with the name specified in the last 'CREATE' or 'OPEN'
  478. command.
  479. Requires prior use of 'OPEN' or 'CREATE'.
  480. 
  481. File: binutils.info, Node: nm, Next: objcopy, Prev: ar, Up: Top
  482. 2 nm
  483. ****
  484. nm [-A|-o|--print-file-name] [-a|--debug-syms]
  485. [-B|--format=bsd] [-C|--demangle[=STYLE]]
  486. [-D|--dynamic] [-fFORMAT|--format=FORMAT]
  487. [-g|--extern-only] [-h|--help]
  488. [--ifunc-chars=CHARS]
  489. [-l|--line-numbers] [--inlines]
  490. [-n|-v|--numeric-sort]
  491. [-P|--portability] [-p|--no-sort]
  492. [-r|--reverse-sort] [-S|--print-size]
  493. [-s|--print-armap] [-t RADIX|--radix=RADIX]
  494. [-u|--undefined-only] [-V|--version]
  495. [-X 32_64] [--defined-only] [--no-demangle]
  496. [--plugin NAME]
  497. [--no-recurse-limit|--recurse-limit]]
  498. [--size-sort] [--special-syms]
  499. [--synthetic] [--target=BFDNAME]
  500. [OBJFILE...]
  501. GNU 'nm' lists the symbols from object files OBJFILE.... If no
  502. object files are listed as arguments, 'nm' assumes the file 'a.out'.
  503. For each symbol, 'nm' shows:
  504. * The symbol value, in the radix selected by options (see below), or
  505. hexadecimal by default.
  506. * The symbol type. At least the following types are used; others
  507. are, as well, depending on the object file format. If lowercase,
  508. the symbol is usually local; if uppercase, the symbol is global
  509. (external). There are however a few lowercase symbols that are
  510. shown for special global symbols ('u', 'v' and 'w').
  511. 'A'
  512. The symbol's value is absolute, and will not be changed by
  513. further linking.
  514. 'B'
  515. 'b'
  516. The symbol is in the BSS data section. This section typically
  517. contains zero-initialized or uninitialized data, although the
  518. exact behavior is system dependent.
  519. 'C'
  520. 'c'
  521. The symbol is common. Common symbols are uninitialized data.
  522. When linking, multiple common symbols may appear with the same
  523. name. If the symbol is defined anywhere, the common symbols
  524. are treated as undefined references. For more details on
  525. common symbols, see the discussion of -warn-common in *note
  526. Linker options: (ld.info)Options. The lower case C character
  527. is used when the symbol is in a special section for small
  528. commons.
  529. 'D'
  530. 'd'
  531. The symbol is in the initialized data section.
  532. 'G'
  533. 'g'
  534. The symbol is in an initialized data section for small
  535. objects. Some object file formats permit more efficient
  536. access to small data objects, such as a global int variable as
  537. opposed to a large global array.
  538. 'i'
  539. For PE format files this indicates that the symbol is in a
  540. section specific to the implementation of DLLs.
  541. For ELF format files this indicates that the symbol is an
  542. indirect function. This is a GNU extension to the standard
  543. set of ELF symbol types. It indicates a symbol which if
  544. referenced by a relocation does not evaluate to its address,
  545. but instead must be invoked at runtime. The runtime execution
  546. will then return the value to be used in the relocation.
  547. Note - the actual symbols display for GNU indirect symbols is
  548. controlled by the '--ifunc-chars' command line option. If
  549. this option has been provided then the first character in the
  550. string will be used for global indirect function symbols. If
  551. the string contains a second character then that will be used
  552. for local indirect function symbols.
  553. 'I'
  554. The symbol is an indirect reference to another symbol.
  555. 'N'
  556. The symbol is a debugging symbol.
  557. 'n'
  558. The symbol is in the read-only data section.
  559. 'p'
  560. The symbol is in a stack unwind section.
  561. 'R'
  562. 'r'
  563. The symbol is in a read only data section.
  564. 'S'
  565. 's'
  566. The symbol is in an uninitialized or zero-initialized data
  567. section for small objects.
  568. 'T'
  569. 't'
  570. The symbol is in the text (code) section.
  571. 'U'
  572. The symbol is undefined.
  573. 'u'
  574. The symbol is a unique global symbol. This is a GNU extension
  575. to the standard set of ELF symbol bindings. For such a symbol
  576. the dynamic linker will make sure that in the entire process
  577. there is just one symbol with this name and type in use.
  578. 'V'
  579. 'v'
  580. The symbol is a weak object. When a weak defined symbol is
  581. linked with a normal defined symbol, the normal defined symbol
  582. is used with no error. When a weak undefined symbol is linked
  583. and the symbol is not defined, the value of the weak symbol
  584. becomes zero with no error. On some systems, uppercase
  585. indicates that a default value has been specified.
  586. 'W'
  587. 'w'
  588. The symbol is a weak symbol that has not been specifically
  589. tagged as a weak object symbol. When a weak defined symbol is
  590. linked with a normal defined symbol, the normal defined symbol
  591. is used with no error. When a weak undefined symbol is linked
  592. and the symbol is not defined, the value of the symbol is
  593. determined in a system-specific manner without error. On some
  594. systems, uppercase indicates that a default value has been
  595. specified.
  596. '-'
  597. The symbol is a stabs symbol in an a.out object file. In this
  598. case, the next values printed are the stabs other field, the
  599. stabs desc field, and the stab type. Stabs symbols are used
  600. to hold debugging information.
  601. '?'
  602. The symbol type is unknown, or object file format specific.
  603. * The symbol name. If a symbol has version information associated
  604. with it, then the version information is displayed as well. If the
  605. versioned symbol is undefined or hidden from linker, the version
  606. string is displayed as a suffix to the symbol name, preceded by an
  607. @ character. For example 'foo@VER_1'. If the version is the
  608. default version to be used when resolving unversioned references to
  609. the symbol, then it is displayed as a suffix preceded by two @
  610. characters. For example 'foo@@VER_2'.
  611. The long and short forms of options, shown here as alternatives, are
  612. equivalent.
  613. '-A'
  614. '-o'
  615. '--print-file-name'
  616. Precede each symbol by the name of the input file (or archive
  617. member) in which it was found, rather than identifying the input
  618. file once only, before all of its symbols.
  619. '-a'
  620. '--debug-syms'
  621. Display all symbols, even debugger-only symbols; normally these are
  622. not listed.
  623. '-B'
  624. The same as '--format=bsd' (for compatibility with the MIPS 'nm').
  625. '-C'
  626. '--demangle[=STYLE]'
  627. Decode ("demangle") low-level symbol names into user-level names.
  628. Besides removing any initial underscore prepended by the system,
  629. this makes C++ function names readable. Different compilers have
  630. different mangling styles. The optional demangling style argument
  631. can be used to choose an appropriate demangling style for your
  632. compiler. *Note c++filt::, for more information on demangling.
  633. '--no-demangle'
  634. Do not demangle low-level symbol names. This is the default.
  635. '--recurse-limit'
  636. '--no-recurse-limit'
  637. '--recursion-limit'
  638. '--no-recursion-limit'
  639. Enables or disables a limit on the amount of recursion performed
  640. whilst demangling strings. Since the name mangling formats allow
  641. for an infinite level of recursion it is possible to create strings
  642. whose decoding will exhaust the amount of stack space available on
  643. the host machine, triggering a memory fault. The limit tries to
  644. prevent this from happening by restricting recursion to 2048 levels
  645. of nesting.
  646. The default is for this limit to be enabled, but disabling it may
  647. be necessary in order to demangle truly complicated names. Note
  648. however that if the recursion limit is disabled then stack
  649. exhaustion is possible and any bug reports about such an event will
  650. be rejected.
  651. '-D'
  652. '--dynamic'
  653. Display the dynamic symbols rather than the normal symbols. This
  654. is only meaningful for dynamic objects, such as certain types of
  655. shared libraries.
  656. '-f FORMAT'
  657. '--format=FORMAT'
  658. Use the output format FORMAT, which can be 'bsd', 'sysv', or
  659. 'posix'. The default is 'bsd'. Only the first character of FORMAT
  660. is significant; it can be either upper or lower case.
  661. '-g'
  662. '--extern-only'
  663. Display only external symbols.
  664. '-h'
  665. '--help'
  666. Show a summary of the options to 'nm' and exit.
  667. '--ifunc-chars=CHARS'
  668. When display GNU indirect function symbols 'nm' will default to
  669. using the 'i' character for both local indirect functions and
  670. global indirect functions. The '--ifunc-chars' option allows the
  671. user to specify a string containing one or two characters. The
  672. first character will be used for global indirect function symbols
  673. and the second character, if present, will be used for local
  674. indirect function symbols.
  675. '-l'
  676. '--line-numbers'
  677. For each symbol, use debugging information to try to find a
  678. filename and line number. For a defined symbol, look for the line
  679. number of the address of the symbol. For an undefined symbol, look
  680. for the line number of a relocation entry which refers to the
  681. symbol. If line number information can be found, print it after
  682. the other symbol information.
  683. '--inlines'
  684. When option '-l' is active, if the address belongs to a function
  685. that was inlined, then this option causes the source information
  686. for all enclosing scopes back to the first non-inlined function to
  687. be printed as well. For example, if 'main' inlines 'callee1' which
  688. inlines 'callee2', and address is from 'callee2', the source
  689. information for 'callee1' and 'main' will also be printed.
  690. '-n'
  691. '-v'
  692. '--numeric-sort'
  693. Sort symbols numerically by their addresses, rather than
  694. alphabetically by their names.
  695. '-p'
  696. '--no-sort'
  697. Do not bother to sort the symbols in any order; print them in the
  698. order encountered.
  699. '-P'
  700. '--portability'
  701. Use the POSIX.2 standard output format instead of the default
  702. format. Equivalent to '-f posix'.
  703. '-r'
  704. '--reverse-sort'
  705. Reverse the order of the sort (whether numeric or alphabetic); let
  706. the last come first.
  707. '-S'
  708. '--print-size'
  709. Print both value and size of defined symbols for the 'bsd' output
  710. style. This option has no effect for object formats that do not
  711. record symbol sizes, unless '--size-sort' is also used in which
  712. case a calculated size is displayed.
  713. '-s'
  714. '--print-armap'
  715. When listing symbols from archive members, include the index: a
  716. mapping (stored in the archive by 'ar' or 'ranlib') of which
  717. modules contain definitions for which names.
  718. '-t RADIX'
  719. '--radix=RADIX'
  720. Use RADIX as the radix for printing the symbol values. It must be
  721. 'd' for decimal, 'o' for octal, or 'x' for hexadecimal.
  722. '-u'
  723. '--undefined-only'
  724. Display only undefined symbols (those external to each object
  725. file).
  726. '-V'
  727. '--version'
  728. Show the version number of 'nm' and exit.
  729. '-X'
  730. This option is ignored for compatibility with the AIX version of
  731. 'nm'. It takes one parameter which must be the string '32_64'.
  732. The default mode of AIX 'nm' corresponds to '-X 32', which is not
  733. supported by GNU 'nm'.
  734. '--defined-only'
  735. Display only defined symbols for each object file.
  736. '--plugin NAME'
  737. Load the plugin called NAME to add support for extra target types.
  738. This option is only available if the toolchain has been built with
  739. plugin support enabled.
  740. If '--plugin' is not provided, but plugin support has been enabled
  741. then 'nm' iterates over the files in '${libdir}/bfd-plugins' in
  742. alphabetic order and the first plugin that claims the object in
  743. question is used.
  744. Please note that this plugin search directory is _not_ the one used
  745. by 'ld''s '-plugin' option. In order to make 'nm' use the linker
  746. plugin it must be copied into the '${libdir}/bfd-plugins'
  747. directory. For GCC based compilations the linker plugin is called
  748. 'liblto_plugin.so.0.0.0'. For Clang based compilations it is
  749. called 'LLVMgold.so'. The GCC plugin is always backwards
  750. compatible with earlier versions, so it is sufficient to just copy
  751. the newest one.
  752. '--size-sort'
  753. Sort symbols by size. For ELF objects symbol sizes are read from
  754. the ELF, for other object types the symbol sizes are computed as
  755. the difference between the value of the symbol and the value of the
  756. symbol with the next higher value. If the 'bsd' output format is
  757. used the size of the symbol is printed, rather than the value, and
  758. '-S' must be used in order both size and value to be printed.
  759. '--special-syms'
  760. Display symbols which have a target-specific special meaning.
  761. These symbols are usually used by the target for some special
  762. processing and are not normally helpful when included in the normal
  763. symbol lists. For example for ARM targets this option would skip
  764. the mapping symbols used to mark transitions between ARM code,
  765. THUMB code and data.
  766. '--synthetic'
  767. Include synthetic symbols in the output. These are special symbols
  768. created by the linker for various purposes. They are not shown by
  769. default since they are not part of the binary's original source
  770. code.
  771. '--target=BFDNAME'
  772. Specify an object code format other than your system's default
  773. format. *Note Target Selection::, for more information.
  774. 
  775. File: binutils.info, Node: objcopy, Next: objdump, Prev: nm, Up: Top
  776. 3 objcopy
  777. *********
  778. objcopy [-F BFDNAME|--target=BFDNAME]
  779. [-I BFDNAME|--input-target=BFDNAME]
  780. [-O BFDNAME|--output-target=BFDNAME]
  781. [-B BFDARCH|--binary-architecture=BFDARCH]
  782. [-S|--strip-all]
  783. [-g|--strip-debug]
  784. [--strip-unneeded]
  785. [-K SYMBOLNAME|--keep-symbol=SYMBOLNAME]
  786. [-N SYMBOLNAME|--strip-symbol=SYMBOLNAME]
  787. [--strip-unneeded-symbol=SYMBOLNAME]
  788. [-G SYMBOLNAME|--keep-global-symbol=SYMBOLNAME]
  789. [--localize-hidden]
  790. [-L SYMBOLNAME|--localize-symbol=SYMBOLNAME]
  791. [--globalize-symbol=SYMBOLNAME]
  792. [--globalize-symbols=FILENAME]
  793. [-W SYMBOLNAME|--weaken-symbol=SYMBOLNAME]
  794. [-w|--wildcard]
  795. [-x|--discard-all]
  796. [-X|--discard-locals]
  797. [-b BYTE|--byte=BYTE]
  798. [-i [BREADTH]|--interleave[=BREADTH]]
  799. [--interleave-width=WIDTH]
  800. [-j SECTIONPATTERN|--only-section=SECTIONPATTERN]
  801. [-R SECTIONPATTERN|--remove-section=SECTIONPATTERN]
  802. [--keep-section=SECTIONPATTERN]
  803. [--remove-relocations=SECTIONPATTERN]
  804. [-p|--preserve-dates]
  805. [-D|--enable-deterministic-archives]
  806. [-U|--disable-deterministic-archives]
  807. [--debugging]
  808. [--gap-fill=VAL]
  809. [--pad-to=ADDRESS]
  810. [--set-start=VAL]
  811. [--adjust-start=INCR]
  812. [--change-addresses=INCR]
  813. [--change-section-address SECTIONPATTERN{=,+,-}VAL]
  814. [--change-section-lma SECTIONPATTERN{=,+,-}VAL]
  815. [--change-section-vma SECTIONPATTERN{=,+,-}VAL]
  816. [--change-warnings] [--no-change-warnings]
  817. [--set-section-flags SECTIONPATTERN=FLAGS]
  818. [--set-section-alignment SECTIONPATTERN=ALIGN]
  819. [--add-section SECTIONNAME=FILENAME]
  820. [--dump-section SECTIONNAME=FILENAME]
  821. [--update-section SECTIONNAME=FILENAME]
  822. [--rename-section OLDNAME=NEWNAME[,FLAGS]]
  823. [--long-section-names {enable,disable,keep}]
  824. [--change-leading-char] [--remove-leading-char]
  825. [--reverse-bytes=NUM]
  826. [--srec-len=IVAL] [--srec-forceS3]
  827. [--redefine-sym OLD=NEW]
  828. [--redefine-syms=FILENAME]
  829. [--weaken]
  830. [--keep-symbols=FILENAME]
  831. [--strip-symbols=FILENAME]
  832. [--strip-unneeded-symbols=FILENAME]
  833. [--keep-global-symbols=FILENAME]
  834. [--localize-symbols=FILENAME]
  835. [--weaken-symbols=FILENAME]
  836. [--add-symbol NAME=[SECTION:]VALUE[,FLAGS]]
  837. [--alt-machine-code=INDEX]
  838. [--prefix-symbols=STRING]
  839. [--prefix-sections=STRING]
  840. [--prefix-alloc-sections=STRING]
  841. [--add-gnu-debuglink=PATH-TO-FILE]
  842. [--keep-file-symbols]
  843. [--only-keep-debug]
  844. [--strip-dwo]
  845. [--extract-dwo]
  846. [--extract-symbol]
  847. [--writable-text]
  848. [--readonly-text]
  849. [--pure]
  850. [--impure]
  851. [--file-alignment=NUM]
  852. [--heap=SIZE]
  853. [--image-base=ADDRESS]
  854. [--section-alignment=NUM]
  855. [--stack=SIZE]
  856. [--subsystem=WHICH:MAJOR.MINOR]
  857. [--compress-debug-sections]
  858. [--decompress-debug-sections]
  859. [--elf-stt-common=VAL]
  860. [--merge-notes]
  861. [--no-merge-notes]
  862. [--verilog-data-width=VAL]
  863. [-v|--verbose]
  864. [-V|--version]
  865. [--help] [--info]
  866. INFILE [OUTFILE]
  867. The GNU 'objcopy' utility copies the contents of an object file to
  868. another. 'objcopy' uses the GNU BFD Library to read and write the
  869. object files. It can write the destination object file in a format
  870. different from that of the source object file. The exact behavior of
  871. 'objcopy' is controlled by command-line options. Note that 'objcopy'
  872. should be able to copy a fully linked file between any two formats.
  873. However, copying a relocatable object file between any two formats may
  874. not work as expected.
  875. 'objcopy' creates temporary files to do its translations and deletes
  876. them afterward. 'objcopy' uses BFD to do all its translation work; it
  877. has access to all the formats described in BFD and thus is able to
  878. recognize most formats without being told explicitly. *Note BFD:
  879. (ld.info)BFD.
  880. 'objcopy' can be used to generate S-records by using an output target
  881. of 'srec' (e.g., use '-O srec').
  882. 'objcopy' can be used to generate a raw binary file by using an
  883. output target of 'binary' (e.g., use '-O binary'). When 'objcopy'
  884. generates a raw binary file, it will essentially produce a memory dump
  885. of the contents of the input object file. All symbols and relocation
  886. information will be discarded. The memory dump will start at the load
  887. address of the lowest section copied into the output file.
  888. When generating an S-record or a raw binary file, it may be helpful
  889. to use '-S' to remove sections containing debugging information. In
  890. some cases '-R' will be useful to remove sections which contain
  891. information that is not needed by the binary file.
  892. Note--'objcopy' is not able to change the endianness of its input
  893. files. If the input format has an endianness (some formats do not),
  894. 'objcopy' can only copy the inputs into file formats that have the same
  895. endianness or which have no endianness (e.g., 'srec'). (However, see
  896. the '--reverse-bytes' option.)
  897. 'INFILE'
  898. 'OUTFILE'
  899. The input and output files, respectively. If you do not specify
  900. OUTFILE, 'objcopy' creates a temporary file and destructively
  901. renames the result with the name of INFILE.
  902. '-I BFDNAME'
  903. '--input-target=BFDNAME'
  904. Consider the source file's object format to be BFDNAME, rather than
  905. attempting to deduce it. *Note Target Selection::, for more
  906. information.
  907. '-O BFDNAME'
  908. '--output-target=BFDNAME'
  909. Write the output file using the object format BFDNAME. *Note
  910. Target Selection::, for more information.
  911. '-F BFDNAME'
  912. '--target=BFDNAME'
  913. Use BFDNAME as the object format for both the input and the output
  914. file; i.e., simply transfer data from source to destination with no
  915. translation. *Note Target Selection::, for more information.
  916. '-B BFDARCH'
  917. '--binary-architecture=BFDARCH'
  918. Useful when transforming a architecture-less input file into an
  919. object file. In this case the output architecture can be set to
  920. BFDARCH. This option will be ignored if the input file has a known
  921. BFDARCH. You can access this binary data inside a program by
  922. referencing the special symbols that are created by the conversion
  923. process. These symbols are called _binary_OBJFILE_start,
  924. _binary_OBJFILE_end and _binary_OBJFILE_size. e.g. you can
  925. transform a picture file into an object file and then access it in
  926. your code using these symbols.
  927. '-j SECTIONPATTERN'
  928. '--only-section=SECTIONPATTERN'
  929. Copy only the indicated sections from the input file to the output
  930. file. This option may be given more than once. Note that using
  931. this option inappropriately may make the output file unusable.
  932. Wildcard characters are accepted in SECTIONPATTERN.
  933. If the first character of SECTIONPATTERN is the exclamation point
  934. (!) then matching sections will not be copied, even if earlier use
  935. of '--only-section' on the same command line would otherwise copy
  936. it. For example:
  937. --only-section=.text.* --only-section=!.text.foo
  938. will copy all sectinos matching '.text.*' but not the section
  939. '.text.foo'.
  940. '-R SECTIONPATTERN'
  941. '--remove-section=SECTIONPATTERN'
  942. Remove any section matching SECTIONPATTERN from the output file.
  943. This option may be given more than once. Note that using this
  944. option inappropriately may make the output file unusable. Wildcard
  945. characters are accepted in SECTIONPATTERN. Using both the '-j' and
  946. '-R' options together results in undefined behaviour.
  947. If the first character of SECTIONPATTERN is the exclamation point
  948. (!) then matching sections will not be removed even if an earlier
  949. use of '--remove-section' on the same command line would otherwise
  950. remove it. For example:
  951. --remove-section=.text.* --remove-section=!.text.foo
  952. will remove all sections matching the pattern '.text.*', but will
  953. not remove the section '.text.foo'.
  954. '--keep-section=SECTIONPATTERN'
  955. When removing sections from the output file, keep sections that
  956. match SECTIONPATTERN.
  957. '--remove-relocations=SECTIONPATTERN'
  958. Remove non-dynamic relocations from the output file for any section
  959. matching SECTIONPATTERN. This option may be given more than once.
  960. Note that using this option inappropriately may make the output
  961. file unusable, and attempting to remove a dynamic relocation
  962. section such as '.rela.plt' from an executable or shared library
  963. with '--remove-relocations=.plt' will not work. Wildcard
  964. characters are accepted in SECTIONPATTERN. For example:
  965. --remove-relocations=.text.*
  966. will remove the relocations for all sections matching the pattern
  967. '.text.*'.
  968. If the first character of SECTIONPATTERN is the exclamation point
  969. (!) then matching sections will not have their relocation removed
  970. even if an earlier use of '--remove-relocations' on the same
  971. command line would otherwise cause the relocations to be removed.
  972. For example:
  973. --remove-relocations=.text.* --remove-relocations=!.text.foo
  974. will remove all relocations for sections matching the pattern
  975. '.text.*', but will not remove relocations for the section
  976. '.text.foo'.
  977. '-S'
  978. '--strip-all'
  979. Do not copy relocation and symbol information from the source file.
  980. Also deletes debug sections.
  981. '-g'
  982. '--strip-debug'
  983. Do not copy debugging symbols or sections from the source file.
  984. '--strip-unneeded'
  985. Remove all symbols that are not needed for relocation processing in
  986. addition to debugging symbols and sections stripped by
  987. '--strip-debug'.
  988. '-K SYMBOLNAME'
  989. '--keep-symbol=SYMBOLNAME'
  990. When stripping symbols, keep symbol SYMBOLNAME even if it would
  991. normally be stripped. This option may be given more than once.
  992. '-N SYMBOLNAME'
  993. '--strip-symbol=SYMBOLNAME'
  994. Do not copy symbol SYMBOLNAME from the source file. This option
  995. may be given more than once.
  996. '--strip-unneeded-symbol=SYMBOLNAME'
  997. Do not copy symbol SYMBOLNAME from the source file unless it is
  998. needed by a relocation. This option may be given more than once.
  999. '-G SYMBOLNAME'
  1000. '--keep-global-symbol=SYMBOLNAME'
  1001. Keep only symbol SYMBOLNAME global. Make all other symbols local
  1002. to the file, so that they are not visible externally. This option
  1003. may be given more than once. Note: this option cannot be used in
  1004. conjunction with the '--globalize-symbol' or '--globalize-symbols'
  1005. options.
  1006. '--localize-hidden'
  1007. In an ELF object, mark all symbols that have hidden or internal
  1008. visibility as local. This option applies on top of symbol-specific
  1009. localization options such as '-L'.
  1010. '-L SYMBOLNAME'
  1011. '--localize-symbol=SYMBOLNAME'
  1012. Convert a global or weak symbol called SYMBOLNAME into a local
  1013. symbol, so that it is not visible externally. This option may be
  1014. given more than once. Note - unique symbols are not converted.
  1015. '-W SYMBOLNAME'
  1016. '--weaken-symbol=SYMBOLNAME'
  1017. Make symbol SYMBOLNAME weak. This option may be given more than
  1018. once.
  1019. '--globalize-symbol=SYMBOLNAME'
  1020. Give symbol SYMBOLNAME global scoping so that it is visible outside
  1021. of the file in which it is defined. This option may be given more
  1022. than once. Note: this option cannot be used in conjunction with
  1023. the '-G' or '--keep-global-symbol' options.
  1024. '-w'
  1025. '--wildcard'
  1026. Permit regular expressions in SYMBOLNAMEs used in other command
  1027. line options. The question mark (?), asterisk (*), backslash (\)
  1028. and square brackets ([]) operators can be used anywhere in the
  1029. symbol name. If the first character of the symbol name is the
  1030. exclamation point (!) then the sense of the switch is reversed for
  1031. that symbol. For example:
  1032. -w -W !foo -W fo*
  1033. would cause objcopy to weaken all symbols that start with "fo"
  1034. except for the symbol "foo".
  1035. '-x'
  1036. '--discard-all'
  1037. Do not copy non-global symbols from the source file.
  1038. '-X'
  1039. '--discard-locals'
  1040. Do not copy compiler-generated local symbols. (These usually start
  1041. with 'L' or '.'.)
  1042. '-b BYTE'
  1043. '--byte=BYTE'
  1044. If interleaving has been enabled via the '--interleave' option then
  1045. start the range of bytes to keep at the BYTEth byte. BYTE can be
  1046. in the range from 0 to BREADTH-1, where BREADTH is the value given
  1047. by the '--interleave' option.
  1048. '-i [BREADTH]'
  1049. '--interleave[=BREADTH]'
  1050. Only copy a range out of every BREADTH bytes. (Header data is not
  1051. affected). Select which byte in the range begins the copy with the
  1052. '--byte' option. Select the width of the range with the
  1053. '--interleave-width' option.
  1054. This option is useful for creating files to program ROM. It is
  1055. typically used with an 'srec' output target. Note that 'objcopy'
  1056. will complain if you do not specify the '--byte' option as well.
  1057. The default interleave breadth is 4, so with '--byte' set to 0,
  1058. 'objcopy' would copy the first byte out of every four bytes from
  1059. the input to the output.
  1060. '--interleave-width=WIDTH'
  1061. When used with the '--interleave' option, copy WIDTH bytes at a
  1062. time. The start of the range of bytes to be copied is set by the
  1063. '--byte' option, and the extent of the range is set with the
  1064. '--interleave' option.
  1065. The default value for this option is 1. The value of WIDTH plus
  1066. the BYTE value set by the '--byte' option must not exceed the
  1067. interleave breadth set by the '--interleave' option.
  1068. This option can be used to create images for two 16-bit flashes
  1069. interleaved in a 32-bit bus by passing '-b 0 -i 4
  1070. --interleave-width=2' and '-b 2 -i 4 --interleave-width=2' to two
  1071. 'objcopy' commands. If the input was '12345678' then the outputs
  1072. would be '1256' and '3478' respectively.
  1073. '-p'
  1074. '--preserve-dates'
  1075. Set the access and modification dates of the output file to be the
  1076. same as those of the input file.
  1077. '-D'
  1078. '--enable-deterministic-archives'
  1079. Operate in _deterministic_ mode. When copying archive members and
  1080. writing the archive index, use zero for UIDs, GIDs, timestamps, and
  1081. use consistent file modes for all files.
  1082. If 'binutils' was configured with
  1083. '--enable-deterministic-archives', then this mode is on by default.
  1084. It can be disabled with the '-U' option, below.
  1085. '-U'
  1086. '--disable-deterministic-archives'
  1087. Do _not_ operate in _deterministic_ mode. This is the inverse of
  1088. the '-D' option, above: when copying archive members and writing
  1089. the archive index, use their actual UID, GID, timestamp, and file
  1090. mode values.
  1091. This is the default unless 'binutils' was configured with
  1092. '--enable-deterministic-archives'.
  1093. '--debugging'
  1094. Convert debugging information, if possible. This is not the
  1095. default because only certain debugging formats are supported, and
  1096. the conversion process can be time consuming.
  1097. '--gap-fill VAL'
  1098. Fill gaps between sections with VAL. This operation applies to the
  1099. _load address_ (LMA) of the sections. It is done by increasing the
  1100. size of the section with the lower address, and filling in the
  1101. extra space created with VAL.
  1102. '--pad-to ADDRESS'
  1103. Pad the output file up to the load address ADDRESS. This is done
  1104. by increasing the size of the last section. The extra space is
  1105. filled in with the value specified by '--gap-fill' (default zero).
  1106. '--set-start VAL'
  1107. Set the start address (also known as the entry address) of the new
  1108. file to VAL. Not all object file formats support setting the start
  1109. address.
  1110. '--change-start INCR'
  1111. '--adjust-start INCR'
  1112. Change the start address (also known as the entry address) by
  1113. adding INCR. Not all object file formats support setting the start
  1114. address.
  1115. '--change-addresses INCR'
  1116. '--adjust-vma INCR'
  1117. Change the VMA and LMA addresses of all sections, as well as the
  1118. start address, by adding INCR. Some object file formats do not
  1119. permit section addresses to be changed arbitrarily. Note that this
  1120. does not relocate the sections; if the program expects sections to
  1121. be loaded at a certain address, and this option is used to change
  1122. the sections such that they are loaded at a different address, the
  1123. program may fail.
  1124. '--change-section-address SECTIONPATTERN{=,+,-}VAL'
  1125. '--adjust-section-vma SECTIONPATTERN{=,+,-}VAL'
  1126. Set or change both the VMA address and the LMA address of any
  1127. section matching SECTIONPATTERN. If '=' is used, the section
  1128. address is set to VAL. Otherwise, VAL is added to or subtracted
  1129. from the section address. See the comments under
  1130. '--change-addresses', above. If SECTIONPATTERN does not match any
  1131. sections in the input file, a warning will be issued, unless
  1132. '--no-change-warnings' is used.
  1133. '--change-section-lma SECTIONPATTERN{=,+,-}VAL'
  1134. Set or change the LMA address of any sections matching
  1135. SECTIONPATTERN. The LMA address is the address where the section
  1136. will be loaded into memory at program load time. Normally this is
  1137. the same as the VMA address, which is the address of the section at
  1138. program run time, but on some systems, especially those where a
  1139. program is held in ROM, the two can be different. If '=' is used,
  1140. the section address is set to VAL. Otherwise, VAL is added to or
  1141. subtracted from the section address. See the comments under
  1142. '--change-addresses', above. If SECTIONPATTERN does not match any
  1143. sections in the input file, a warning will be issued, unless
  1144. '--no-change-warnings' is used.
  1145. '--change-section-vma SECTIONPATTERN{=,+,-}VAL'
  1146. Set or change the VMA address of any section matching
  1147. SECTIONPATTERN. The VMA address is the address where the section
  1148. will be located once the program has started executing. Normally
  1149. this is the same as the LMA address, which is the address where the
  1150. section will be loaded into memory, but on some systems, especially
  1151. those where a program is held in ROM, the two can be different. If
  1152. '=' is used, the section address is set to VAL. Otherwise, VAL is
  1153. added to or subtracted from the section address. See the comments
  1154. under '--change-addresses', above. If SECTIONPATTERN does not
  1155. match any sections in the input file, a warning will be issued,
  1156. unless '--no-change-warnings' is used.
  1157. '--change-warnings'
  1158. '--adjust-warnings'
  1159. If '--change-section-address' or '--change-section-lma' or
  1160. '--change-section-vma' is used, and the section pattern does not
  1161. match any sections, issue a warning. This is the default.
  1162. '--no-change-warnings'
  1163. '--no-adjust-warnings'
  1164. Do not issue a warning if '--change-section-address' or
  1165. '--adjust-section-lma' or '--adjust-section-vma' is used, even if
  1166. the section pattern does not match any sections.
  1167. '--set-section-flags SECTIONPATTERN=FLAGS'
  1168. Set the flags for any sections matching SECTIONPATTERN. The FLAGS
  1169. argument is a comma separated string of flag names. The recognized
  1170. names are 'alloc', 'contents', 'load', 'noload', 'readonly',
  1171. 'code', 'data', 'rom', 'exclude', 'share', and 'debug'. You can
  1172. set the 'contents' flag for a section which does not have contents,
  1173. but it is not meaningful to clear the 'contents' flag of a section
  1174. which does have contents-just remove the section instead. Not all
  1175. flags are meaningful for all object file formats. In particular
  1176. the 'share' flag is only meaningful for COFF format files and not
  1177. for ELF format files.
  1178. '--set-section-alignment SECTIONPATTERN=ALIGN'
  1179. Set the alignment for any sections matching SECTIONPATTERN. ALIGN
  1180. specifies the alignment in bytes and must be a power of two, i.e.
  1181. 1, 2, 4, 8....
  1182. '--add-section SECTIONNAME=FILENAME'
  1183. Add a new section named SECTIONNAME while copying the file. The
  1184. contents of the new section are taken from the file FILENAME. The
  1185. size of the section will be the size of the file. This option only
  1186. works on file formats which can support sections with arbitrary
  1187. names. Note - it may be necessary to use the '--set-section-flags'
  1188. option to set the attributes of the newly created section.
  1189. '--dump-section SECTIONNAME=FILENAME'
  1190. Place the contents of section named SECTIONNAME into the file
  1191. FILENAME, overwriting any contents that may have been there
  1192. previously. This option is the inverse of '--add-section'. This
  1193. option is similar to the '--only-section' option except that it
  1194. does not create a formatted file, it just dumps the contents as raw
  1195. binary data, without applying any relocations. The option can be
  1196. specified more than once.
  1197. '--update-section SECTIONNAME=FILENAME'
  1198. Replace the existing contents of a section named SECTIONNAME with
  1199. the contents of file FILENAME. The size of the section will be
  1200. adjusted to the size of the file. The section flags for
  1201. SECTIONNAME will be unchanged. For ELF format files the section to
  1202. segment mapping will also remain unchanged, something which is not
  1203. possible using '--remove-section' followed by '--add-section'. The
  1204. option can be specified more than once.
  1205. Note - it is possible to use '--rename-section' and
  1206. '--update-section' to both update and rename a section from one
  1207. command line. In this case, pass the original section name to
  1208. '--update-section', and the original and new section names to
  1209. '--rename-section'.
  1210. '--add-symbol NAME=[SECTION:]VALUE[,FLAGS]'
  1211. Add a new symbol named NAME while copying the file. This option
  1212. may be specified multiple times. If the SECTION is given, the
  1213. symbol will be associated with and relative to that section,
  1214. otherwise it will be an ABS symbol. Specifying an undefined
  1215. section will result in a fatal error. There is no check for the
  1216. value, it will be taken as specified. Symbol flags can be
  1217. specified and not all flags will be meaningful for all object file
  1218. formats. By default, the symbol will be global. The special flag
  1219. 'before=OTHERSYM' will insert the new symbol in front of the
  1220. specified OTHERSYM, otherwise the symbol(s) will be added at the
  1221. end of the symbol table in the order they appear.
  1222. '--rename-section OLDNAME=NEWNAME[,FLAGS]'
  1223. Rename a section from OLDNAME to NEWNAME, optionally changing the
  1224. section's flags to FLAGS in the process. This has the advantage
  1225. over using a linker script to perform the rename in that the output
  1226. stays as an object file and does not become a linked executable.
  1227. This option accepts the same set of flags as the
  1228. '--sect-section-flags' option.
  1229. This option is particularly helpful when the input format is
  1230. binary, since this will always create a section called .data. If
  1231. for example, you wanted instead to create a section called .rodata
  1232. containing binary data you could use the following command line to
  1233. achieve it:
  1234. objcopy -I binary -O <output_format> -B <architecture> \
  1235. --rename-section .data=.rodata,alloc,load,readonly,data,contents \
  1236. <input_binary_file> <output_object_file>
  1237. '--long-section-names {enable,disable,keep}'
  1238. Controls the handling of long section names when processing 'COFF'
  1239. and 'PE-COFF' object formats. The default behaviour, 'keep', is to
  1240. preserve long section names if any are present in the input file.
  1241. The 'enable' and 'disable' options forcibly enable or disable the
  1242. use of long section names in the output object; when 'disable' is
  1243. in effect, any long section names in the input object will be
  1244. truncated. The 'enable' option will only emit long section names
  1245. if any are present in the inputs; this is mostly the same as
  1246. 'keep', but it is left undefined whether the 'enable' option might
  1247. force the creation of an empty string table in the output file.
  1248. '--change-leading-char'
  1249. Some object file formats use special characters at the start of
  1250. symbols. The most common such character is underscore, which
  1251. compilers often add before every symbol. This option tells
  1252. 'objcopy' to change the leading character of every symbol when it
  1253. converts between object file formats. If the object file formats
  1254. use the same leading character, this option has no effect.
  1255. Otherwise, it will add a character, or remove a character, or
  1256. change a character, as appropriate.
  1257. '--remove-leading-char'
  1258. If the first character of a global symbol is a special symbol
  1259. leading character used by the object file format, remove the
  1260. character. The most common symbol leading character is underscore.
  1261. This option will remove a leading underscore from all global
  1262. symbols. This can be useful if you want to link together objects
  1263. of different file formats with different conventions for symbol
  1264. names. This is different from '--change-leading-char' because it
  1265. always changes the symbol name when appropriate, regardless of the
  1266. object file format of the output file.
  1267. '--reverse-bytes=NUM'
  1268. Reverse the bytes in a section with output contents. A section
  1269. length must be evenly divisible by the value given in order for the
  1270. swap to be able to take place. Reversing takes place before the
  1271. interleaving is performed.
  1272. This option is used typically in generating ROM images for
  1273. problematic target systems. For example, on some target boards,
  1274. the 32-bit words fetched from 8-bit ROMs are re-assembled in
  1275. little-endian byte order regardless of the CPU byte order.
  1276. Depending on the programming model, the endianness of the ROM may
  1277. need to be modified.
  1278. Consider a simple file with a section containing the following
  1279. eight bytes: '12345678'.
  1280. Using '--reverse-bytes=2' for the above example, the bytes in the
  1281. output file would be ordered '21436587'.
  1282. Using '--reverse-bytes=4' for the above example, the bytes in the
  1283. output file would be ordered '43218765'.
  1284. By using '--reverse-bytes=2' for the above example, followed by
  1285. '--reverse-bytes=4' on the output file, the bytes in the second
  1286. output file would be ordered '34127856'.
  1287. '--srec-len=IVAL'
  1288. Meaningful only for srec output. Set the maximum length of the
  1289. Srecords being produced to IVAL. This length covers both address,
  1290. data and crc fields.
  1291. '--srec-forceS3'
  1292. Meaningful only for srec output. Avoid generation of S1/S2
  1293. records, creating S3-only record format.
  1294. '--redefine-sym OLD=NEW'
  1295. Change the name of a symbol OLD, to NEW. This can be useful when
  1296. one is trying link two things together for which you have no
  1297. source, and there are name collisions.
  1298. '--redefine-syms=FILENAME'
  1299. Apply '--redefine-sym' to each symbol pair "OLD NEW" listed in the
  1300. file FILENAME. FILENAME is simply a flat file, with one symbol
  1301. pair per line. Line comments may be introduced by the hash
  1302. character. This option may be given more than once.
  1303. '--weaken'
  1304. Change all global symbols in the file to be weak. This can be
  1305. useful when building an object which will be linked against other
  1306. objects using the '-R' option to the linker. This option is only
  1307. effective when using an object file format which supports weak
  1308. symbols.
  1309. '--keep-symbols=FILENAME'
  1310. Apply '--keep-symbol' option to each symbol listed in the file
  1311. FILENAME. FILENAME is simply a flat file, with one symbol name per
  1312. line. Line comments may be introduced by the hash character. This
  1313. option may be given more than once.
  1314. '--strip-symbols=FILENAME'
  1315. Apply '--strip-symbol' option to each symbol listed in the file
  1316. FILENAME. FILENAME is simply a flat file, with one symbol name per
  1317. line. Line comments may be introduced by the hash character. This
  1318. option may be given more than once.
  1319. '--strip-unneeded-symbols=FILENAME'
  1320. Apply '--strip-unneeded-symbol' option to each symbol listed in the
  1321. file FILENAME. FILENAME is simply a flat file, with one symbol
  1322. name per line. Line comments may be introduced by the hash
  1323. character. This option may be given more than once.
  1324. '--keep-global-symbols=FILENAME'
  1325. Apply '--keep-global-symbol' option to each symbol listed in the
  1326. file FILENAME. FILENAME is simply a flat file, with one symbol
  1327. name per line. Line comments may be introduced by the hash
  1328. character. This option may be given more than once.
  1329. '--localize-symbols=FILENAME'
  1330. Apply '--localize-symbol' option to each symbol listed in the file
  1331. FILENAME. FILENAME is simply a flat file, with one symbol name per
  1332. line. Line comments may be introduced by the hash character. This
  1333. option may be given more than once.
  1334. '--globalize-symbols=FILENAME'
  1335. Apply '--globalize-symbol' option to each symbol listed in the file
  1336. FILENAME. FILENAME is simply a flat file, with one symbol name per
  1337. line. Line comments may be introduced by the hash character. This
  1338. option may be given more than once. Note: this option cannot be
  1339. used in conjunction with the '-G' or '--keep-global-symbol'
  1340. options.
  1341. '--weaken-symbols=FILENAME'
  1342. Apply '--weaken-symbol' option to each symbol listed in the file
  1343. FILENAME. FILENAME is simply a flat file, with one symbol name per
  1344. line. Line comments may be introduced by the hash character. This
  1345. option may be given more than once.
  1346. '--alt-machine-code=INDEX'
  1347. If the output architecture has alternate machine codes, use the
  1348. INDEXth code instead of the default one. This is useful in case a
  1349. machine is assigned an official code and the tool-chain adopts the
  1350. new code, but other applications still depend on the original code
  1351. being used. For ELF based architectures if the INDEX alternative
  1352. does not exist then the value is treated as an absolute number to
  1353. be stored in the e_machine field of the ELF header.
  1354. '--writable-text'
  1355. Mark the output text as writable. This option isn't meaningful for
  1356. all object file formats.
  1357. '--readonly-text'
  1358. Make the output text write protected. This option isn't meaningful
  1359. for all object file formats.
  1360. '--pure'
  1361. Mark the output file as demand paged. This option isn't meaningful
  1362. for all object file formats.
  1363. '--impure'
  1364. Mark the output file as impure. This option isn't meaningful for
  1365. all object file formats.
  1366. '--prefix-symbols=STRING'
  1367. Prefix all symbols in the output file with STRING.
  1368. '--prefix-sections=STRING'
  1369. Prefix all section names in the output file with STRING.
  1370. '--prefix-alloc-sections=STRING'
  1371. Prefix all the names of all allocated sections in the output file
  1372. with STRING.
  1373. '--add-gnu-debuglink=PATH-TO-FILE'
  1374. Creates a .gnu_debuglink section which contains a reference to
  1375. PATH-TO-FILE and adds it to the output file. Note: the file at
  1376. PATH-TO-FILE must exist. Part of the process of adding the
  1377. .gnu_debuglink section involves embedding a checksum of the
  1378. contents of the debug info file into the section.
  1379. If the debug info file is built in one location but it is going to
  1380. be installed at a later time into a different location then do not
  1381. use the path to the installed location. The '--add-gnu-debuglink'
  1382. option will fail because the installed file does not exist yet.
  1383. Instead put the debug info file in the current directory and use
  1384. the '--add-gnu-debuglink' option without any directory components,
  1385. like this:
  1386. objcopy --add-gnu-debuglink=foo.debug
  1387. At debug time the debugger will attempt to look for the separate
  1388. debug info file in a set of known locations. The exact set of
  1389. these locations varies depending upon the distribution being used,
  1390. but it typically includes:
  1391. '* The same directory as the executable.'
  1392. '* A sub-directory of the directory containing the executable'
  1393. called .debug
  1394. '* A global debug directory such as /usr/lib/debug.'
  1395. As long as the debug info file has been installed into one of these
  1396. locations before the debugger is run everything should work
  1397. correctly.
  1398. '--keep-file-symbols'
  1399. When stripping a file, perhaps with '--strip-debug' or
  1400. '--strip-unneeded', retain any symbols specifying source file
  1401. names, which would otherwise get stripped.
  1402. '--only-keep-debug'
  1403. Strip a file, removing contents of any sections that would not be
  1404. stripped by '--strip-debug' and leaving the debugging sections
  1405. intact. In ELF files, this preserves all note sections in the
  1406. output.
  1407. Note - the section headers of the stripped sections are preserved,
  1408. including their sizes, but the contents of the section are
  1409. discarded. The section headers are preserved so that other tools
  1410. can match up the debuginfo file with the real executable, even if
  1411. that executable has been relocated to a different address space.
  1412. The intention is that this option will be used in conjunction with
  1413. '--add-gnu-debuglink' to create a two part executable. One a
  1414. stripped binary which will occupy less space in RAM and in a
  1415. distribution and the second a debugging information file which is
  1416. only needed if debugging abilities are required. The suggested
  1417. procedure to create these files is as follows:
  1418. 1. Link the executable as normal. Assuming that it is called
  1419. 'foo' then...
  1420. 2. Run 'objcopy --only-keep-debug foo foo.dbg' to create a file
  1421. containing the debugging info.
  1422. 3. Run 'objcopy --strip-debug foo' to create a stripped
  1423. executable.
  1424. 4. Run 'objcopy --add-gnu-debuglink=foo.dbg foo' to add a link to
  1425. the debugging info into the stripped executable.
  1426. Note--the choice of '.dbg' as an extension for the debug info file
  1427. is arbitrary. Also the '--only-keep-debug' step is optional. You
  1428. could instead do this:
  1429. 1. Link the executable as normal.
  1430. 2. Copy 'foo' to 'foo.full'
  1431. 3. Run 'objcopy --strip-debug foo'
  1432. 4. Run 'objcopy --add-gnu-debuglink=foo.full foo'
  1433. i.e., the file pointed to by the '--add-gnu-debuglink' can be the
  1434. full executable. It does not have to be a file created by the
  1435. '--only-keep-debug' switch.
  1436. Note--this switch is only intended for use on fully linked files.
  1437. It does not make sense to use it on object files where the
  1438. debugging information may be incomplete. Besides the gnu_debuglink
  1439. feature currently only supports the presence of one filename
  1440. containing debugging information, not multiple filenames on a
  1441. one-per-object-file basis.
  1442. '--strip-dwo'
  1443. Remove the contents of all DWARF .dwo sections, leaving the
  1444. remaining debugging sections and all symbols intact. This option
  1445. is intended for use by the compiler as part of the '-gsplit-dwarf'
  1446. option, which splits debug information between the .o file and a
  1447. separate .dwo file. The compiler generates all debug information
  1448. in the same file, then uses the '--extract-dwo' option to copy the
  1449. .dwo sections to the .dwo file, then the '--strip-dwo' option to
  1450. remove those sections from the original .o file.
  1451. '--extract-dwo'
  1452. Extract the contents of all DWARF .dwo sections. See the
  1453. '--strip-dwo' option for more information.
  1454. '--file-alignment NUM'
  1455. Specify the file alignment. Sections in the file will always begin
  1456. at file offsets which are multiples of this number. This defaults
  1457. to 512. [This option is specific to PE targets.]
  1458. '--heap RESERVE'
  1459. '--heap RESERVE,COMMIT'
  1460. Specify the number of bytes of memory to reserve (and optionally
  1461. commit) to be used as heap for this program. [This option is
  1462. specific to PE targets.]
  1463. '--image-base VALUE'
  1464. Use VALUE as the base address of your program or dll. This is the
  1465. lowest memory location that will be used when your program or dll
  1466. is loaded. To reduce the need to relocate and improve performance
  1467. of your dlls, each should have a unique base address and not
  1468. overlap any other dlls. The default is 0x400000 for executables,
  1469. and 0x10000000 for dlls. [This option is specific to PE targets.]
  1470. '--section-alignment NUM'
  1471. Sets the section alignment field in the PE header. Sections in
  1472. memory will always begin at addresses which are a multiple of this
  1473. number. Defaults to 0x1000. [This option is specific to PE
  1474. targets.]
  1475. '--stack RESERVE'
  1476. '--stack RESERVE,COMMIT'
  1477. Specify the number of bytes of memory to reserve (and optionally
  1478. commit) to be used as stack for this program. [This option is
  1479. specific to PE targets.]
  1480. '--subsystem WHICH'
  1481. '--subsystem WHICH:MAJOR'
  1482. '--subsystem WHICH:MAJOR.MINOR'
  1483. Specifies the subsystem under which your program will execute. The
  1484. legal values for WHICH are 'native', 'windows', 'console', 'posix',
  1485. 'efi-app', 'efi-bsd', 'efi-rtd', 'sal-rtd', and 'xbox'. You may
  1486. optionally set the subsystem version also. Numeric values are also
  1487. accepted for WHICH. [This option is specific to PE targets.]
  1488. '--extract-symbol'
  1489. Keep the file's section flags and symbols but remove all section
  1490. data. Specifically, the option:
  1491. * removes the contents of all sections;
  1492. * sets the size of every section to zero; and
  1493. * sets the file's start address to zero.
  1494. This option is used to build a '.sym' file for a VxWorks kernel.
  1495. It can also be a useful way of reducing the size of a
  1496. '--just-symbols' linker input file.
  1497. '--compress-debug-sections'
  1498. Compress DWARF debug sections using zlib with SHF_COMPRESSED from
  1499. the ELF ABI. Note - if compression would actually make a section
  1500. _larger_, then it is not compressed.
  1501. '--compress-debug-sections=none'
  1502. '--compress-debug-sections=zlib'
  1503. '--compress-debug-sections=zlib-gnu'
  1504. '--compress-debug-sections=zlib-gabi'
  1505. For ELF files, these options control how DWARF debug sections are
  1506. compressed. '--compress-debug-sections=none' is equivalent to
  1507. '--decompress-debug-sections'. '--compress-debug-sections=zlib'
  1508. and '--compress-debug-sections=zlib-gabi' are equivalent to
  1509. '--compress-debug-sections'. '--compress-debug-sections=zlib-gnu'
  1510. compresses DWARF debug sections using zlib. The debug sections are
  1511. renamed to begin with '.zdebug' instead of '.debug'. Note - if
  1512. compression would actually make a section _larger_, then it is not
  1513. compressed nor renamed.
  1514. '--decompress-debug-sections'
  1515. Decompress DWARF debug sections using zlib. The original section
  1516. names of the compressed sections are restored.
  1517. '--elf-stt-common=yes'
  1518. '--elf-stt-common=no'
  1519. For ELF files, these options control whether common symbols should
  1520. be converted to the 'STT_COMMON' or 'STT_OBJECT' type.
  1521. '--elf-stt-common=yes' converts common symbol type to 'STT_COMMON'.
  1522. '--elf-stt-common=no' converts common symbol type to 'STT_OBJECT'.
  1523. '--merge-notes'
  1524. '--no-merge-notes'
  1525. For ELF files, attempt (or do not attempt) to reduce the size of
  1526. any SHT_NOTE type sections by removing duplicate notes.
  1527. '-V'
  1528. '--version'
  1529. Show the version number of 'objcopy'.
  1530. '--verilog-data-width=BYTES'
  1531. For Verilog output, this options controls the number of bytes
  1532. converted for each output data element. The input target controls
  1533. the endianness of the conversion.
  1534. '-v'
  1535. '--verbose'
  1536. Verbose output: list all object files modified. In the case of
  1537. archives, 'objcopy -V' lists all members of the archive.
  1538. '--help'
  1539. Show a summary of the options to 'objcopy'.
  1540. '--info'
  1541. Display a list showing all architectures and object formats
  1542. available.
  1543. 
  1544. File: binutils.info, Node: objdump, Next: ranlib, Prev: objcopy, Up: Top
  1545. 4 objdump
  1546. *********
  1547. objdump [-a|--archive-headers]
  1548. [-b BFDNAME|--target=BFDNAME]
  1549. [-C|--demangle[=STYLE] ]
  1550. [-d|--disassemble[=SYMBOL]]
  1551. [-D|--disassemble-all]
  1552. [-z|--disassemble-zeroes]
  1553. [-EB|-EL|--endian={big | little }]
  1554. [-f|--file-headers]
  1555. [-F|--file-offsets]
  1556. [--file-start-context]
  1557. [-g|--debugging]
  1558. [-e|--debugging-tags]
  1559. [-h|--section-headers|--headers]
  1560. [-i|--info]
  1561. [-j SECTION|--section=SECTION]
  1562. [-l|--line-numbers]
  1563. [-S|--source]
  1564. [--source-comment[=TEXT]]
  1565. [-m MACHINE|--architecture=MACHINE]
  1566. [-M OPTIONS|--disassembler-options=OPTIONS]
  1567. [-p|--private-headers]
  1568. [-P OPTIONS|--private=OPTIONS]
  1569. [-r|--reloc]
  1570. [-R|--dynamic-reloc]
  1571. [-s|--full-contents]
  1572. [-W[lLiaprmfFsoORtUuTgAckK]|
  1573. --dwarf[=rawline,=decodedline,=info,=abbrev,=pubnames,=aranges,=macro,=frames,=frames-interp,=str,=str-offsets,=loc,=Ranges,=pubtypes,=trace_info,=trace_abbrev,=trace_aranges,=gdb_index,=addr,=cu_index,=links,=follow-links]]
  1574. [--ctf=SECTION]
  1575. [-G|--stabs]
  1576. [-t|--syms]
  1577. [-T|--dynamic-syms]
  1578. [-x|--all-headers]
  1579. [-w|--wide]
  1580. [--start-address=ADDRESS]
  1581. [--stop-address=ADDRESS]
  1582. [--no-addresses]
  1583. [--prefix-addresses]
  1584. [--[no-]show-raw-insn]
  1585. [--adjust-vma=OFFSET]
  1586. [--dwarf-depth=N]
  1587. [--dwarf-start=N]
  1588. [--ctf-parent=SECTION]
  1589. [--no-recurse-limit|--recurse-limit]
  1590. [--special-syms]
  1591. [--prefix=PREFIX]
  1592. [--prefix-strip=LEVEL]
  1593. [--insn-width=WIDTH]
  1594. [--visualize-jumps[=color|=extended-color|=off]
  1595. [-V|--version]
  1596. [-H|--help]
  1597. OBJFILE...
  1598. 'objdump' displays information about one or more object files. The
  1599. options control what particular information to display. This
  1600. information is mostly useful to programmers who are working on the
  1601. compilation tools, as opposed to programmers who just want their program
  1602. to compile and work.
  1603. OBJFILE... are the object files to be examined. When you specify
  1604. archives, 'objdump' shows information on each of the member object
  1605. files.
  1606. The long and short forms of options, shown here as alternatives, are
  1607. equivalent. At least one option from the list
  1608. '-a,-d,-D,-e,-f,-g,-G,-h,-H,-p,-P,-r,-R,-s,-S,-t,-T,-V,-x' must be
  1609. given.
  1610. '-a'
  1611. '--archive-header'
  1612. If any of the OBJFILE files are archives, display the archive
  1613. header information (in a format similar to 'ls -l'). Besides the
  1614. information you could list with 'ar tv', 'objdump -a' shows the
  1615. object file format of each archive member.
  1616. '--adjust-vma=OFFSET'
  1617. When dumping information, first add OFFSET to all the section
  1618. addresses. This is useful if the section addresses do not
  1619. correspond to the symbol table, which can happen when putting
  1620. sections at particular addresses when using a format which can not
  1621. represent section addresses, such as a.out.
  1622. '-b BFDNAME'
  1623. '--target=BFDNAME'
  1624. Specify that the object-code format for the object files is
  1625. BFDNAME. This option may not be necessary; OBJDUMP can
  1626. automatically recognize many formats.
  1627. For example,
  1628. objdump -b oasys -m vax -h fu.o
  1629. displays summary information from the section headers ('-h') of
  1630. 'fu.o', which is explicitly identified ('-m') as a VAX object file
  1631. in the format produced by Oasys compilers. You can list the
  1632. formats available with the '-i' option. *Note Target Selection::,
  1633. for more information.
  1634. '-C'
  1635. '--demangle[=STYLE]'
  1636. Decode ("demangle") low-level symbol names into user-level names.
  1637. Besides removing any initial underscore prepended by the system,
  1638. this makes C++ function names readable. Different compilers have
  1639. different mangling styles. The optional demangling style argument
  1640. can be used to choose an appropriate demangling style for your
  1641. compiler. *Note c++filt::, for more information on demangling.
  1642. '--recurse-limit'
  1643. '--no-recurse-limit'
  1644. '--recursion-limit'
  1645. '--no-recursion-limit'
  1646. Enables or disables a limit on the amount of recursion performed
  1647. whilst demangling strings. Since the name mangling formats allow
  1648. for an infinite level of recursion it is possible to create strings
  1649. whose decoding will exhaust the amount of stack space available on
  1650. the host machine, triggering a memory fault. The limit tries to
  1651. prevent this from happening by restricting recursion to 2048 levels
  1652. of nesting.
  1653. The default is for this limit to be enabled, but disabling it may
  1654. be necessary in order to demangle truly complicated names. Note
  1655. however that if the recursion limit is disabled then stack
  1656. exhaustion is possible and any bug reports about such an event will
  1657. be rejected.
  1658. '-g'
  1659. '--debugging'
  1660. Display debugging information. This attempts to parse STABS
  1661. debugging format information stored in the file and print it out
  1662. using a C like syntax. If no STABS debugging was found this option
  1663. falls back on the '-W' option to print any DWARF information in the
  1664. file.
  1665. '-e'
  1666. '--debugging-tags'
  1667. Like '-g', but the information is generated in a format compatible
  1668. with ctags tool.
  1669. '-d'
  1670. '--disassemble'
  1671. '--disassemble=SYMBOL'
  1672. Display the assembler mnemonics for the machine instructions from
  1673. the input file. This option only disassembles those sections which
  1674. are expected to contain instructions. If the optional SYMBOL
  1675. argument is given, then display the assembler mnemonics starting at
  1676. SYMBOL. If SYMBOL is a function name then disassembly will stop at
  1677. the end of the function, otherwise it will stop when the next
  1678. symbol is encountered. If there are no matches for SYMBOL then
  1679. nothing will be displayed.
  1680. Note if the '--dwarf=follow-links' option has also been enabled
  1681. then any symbol tables in linked debug info files will be read in
  1682. and used when disassembling.
  1683. '-D'
  1684. '--disassemble-all'
  1685. Like '-d', but disassemble the contents of all sections, not just
  1686. those expected to contain instructions.
  1687. This option also has a subtle effect on the disassembly of
  1688. instructions in code sections. When option '-d' is in effect
  1689. objdump will assume that any symbols present in a code section
  1690. occur on the boundary between instructions and it will refuse to
  1691. disassemble across such a boundary. When option '-D' is in effect
  1692. however this assumption is supressed. This means that it is
  1693. possible for the output of '-d' and '-D' to differ if, for example,
  1694. data is stored in code sections.
  1695. If the target is an ARM architecture this switch also has the
  1696. effect of forcing the disassembler to decode pieces of data found
  1697. in code sections as if they were instructions.
  1698. Note if the '--dwarf=follow-links' option has also been enabled
  1699. then any symbol tables in linked debug info files will be read in
  1700. and used when disassembling.
  1701. '--no-addresses'
  1702. When disassembling, don't print addresses on each line or for
  1703. symbols and relocation offsets. In combination with
  1704. '--no-show-raw-insn' this may be useful for comparing compiler
  1705. output.
  1706. '--prefix-addresses'
  1707. When disassembling, print the complete address on each line. This
  1708. is the older disassembly format.
  1709. '-EB'
  1710. '-EL'
  1711. '--endian={big|little}'
  1712. Specify the endianness of the object files. This only affects
  1713. disassembly. This can be useful when disassembling a file format
  1714. which does not describe endianness information, such as S-records.
  1715. '-f'
  1716. '--file-headers'
  1717. Display summary information from the overall header of each of the
  1718. OBJFILE files.
  1719. '-F'
  1720. '--file-offsets'
  1721. When disassembling sections, whenever a symbol is displayed, also
  1722. display the file offset of the region of data that is about to be
  1723. dumped. If zeroes are being skipped, then when disassembly
  1724. resumes, tell the user how many zeroes were skipped and the file
  1725. offset of the location from where the disassembly resumes. When
  1726. dumping sections, display the file offset of the location from
  1727. where the dump starts.
  1728. '--file-start-context'
  1729. Specify that when displaying interlisted source code/disassembly
  1730. (assumes '-S') from a file that has not yet been displayed, extend
  1731. the context to the start of the file.
  1732. '-h'
  1733. '--section-headers'
  1734. '--headers'
  1735. Display summary information from the section headers of the object
  1736. file.
  1737. File segments may be relocated to nonstandard addresses, for
  1738. example by using the '-Ttext', '-Tdata', or '-Tbss' options to
  1739. 'ld'. However, some object file formats, such as a.out, do not
  1740. store the starting address of the file segments. In those
  1741. situations, although 'ld' relocates the sections correctly, using
  1742. 'objdump -h' to list the file section headers cannot show the
  1743. correct addresses. Instead, it shows the usual addresses, which
  1744. are implicit for the target.
  1745. Note, in some cases it is possible for a section to have both the
  1746. READONLY and the NOREAD attributes set. In such cases the NOREAD
  1747. attribute takes precedence, but 'objdump' will report both since
  1748. the exact setting of the flag bits might be important.
  1749. '-H'
  1750. '--help'
  1751. Print a summary of the options to 'objdump' and exit.
  1752. '-i'
  1753. '--info'
  1754. Display a list showing all architectures and object formats
  1755. available for specification with '-b' or '-m'.
  1756. '-j NAME'
  1757. '--section=NAME'
  1758. Display information only for section NAME.
  1759. '-l'
  1760. '--line-numbers'
  1761. Label the display (using debugging information) with the filename
  1762. and source line numbers corresponding to the object code or relocs
  1763. shown. Only useful with '-d', '-D', or '-r'.
  1764. '-m MACHINE'
  1765. '--architecture=MACHINE'
  1766. Specify the architecture to use when disassembling object files.
  1767. This can be useful when disassembling object files which do not
  1768. describe architecture information, such as S-records. You can list
  1769. the available architectures with the '-i' option.
  1770. If the target is an ARM architecture then this switch has an
  1771. additional effect. It restricts the disassembly to only those
  1772. instructions supported by the architecture specified by MACHINE.
  1773. If it is necessary to use this switch because the input file does
  1774. not contain any architecture information, but it is also desired to
  1775. disassemble all the instructions use '-marm'.
  1776. '-M OPTIONS'
  1777. '--disassembler-options=OPTIONS'
  1778. Pass target specific information to the disassembler. Only
  1779. supported on some targets. If it is necessary to specify more than
  1780. one disassembler option then multiple '-M' options can be used or
  1781. can be placed together into a comma separated list.
  1782. For ARC, 'dsp' controls the printing of DSP instructions, 'spfp'
  1783. selects the printing of FPX single precision FP instructions,
  1784. 'dpfp' selects the printing of FPX double precision FP
  1785. instructions, 'quarkse_em' selects the printing of special
  1786. QuarkSE-EM instructions, 'fpuda' selects the printing of double
  1787. precision assist instructions, 'fpus' selects the printing of FPU
  1788. single precision FP instructions, while 'fpud' selects the printing
  1789. of FPU double precision FP instructions. Additionally, one can
  1790. choose to have all the immediates printed in hexadecimal using
  1791. 'hex'. By default, the short immediates are printed using the
  1792. decimal representation, while the long immediate values are printed
  1793. as hexadecimal.
  1794. 'cpu=...' allows one to enforce a particular ISA when disassembling
  1795. instructions, overriding the '-m' value or whatever is in the ELF
  1796. file. This might be useful to select ARC EM or HS ISA, because
  1797. architecture is same for those and disassembler relies on private
  1798. ELF header data to decide if code is for EM or HS. This option
  1799. might be specified multiple times - only the latest value will be
  1800. used. Valid values are same as for the assembler '-mcpu=...'
  1801. option.
  1802. If the target is an ARM architecture then this switch can be used
  1803. to select which register name set is used during disassembler.
  1804. Specifying '-M reg-names-std' (the default) will select the
  1805. register names as used in ARM's instruction set documentation, but
  1806. with register 13 called 'sp', register 14 called 'lr' and register
  1807. 15 called 'pc'. Specifying '-M reg-names-apcs' will select the
  1808. name set used by the ARM Procedure Call Standard, whilst specifying
  1809. '-M reg-names-raw' will just use 'r' followed by the register
  1810. number.
  1811. There are also two variants on the APCS register naming scheme
  1812. enabled by '-M reg-names-atpcs' and '-M reg-names-special-atpcs'
  1813. which use the ARM/Thumb Procedure Call Standard naming conventions.
  1814. (Either with the normal register names or the special register
  1815. names).
  1816. This option can also be used for ARM architectures to force the
  1817. disassembler to interpret all instructions as Thumb instructions by
  1818. using the switch '--disassembler-options=force-thumb'. This can be
  1819. useful when attempting to disassemble thumb code produced by other
  1820. compilers.
  1821. For AArch64 targets this switch can be used to set whether
  1822. instructions are disassembled as the most general instruction using
  1823. the '-M no-aliases' option or whether instruction notes should be
  1824. generated as comments in the disasssembly using '-M notes'.
  1825. For the x86, some of the options duplicate functions of the '-m'
  1826. switch, but allow finer grained control.
  1827. 'x86-64'
  1828. 'i386'
  1829. 'i8086'
  1830. Select disassembly for the given architecture.
  1831. 'intel'
  1832. 'att'
  1833. Select between intel syntax mode and AT&T syntax mode.
  1834. 'amd64'
  1835. 'intel64'
  1836. Select between AMD64 ISA and Intel64 ISA.
  1837. 'intel-mnemonic'
  1838. 'att-mnemonic'
  1839. Select between intel mnemonic mode and AT&T mnemonic mode.
  1840. Note: 'intel-mnemonic' implies 'intel' and 'att-mnemonic'
  1841. implies 'att'.
  1842. 'addr64'
  1843. 'addr32'
  1844. 'addr16'
  1845. 'data32'
  1846. 'data16'
  1847. Specify the default address size and operand size. These five
  1848. options will be overridden if 'x86-64', 'i386' or 'i8086'
  1849. appear later in the option string.
  1850. 'suffix'
  1851. When in AT&T mode and also for a limited set of instructions
  1852. when in Intel mode, instructs the disassembler to print a
  1853. mnemonic suffix even when the suffix could be inferred by the
  1854. operands or, for certain instructions, the execution mode's
  1855. defaults.
  1856. For PowerPC, the '-M' argument 'raw' selects disasssembly of
  1857. hardware insns rather than aliases. For example, you will see
  1858. 'rlwinm' rather than 'clrlwi', and 'addi' rather than 'li'. All of
  1859. the '-m' arguments for 'gas' that select a CPU are supported.
  1860. These are: '403', '405', '440', '464', '476', '601', '603', '604',
  1861. '620', '7400', '7410', '7450', '7455', '750cl', '821', '850',
  1862. '860', 'a2', 'booke', 'booke32', 'cell', 'com', 'e200z4', 'e300',
  1863. 'e500', 'e500mc', 'e500mc64', 'e500x2', 'e5500', 'e6500', 'efs',
  1864. 'power4', 'power5', 'power6', 'power7', 'power8', 'power9',
  1865. 'power10', 'ppc', 'ppc32', 'ppc64', 'ppc64bridge', 'ppcps', 'pwr',
  1866. 'pwr2', 'pwr4', 'pwr5', 'pwr5x', 'pwr6', 'pwr7', 'pwr8', 'pwr9',
  1867. 'pwr10', 'pwrx', 'titan', and 'vle'. '32' and '64' modify the
  1868. default or a prior CPU selection, disabling and enabling 64-bit
  1869. insns respectively. In addition, 'altivec', 'any', 'htm', 'vsx',
  1870. and 'spe' add capabilities to a previous _or later_ CPU selection.
  1871. 'any' will disassemble any opcode known to binutils, but in cases
  1872. where an opcode has two different meanings or different arguments,
  1873. you may not see the disassembly you expect. If you disassemble
  1874. without giving a CPU selection, a default will be chosen from
  1875. information gleaned by BFD from the object files headers, but the
  1876. result again may not be as you expect.
  1877. For MIPS, this option controls the printing of instruction mnemonic
  1878. names and register names in disassembled instructions. Multiple
  1879. selections from the following may be specified as a comma separated
  1880. string, and invalid options are ignored:
  1881. 'no-aliases'
  1882. Print the 'raw' instruction mnemonic instead of some pseudo
  1883. instruction mnemonic. I.e., print 'daddu' or 'or' instead of
  1884. 'move', 'sll' instead of 'nop', etc.
  1885. 'msa'
  1886. Disassemble MSA instructions.
  1887. 'virt'
  1888. Disassemble the virtualization ASE instructions.
  1889. 'xpa'
  1890. Disassemble the eXtended Physical Address (XPA) ASE
  1891. instructions.
  1892. 'gpr-names=ABI'
  1893. Print GPR (general-purpose register) names as appropriate for
  1894. the specified ABI. By default, GPR names are selected
  1895. according to the ABI of the binary being disassembled.
  1896. 'fpr-names=ABI'
  1897. Print FPR (floating-point register) names as appropriate for
  1898. the specified ABI. By default, FPR numbers are printed rather
  1899. than names.
  1900. 'cp0-names=ARCH'
  1901. Print CP0 (system control coprocessor; coprocessor 0) register
  1902. names as appropriate for the CPU or architecture specified by
  1903. ARCH. By default, CP0 register names are selected according
  1904. to the architecture and CPU of the binary being disassembled.
  1905. 'hwr-names=ARCH'
  1906. Print HWR (hardware register, used by the 'rdhwr' instruction)
  1907. names as appropriate for the CPU or architecture specified by
  1908. ARCH. By default, HWR names are selected according to the
  1909. architecture and CPU of the binary being disassembled.
  1910. 'reg-names=ABI'
  1911. Print GPR and FPR names as appropriate for the selected ABI.
  1912. 'reg-names=ARCH'
  1913. Print CPU-specific register names (CP0 register and HWR names)
  1914. as appropriate for the selected CPU or architecture.
  1915. For any of the options listed above, ABI or ARCH may be specified
  1916. as 'numeric' to have numbers printed rather than names, for the
  1917. selected types of registers. You can list the available values of
  1918. ABI and ARCH using the '--help' option.
  1919. For VAX, you can specify function entry addresses with '-M
  1920. entry:0xf00ba'. You can use this multiple times to properly
  1921. disassemble VAX binary files that don't contain symbol tables (like
  1922. ROM dumps). In these cases, the function entry mask would
  1923. otherwise be decoded as VAX instructions, which would probably lead
  1924. the rest of the function being wrongly disassembled.
  1925. '-p'
  1926. '--private-headers'
  1927. Print information that is specific to the object file format. The
  1928. exact information printed depends upon the object file format. For
  1929. some object file formats, no additional information is printed.
  1930. '-P OPTIONS'
  1931. '--private=OPTIONS'
  1932. Print information that is specific to the object file format. The
  1933. argument OPTIONS is a comma separated list that depends on the
  1934. format (the lists of options is displayed with the help).
  1935. For XCOFF, the available options are:
  1936. 'header'
  1937. 'aout'
  1938. 'sections'
  1939. 'syms'
  1940. 'relocs'
  1941. 'lineno,'
  1942. 'loader'
  1943. 'except'
  1944. 'typchk'
  1945. 'traceback'
  1946. 'toc'
  1947. 'ldinfo'
  1948. Not all object formats support this option. In particular the ELF
  1949. format does not use it.
  1950. '-r'
  1951. '--reloc'
  1952. Print the relocation entries of the file. If used with '-d' or
  1953. '-D', the relocations are printed interspersed with the
  1954. disassembly.
  1955. '-R'
  1956. '--dynamic-reloc'
  1957. Print the dynamic relocation entries of the file. This is only
  1958. meaningful for dynamic objects, such as certain types of shared
  1959. libraries. As for '-r', if used with '-d' or '-D', the relocations
  1960. are printed interspersed with the disassembly.
  1961. '-s'
  1962. '--full-contents'
  1963. Display the full contents of any sections requested. By default
  1964. all non-empty sections are displayed.
  1965. '-S'
  1966. '--source'
  1967. Display source code intermixed with disassembly, if possible.
  1968. Implies '-d'.
  1969. '--source-comment[=TXT]'
  1970. Like the '-S' option, but all source code lines are displayed with
  1971. a prefix of TXT. Typically TXT will be a comment string which can
  1972. be used to distinguish the assembler code from the source code. If
  1973. TXT is not provided then a default string of "# " (hash followed by
  1974. a space), will be used.
  1975. '--prefix=PREFIX'
  1976. Specify PREFIX to add to the absolute paths when used with '-S'.
  1977. '--prefix-strip=LEVEL'
  1978. Indicate how many initial directory names to strip off the
  1979. hardwired absolute paths. It has no effect without
  1980. '--prefix='PREFIX.
  1981. '--show-raw-insn'
  1982. When disassembling instructions, print the instruction in hex as
  1983. well as in symbolic form. This is the default except when
  1984. '--prefix-addresses' is used.
  1985. '--no-show-raw-insn'
  1986. When disassembling instructions, do not print the instruction
  1987. bytes. This is the default when '--prefix-addresses' is used.
  1988. '--insn-width=WIDTH'
  1989. Display WIDTH bytes on a single line when disassembling
  1990. instructions.
  1991. '--visualize-jumps[=color|=extended-color|=off]'
  1992. Visualize jumps that stay inside a function by drawing ASCII art
  1993. between the start and target addresses. The optional '=color'
  1994. argument adds color to the output using simple terminal colors.
  1995. Alternatively the '=extended-color' argument will add color using
  1996. 8bit colors, but these might not work on all terminals.
  1997. If it is necessary to disable the 'visualize-jumps' option after it
  1998. has previously been enabled then use 'visualize-jumps=off'.
  1999. '-W[lLiaprmfFsoORtUuTgAckK]'
  2000. '--dwarf[=rawline,=decodedline,=info,=abbrev,=pubnames,=aranges,=macro,=frames,=frames-interp,=str,=str-offsets,=loc,=Ranges,=pubtypes,=trace_info,=trace_abbrev,=trace_aranges,=gdb_index,=addr,=cu_index,=links,=follow-links]'
  2001. Displays the contents of the DWARF debug sections in the file, if
  2002. any are present. Compressed debug sections are automatically
  2003. decompressed (temporarily) before they are displayed. If one or
  2004. more of the optional letters or words follows the switch then only
  2005. those type(s) of data will be dumped. The letters and words refer
  2006. to the following information:
  2007. 'a'
  2008. '=abbrev'
  2009. Displays the contents of the '.debug_abbrev' section.
  2010. 'A'
  2011. '=addr'
  2012. Displays the contents of the '.debug_addr' section.
  2013. 'c'
  2014. '=cu_index'
  2015. Displays the contents of the '.debug_cu_index' and/or
  2016. '.debug_tu_index' sections.
  2017. 'f'
  2018. '=frames'
  2019. Display the raw contents of a '.debug_frame' section.
  2020. 'F'
  2021. '=frame-interp'
  2022. Display the interpreted contents of a '.debug_frame' section.
  2023. 'g'
  2024. '=gdb_index'
  2025. Displays the contents of the '.gdb_index' and/or
  2026. '.debug_names' sections.
  2027. 'i'
  2028. '=info'
  2029. Displays the contents of the '.debug_info' section. Note: the
  2030. output from this option can also be restricted by the use of
  2031. the '--dwarf-depth' and '--dwarf-start' options.
  2032. 'k'
  2033. '=links'
  2034. Displays the contents of the '.gnu_debuglink' and/or
  2035. '.gnu_debugaltlink' sections. Also displays any links to
  2036. separate dwarf object files (dwo), if they are specified by
  2037. the DW_AT_GNU_dwo_name or DW_AT_dwo_name attributes in the
  2038. '.debug_info' section.
  2039. 'K'
  2040. '=follow-links'
  2041. Display the contents of any selected debug sections that are
  2042. found in linked, separate debug info file(s). This can result
  2043. in multiple versions of the same debug section being displayed
  2044. if it exists in more than one file.
  2045. In addition, when displaying DWARF attributes, if a form is
  2046. found that references the separate debug info file, then the
  2047. referenced contents will also be displayed.
  2048. 'l'
  2049. '=rawline'
  2050. Displays the contents of the '.debug_line' section in a raw
  2051. format.
  2052. 'L'
  2053. '=decodedline'
  2054. Displays the interpreted contents of the '.debug_line'
  2055. section.
  2056. 'm'
  2057. '=macro'
  2058. Displays the contents of the '.debug_macro' and/or
  2059. '.debug_macinfo' sections.
  2060. 'o'
  2061. '=loc'
  2062. Displays the contents of the '.debug_loc' and/or
  2063. '.debug_loclists' sections.
  2064. 'O'
  2065. '=str-offsets'
  2066. Displays the contents of the '.debug_str_offsets' section.
  2067. 'p'
  2068. '=pubnames'
  2069. Displays the contents of the '.debug_pubnames' and/or
  2070. '.debug_gnu_pubnames' sections.
  2071. 'r'
  2072. '=aranges'
  2073. Displays the contents of the '.debug_aranges' section.
  2074. 'R'
  2075. '=Ranges'
  2076. Displays the contents of the '.debug_ranges' and/or
  2077. '.debug_rnglists' sections.
  2078. 's'
  2079. '=str'
  2080. Displays the contents of the '.debug_str', '.debug_line_str'
  2081. and/or '.debug_str_offsets' sections.
  2082. 't'
  2083. '=pubtype'
  2084. Displays the contents of the '.debug_pubtypes' and/or
  2085. '.debug_gnu_pubtypes' sections.
  2086. 'T'
  2087. '=trace_aranges'
  2088. Displays the contents of the '.trace_aranges' section.
  2089. 'u'
  2090. '=trace_abbrev'
  2091. Displays the contents of the '.trace_abbrev' section.
  2092. 'U'
  2093. '=trace_info'
  2094. Displays the contents of the '.trace_info' section.
  2095. Note: displaying the contents of '.debug_static_funcs',
  2096. '.debug_static_vars' and 'debug_weaknames' sections is not
  2097. currently supported.
  2098. '--dwarf-depth=N'
  2099. Limit the dump of the '.debug_info' section to N children. This is
  2100. only useful with '--debug-dump=info'. The default is to print all
  2101. DIEs; the special value 0 for N will also have this effect.
  2102. With a non-zero value for N, DIEs at or deeper than N levels will
  2103. not be printed. The range for N is zero-based.
  2104. '--dwarf-start=N'
  2105. Print only DIEs beginning with the DIE numbered N. This is only
  2106. useful with '--debug-dump=info'.
  2107. If specified, this option will suppress printing of any header
  2108. information and all DIEs before the DIE numbered N. Only siblings
  2109. and children of the specified DIE will be printed.
  2110. This can be used in conjunction with '--dwarf-depth'.
  2111. '--dwarf-check'
  2112. Enable additional checks for consistency of Dwarf information.
  2113. '--ctf=SECTION'
  2114. Display the contents of the specified CTF section. CTF sections
  2115. themselves contain many subsections, all of which are displayed in
  2116. order.
  2117. '--ctf-parent=SECTION'
  2118. Specify the name of another section from which the CTF dictionary
  2119. can inherit types. (If none is specified, we assume the CTF
  2120. dictionary inherits types from the default-named member of the
  2121. archive contained within this section.)
  2122. '-G'
  2123. '--stabs'
  2124. Display the full contents of any sections requested. Display the
  2125. contents of the .stab and .stab.index and .stab.excl sections from
  2126. an ELF file. This is only useful on systems (such as Solaris 2.0)
  2127. in which '.stab' debugging symbol-table entries are carried in an
  2128. ELF section. In most other file formats, debugging symbol-table
  2129. entries are interleaved with linkage symbols, and are visible in
  2130. the '--syms' output.
  2131. '--start-address=ADDRESS'
  2132. Start displaying data at the specified address. This affects the
  2133. output of the '-d', '-r' and '-s' options.
  2134. '--stop-address=ADDRESS'
  2135. Stop displaying data at the specified address. This affects the
  2136. output of the '-d', '-r' and '-s' options.
  2137. '-t'
  2138. '--syms'
  2139. Print the symbol table entries of the file. This is similar to the
  2140. information provided by the 'nm' program, although the display
  2141. format is different. The format of the output depends upon the
  2142. format of the file being dumped, but there are two main types. One
  2143. looks like this:
  2144. [ 4](sec 3)(fl 0x00)(ty 0)(scl 3) (nx 1) 0x00000000 .bss
  2145. [ 6](sec 1)(fl 0x00)(ty 0)(scl 2) (nx 0) 0x00000000 fred
  2146. where the number inside the square brackets is the number of the
  2147. entry in the symbol table, the SEC number is the section number,
  2148. the FL value are the symbol's flag bits, the TY number is the
  2149. symbol's type, the SCL number is the symbol's storage class and the
  2150. NX value is the number of auxiliary entries associated with the
  2151. symbol. The last two fields are the symbol's value and its name.
  2152. The other common output format, usually seen with ELF based files,
  2153. looks like this:
  2154. 00000000 l d .bss 00000000 .bss
  2155. 00000000 g .text 00000000 fred
  2156. Here the first number is the symbol's value (sometimes referred to
  2157. as its address). The next field is actually a set of characters
  2158. and spaces indicating the flag bits that are set on the symbol.
  2159. These characters are described below. Next is the section with
  2160. which the symbol is associated or _*ABS*_ if the section is
  2161. absolute (ie not connected with any section), or _*UND*_ if the
  2162. section is referenced in the file being dumped, but not defined
  2163. there.
  2164. After the section name comes another field, a number, which for
  2165. common symbols is the alignment and for other symbol is the size.
  2166. Finally the symbol's name is displayed.
  2167. The flag characters are divided into 7 groups as follows:
  2168. 'l'
  2169. 'g'
  2170. 'u'
  2171. '!'
  2172. The symbol is a local (l), global (g), unique global (u),
  2173. neither global nor local (a space) or both global and local
  2174. (!). A symbol can be neither local or global for a variety of
  2175. reasons, e.g., because it is used for debugging, but it is
  2176. probably an indication of a bug if it is ever both local and
  2177. global. Unique global symbols are a GNU extension to the
  2178. standard set of ELF symbol bindings. For such a symbol the
  2179. dynamic linker will make sure that in the entire process there
  2180. is just one symbol with this name and type in use.
  2181. 'w'
  2182. The symbol is weak (w) or strong (a space).
  2183. 'C'
  2184. The symbol denotes a constructor (C) or an ordinary symbol (a
  2185. space).
  2186. 'W'
  2187. The symbol is a warning (W) or a normal symbol (a space). A
  2188. warning symbol's name is a message to be displayed if the
  2189. symbol following the warning symbol is ever referenced.
  2190. 'I'
  2191. 'i'
  2192. The symbol is an indirect reference to another symbol (I), a
  2193. function to be evaluated during reloc processing (i) or a
  2194. normal symbol (a space).
  2195. 'd'
  2196. 'D'
  2197. The symbol is a debugging symbol (d) or a dynamic symbol (D)
  2198. or a normal symbol (a space).
  2199. 'F'
  2200. 'f'
  2201. 'O'
  2202. The symbol is the name of a function (F) or a file (f) or an
  2203. object (O) or just a normal symbol (a space).
  2204. '-T'
  2205. '--dynamic-syms'
  2206. Print the dynamic symbol table entries of the file. This is only
  2207. meaningful for dynamic objects, such as certain types of shared
  2208. libraries. This is similar to the information provided by the 'nm'
  2209. program when given the '-D' ('--dynamic') option.
  2210. The output format is similar to that produced by the '--syms'
  2211. option, except that an extra field is inserted before the symbol's
  2212. name, giving the version information associated with the symbol.
  2213. If the version is the default version to be used when resolving
  2214. unversioned references to the symbol then it's displayed as is,
  2215. otherwise it's put into parentheses.
  2216. '--special-syms'
  2217. When displaying symbols include those which the target considers to
  2218. be special in some way and which would not normally be of interest
  2219. to the user.
  2220. '-V'
  2221. '--version'
  2222. Print the version number of 'objdump' and exit.
  2223. '-x'
  2224. '--all-headers'
  2225. Display all available header information, including the symbol
  2226. table and relocation entries. Using '-x' is equivalent to
  2227. specifying all of '-a -f -h -p -r -t'.
  2228. '-w'
  2229. '--wide'
  2230. Format some lines for output devices that have more than 80
  2231. columns. Also do not truncate symbol names when they are
  2232. displayed.
  2233. '-z'
  2234. '--disassemble-zeroes'
  2235. Normally the disassembly output will skip blocks of zeroes. This
  2236. option directs the disassembler to disassemble those blocks, just
  2237. like any other data.
  2238. 
  2239. File: binutils.info, Node: ranlib, Next: size, Prev: objdump, Up: Top
  2240. 5 ranlib
  2241. ********
  2242. ranlib [--plugin NAME] [-DhHvVt] ARCHIVE
  2243. 'ranlib' generates an index to the contents of an archive and stores
  2244. it in the archive. The index lists each symbol defined by a member of
  2245. an archive that is a relocatable object file.
  2246. You may use 'nm -s' or 'nm --print-armap' to list this index.
  2247. An archive with such an index speeds up linking to the library and
  2248. allows routines in the library to call each other without regard to
  2249. their placement in the archive.
  2250. The GNU 'ranlib' program is another form of GNU 'ar'; running
  2251. 'ranlib' is completely equivalent to executing 'ar -s'. *Note ar::.
  2252. '-h'
  2253. '-H'
  2254. '--help'
  2255. Show usage information for 'ranlib'.
  2256. '-v'
  2257. '-V'
  2258. '--version'
  2259. Show the version number of 'ranlib'.
  2260. '-D'
  2261. Operate in _deterministic_ mode. The symbol map archive member's
  2262. header will show zero for the UID, GID, and timestamp. When this
  2263. option is used, multiple runs will produce identical output files.
  2264. If 'binutils' was configured with
  2265. '--enable-deterministic-archives', then this mode is on by default.
  2266. It can be disabled with the '-U' option, described below.
  2267. '-t'
  2268. Update the timestamp of the symbol map of an archive.
  2269. '-U'
  2270. Do _not_ operate in _deterministic_ mode. This is the inverse of
  2271. the '-D' option, above: the archive index will get actual UID, GID,
  2272. timestamp, and file mode values.
  2273. If 'binutils' was configured _without_
  2274. '--enable-deterministic-archives', then this mode is on by default.
  2275. 
  2276. File: binutils.info, Node: size, Next: strings, Prev: ranlib, Up: Top
  2277. 6 size
  2278. ******
  2279. size [-A|-B|-G|--format=COMPATIBILITY]
  2280. [--help]
  2281. [-d|-o|-x|--radix=NUMBER]
  2282. [--common]
  2283. [-t|--totals]
  2284. [--target=BFDNAME] [-V|--version]
  2285. [OBJFILE...]
  2286. The GNU 'size' utility lists the section sizes and the total size for
  2287. each of the binary files OBJFILE on its argument list. By default, one
  2288. line of output is generated for each file or each module if the file is
  2289. an archive.
  2290. OBJFILE... are the files to be examined. If none are specified, the
  2291. file 'a.out' will be used instead.
  2292. The command-line options have the following meanings:
  2293. '-A'
  2294. '-B'
  2295. '-G'
  2296. '--format=COMPATIBILITY'
  2297. Using one of these options, you can choose whether the output from
  2298. GNU 'size' resembles output from System V 'size' (using '-A', or
  2299. '--format=sysv'), or Berkeley 'size' (using '-B', or
  2300. '--format=berkeley'). The default is the one-line format similar
  2301. to Berkeley's. Alternatively, you can choose the GNU format output
  2302. (using '-G', or '--format=gnu'), this is similar to Berkeley's
  2303. output format, but sizes are counted differently.
  2304. Here is an example of the Berkeley (default) format of output from
  2305. 'size':
  2306. $ size --format=Berkeley ranlib size
  2307. text data bss dec hex filename
  2308. 294880 81920 11592 388392 5ed28 ranlib
  2309. 294880 81920 11888 388688 5ee50 size
  2310. The Berkeley style output counts read only data in the 'text'
  2311. column, not in the 'data' column, the 'dec' and 'hex' columns both
  2312. display the sum of the 'text', 'data', and 'bss' columns in decimal
  2313. and hexadecimal respectively.
  2314. The GNU format counts read only data in the 'data' column, not the
  2315. 'text' column, and only displays the sum of the 'text', 'data', and
  2316. 'bss' columns once, in the 'total' column. The '--radix' option
  2317. can be used to change the number base for all columns. Here is the
  2318. same data displayed with GNU conventions:
  2319. $ size --format=GNU ranlib size
  2320. text data bss total filename
  2321. 279880 96920 11592 388392 ranlib
  2322. 279880 96920 11888 388688 size
  2323. This is the same data, but displayed closer to System V
  2324. conventions:
  2325. $ size --format=SysV ranlib size
  2326. ranlib :
  2327. section size addr
  2328. .text 294880 8192
  2329. .data 81920 303104
  2330. .bss 11592 385024
  2331. Total 388392
  2332. size :
  2333. section size addr
  2334. .text 294880 8192
  2335. .data 81920 303104
  2336. .bss 11888 385024
  2337. Total 388688
  2338. '--help'
  2339. Show a summary of acceptable arguments and options.
  2340. '-d'
  2341. '-o'
  2342. '-x'
  2343. '--radix=NUMBER'
  2344. Using one of these options, you can control whether the size of
  2345. each section is given in decimal ('-d', or '--radix=10'); octal
  2346. ('-o', or '--radix=8'); or hexadecimal ('-x', or '--radix=16'). In
  2347. '--radix=NUMBER', only the three values (8, 10, 16) are supported.
  2348. The total size is always given in two radices; decimal and
  2349. hexadecimal for '-d' or '-x' output, or octal and hexadecimal if
  2350. you're using '-o'.
  2351. '--common'
  2352. Print total size of common symbols in each file. When using
  2353. Berkeley or GNU format these are included in the bss size.
  2354. '-t'
  2355. '--totals'
  2356. Show totals of all objects listed (Berkeley or GNU format mode
  2357. only).
  2358. '--target=BFDNAME'
  2359. Specify that the object-code format for OBJFILE is BFDNAME. This
  2360. option may not be necessary; 'size' can automatically recognize
  2361. many formats. *Note Target Selection::, for more information.
  2362. '-V'
  2363. '--version'
  2364. Display the version number of 'size'.
  2365. 
  2366. File: binutils.info, Node: strings, Next: strip, Prev: size, Up: Top
  2367. 7 strings
  2368. *********
  2369. strings [-afovV] [-MIN-LEN]
  2370. [-n MIN-LEN] [--bytes=MIN-LEN]
  2371. [-t RADIX] [--radix=RADIX]
  2372. [-e ENCODING] [--encoding=ENCODING]
  2373. [-] [--all] [--print-file-name]
  2374. [-T BFDNAME] [--target=BFDNAME]
  2375. [-w] [--include-all-whitespace]
  2376. [-s] [--output-separatorSEP_STRING]
  2377. [--help] [--version] FILE...
  2378. For each FILE given, GNU 'strings' prints the printable character
  2379. sequences that are at least 4 characters long (or the number given with
  2380. the options below) and are followed by an unprintable character.
  2381. Depending upon how the strings program was configured it will default
  2382. to either displaying all the printable sequences that it can find in
  2383. each file, or only those sequences that are in loadable, initialized
  2384. data sections. If the file type is unrecognizable, or if strings is
  2385. reading from stdin then it will always display all of the printable
  2386. sequences that it can find.
  2387. For backwards compatibility any file that occurs after a command-line
  2388. option of just '-' will also be scanned in full, regardless of the
  2389. presence of any '-d' option.
  2390. 'strings' is mainly useful for determining the contents of non-text
  2391. files.
  2392. '-a'
  2393. '--all'
  2394. '-'
  2395. Scan the whole file, regardless of what sections it contains or
  2396. whether those sections are loaded or initialized. Normally this is
  2397. the default behaviour, but strings can be configured so that the
  2398. '-d' is the default instead.
  2399. The '-' option is position dependent and forces strings to perform
  2400. full scans of any file that is mentioned after the '-' on the
  2401. command line, even if the '-d' option has been specified.
  2402. '-d'
  2403. '--data'
  2404. Only print strings from initialized, loaded data sections in the
  2405. file. This may reduce the amount of garbage in the output, but it
  2406. also exposes the strings program to any security flaws that may be
  2407. present in the BFD library used to scan and load sections. Strings
  2408. can be configured so that this option is the default behaviour. In
  2409. such cases the '-a' option can be used to avoid using the BFD
  2410. library and instead just print all of the strings found in the
  2411. file.
  2412. '-f'
  2413. '--print-file-name'
  2414. Print the name of the file before each string.
  2415. '--help'
  2416. Print a summary of the program usage on the standard output and
  2417. exit.
  2418. '-MIN-LEN'
  2419. '-n MIN-LEN'
  2420. '--bytes=MIN-LEN'
  2421. Print sequences of characters that are at least MIN-LEN characters
  2422. long, instead of the default 4.
  2423. '-o'
  2424. Like '-t o'. Some other versions of 'strings' have '-o' act like
  2425. '-t d' instead. Since we can not be compatible with both ways, we
  2426. simply chose one.
  2427. '-t RADIX'
  2428. '--radix=RADIX'
  2429. Print the offset within the file before each string. The single
  2430. character argument specifies the radix of the offset--'o' for
  2431. octal, 'x' for hexadecimal, or 'd' for decimal.
  2432. '-e ENCODING'
  2433. '--encoding=ENCODING'
  2434. Select the character encoding of the strings that are to be found.
  2435. Possible values for ENCODING are: 's' = single-7-bit-byte
  2436. characters (ASCII, ISO 8859, etc., default), 'S' =
  2437. single-8-bit-byte characters, 'b' = 16-bit bigendian, 'l' = 16-bit
  2438. littleendian, 'B' = 32-bit bigendian, 'L' = 32-bit littleendian.
  2439. Useful for finding wide character strings. ('l' and 'b' apply to,
  2440. for example, Unicode UTF-16/UCS-2 encodings).
  2441. '-T BFDNAME'
  2442. '--target=BFDNAME'
  2443. Specify an object code format other than your system's default
  2444. format. *Note Target Selection::, for more information.
  2445. '-v'
  2446. '-V'
  2447. '--version'
  2448. Print the program version number on the standard output and exit.
  2449. '-w'
  2450. '--include-all-whitespace'
  2451. By default tab and space characters are included in the strings
  2452. that are displayed, but other whitespace characters, such a
  2453. newlines and carriage returns, are not. The '-w' option changes
  2454. this so that all whitespace characters are considered to be part of
  2455. a string.
  2456. '-s'
  2457. '--output-separator'
  2458. By default, output strings are delimited by a new-line. This
  2459. option allows you to supply any string to be used as the output
  2460. record separator. Useful with -include-all-whitespace where
  2461. strings may contain new-lines internally.
  2462. 
  2463. File: binutils.info, Node: strip, Next: c++filt, Prev: strings, Up: Top
  2464. 8 strip
  2465. *******
  2466. strip [-F BFDNAME |--target=BFDNAME]
  2467. [-I BFDNAME |--input-target=BFDNAME]
  2468. [-O BFDNAME |--output-target=BFDNAME]
  2469. [-s|--strip-all]
  2470. [-S|-g|-d|--strip-debug]
  2471. [--strip-dwo]
  2472. [-K SYMBOLNAME|--keep-symbol=SYMBOLNAME]
  2473. [-M|--merge-notes][--no-merge-notes]
  2474. [-N SYMBOLNAME |--strip-symbol=SYMBOLNAME]
  2475. [-w|--wildcard]
  2476. [-x|--discard-all] [-X |--discard-locals]
  2477. [-R SECTIONNAME |--remove-section=SECTIONNAME]
  2478. [--keep-section=SECTIONPATTERN]
  2479. [--remove-relocations=SECTIONPATTERN]
  2480. [-o FILE] [-p|--preserve-dates]
  2481. [-D|--enable-deterministic-archives]
  2482. [-U|--disable-deterministic-archives]
  2483. [--keep-file-symbols]
  2484. [--only-keep-debug]
  2485. [-v |--verbose] [-V|--version]
  2486. [--help] [--info]
  2487. OBJFILE...
  2488. GNU 'strip' discards all symbols from object files OBJFILE. The list
  2489. of object files may include archives. At least one object file must be
  2490. given.
  2491. 'strip' modifies the files named in its argument, rather than writing
  2492. modified copies under different names.
  2493. '-F BFDNAME'
  2494. '--target=BFDNAME'
  2495. Treat the original OBJFILE as a file with the object code format
  2496. BFDNAME, and rewrite it in the same format. *Note Target
  2497. Selection::, for more information.
  2498. '--help'
  2499. Show a summary of the options to 'strip' and exit.
  2500. '--info'
  2501. Display a list showing all architectures and object formats
  2502. available.
  2503. '-I BFDNAME'
  2504. '--input-target=BFDNAME'
  2505. Treat the original OBJFILE as a file with the object code format
  2506. BFDNAME. *Note Target Selection::, for more information.
  2507. '-O BFDNAME'
  2508. '--output-target=BFDNAME'
  2509. Replace OBJFILE with a file in the output format BFDNAME. *Note
  2510. Target Selection::, for more information.
  2511. '-R SECTIONNAME'
  2512. '--remove-section=SECTIONNAME'
  2513. Remove any section named SECTIONNAME from the output file, in
  2514. addition to whatever sections would otherwise be removed. This
  2515. option may be given more than once. Note that using this option
  2516. inappropriately may make the output file unusable. The wildcard
  2517. character '*' may be given at the end of SECTIONNAME. If so, then
  2518. any section starting with SECTIONNAME will be removed.
  2519. If the first character of SECTIONPATTERN is the exclamation point
  2520. (!) then matching sections will not be removed even if an earlier
  2521. use of '--remove-section' on the same command line would otherwise
  2522. remove it. For example:
  2523. --remove-section=.text.* --remove-section=!.text.foo
  2524. will remove all sections matching the pattern '.text.*', but will
  2525. not remove the section '.text.foo'.
  2526. '--keep-section=SECTIONPATTERN'
  2527. When removing sections from the output file, keep sections that
  2528. match SECTIONPATTERN.
  2529. '--remove-relocations=SECTIONPATTERN'
  2530. Remove relocations from the output file for any section matching
  2531. SECTIONPATTERN. This option may be given more than once. Note
  2532. that using this option inappropriately may make the output file
  2533. unusable. Wildcard characters are accepted in SECTIONPATTERN. For
  2534. example:
  2535. --remove-relocations=.text.*
  2536. will remove the relocations for all sections matching the patter
  2537. '.text.*'.
  2538. If the first character of SECTIONPATTERN is the exclamation point
  2539. (!) then matching sections will not have their relocation removed
  2540. even if an earlier use of '--remove-relocations' on the same
  2541. command line would otherwise cause the relocations to be removed.
  2542. For example:
  2543. --remove-relocations=.text.* --remove-relocations=!.text.foo
  2544. will remove all relocations for sections matching the pattern
  2545. '.text.*', but will not remove relocations for the section
  2546. '.text.foo'.
  2547. '-s'
  2548. '--strip-all'
  2549. Remove all symbols.
  2550. '-g'
  2551. '-S'
  2552. '-d'
  2553. '--strip-debug'
  2554. Remove debugging symbols only.
  2555. '--strip-dwo'
  2556. Remove the contents of all DWARF .dwo sections, leaving the
  2557. remaining debugging sections and all symbols intact. See the
  2558. description of this option in the 'objcopy' section for more
  2559. information.
  2560. '--strip-unneeded'
  2561. Remove all symbols that are not needed for relocation processing in
  2562. addition to debugging symbols and sections stripped by
  2563. '--strip-debug'.
  2564. '-K SYMBOLNAME'
  2565. '--keep-symbol=SYMBOLNAME'
  2566. When stripping symbols, keep symbol SYMBOLNAME even if it would
  2567. normally be stripped. This option may be given more than once.
  2568. '-M'
  2569. '--merge-notes'
  2570. '--no-merge-notes'
  2571. For ELF files, attempt (or do not attempt) to reduce the size of
  2572. any SHT_NOTE type sections by removing duplicate notes. The
  2573. default is to attempt this reduction unless stripping debug or DWO
  2574. information.
  2575. '-N SYMBOLNAME'
  2576. '--strip-symbol=SYMBOLNAME'
  2577. Remove symbol SYMBOLNAME from the source file. This option may be
  2578. given more than once, and may be combined with strip options other
  2579. than '-K'.
  2580. '-o FILE'
  2581. Put the stripped output in FILE, rather than replacing the existing
  2582. file. When this argument is used, only one OBJFILE argument may be
  2583. specified.
  2584. '-p'
  2585. '--preserve-dates'
  2586. Preserve the access and modification dates of the file.
  2587. '-D'
  2588. '--enable-deterministic-archives'
  2589. Operate in _deterministic_ mode. When copying archive members and
  2590. writing the archive index, use zero for UIDs, GIDs, timestamps, and
  2591. use consistent file modes for all files.
  2592. If 'binutils' was configured with
  2593. '--enable-deterministic-archives', then this mode is on by default.
  2594. It can be disabled with the '-U' option, below.
  2595. '-U'
  2596. '--disable-deterministic-archives'
  2597. Do _not_ operate in _deterministic_ mode. This is the inverse of
  2598. the '-D' option, above: when copying archive members and writing
  2599. the archive index, use their actual UID, GID, timestamp, and file
  2600. mode values.
  2601. This is the default unless 'binutils' was configured with
  2602. '--enable-deterministic-archives'.
  2603. '-w'
  2604. '--wildcard'
  2605. Permit regular expressions in SYMBOLNAMEs used in other command
  2606. line options. The question mark (?), asterisk (*), backslash (\)
  2607. and square brackets ([]) operators can be used anywhere in the
  2608. symbol name. If the first character of the symbol name is the
  2609. exclamation point (!) then the sense of the switch is reversed for
  2610. that symbol. For example:
  2611. -w -K !foo -K fo*
  2612. would cause strip to only keep symbols that start with the letters
  2613. "fo", but to discard the symbol "foo".
  2614. '-x'
  2615. '--discard-all'
  2616. Remove non-global symbols.
  2617. '-X'
  2618. '--discard-locals'
  2619. Remove compiler-generated local symbols. (These usually start with
  2620. 'L' or '.'.)
  2621. '--keep-file-symbols'
  2622. When stripping a file, perhaps with '--strip-debug' or
  2623. '--strip-unneeded', retain any symbols specifying source file
  2624. names, which would otherwise get stripped.
  2625. '--only-keep-debug'
  2626. Strip a file, emptying the contents of any sections that would not
  2627. be stripped by '--strip-debug' and leaving the debugging sections
  2628. intact. In ELF files, this preserves all the note sections in the
  2629. output as well.
  2630. Note - the section headers of the stripped sections are preserved,
  2631. including their sizes, but the contents of the section are
  2632. discarded. The section headers are preserved so that other tools
  2633. can match up the debuginfo file with the real executable, even if
  2634. that executable has been relocated to a different address space.
  2635. The intention is that this option will be used in conjunction with
  2636. '--add-gnu-debuglink' to create a two part executable. One a
  2637. stripped binary which will occupy less space in RAM and in a
  2638. distribution and the second a debugging information file which is
  2639. only needed if debugging abilities are required. The suggested
  2640. procedure to create these files is as follows:
  2641. 1. Link the executable as normal. Assuming that it is called
  2642. 'foo' then...
  2643. 2. Run 'objcopy --only-keep-debug foo foo.dbg' to create a file
  2644. containing the debugging info.
  2645. 3. Run 'objcopy --strip-debug foo' to create a stripped
  2646. executable.
  2647. 4. Run 'objcopy --add-gnu-debuglink=foo.dbg foo' to add a link to
  2648. the debugging info into the stripped executable.
  2649. Note--the choice of '.dbg' as an extension for the debug info file
  2650. is arbitrary. Also the '--only-keep-debug' step is optional. You
  2651. could instead do this:
  2652. 1. Link the executable as normal.
  2653. 2. Copy 'foo' to 'foo.full'
  2654. 3. Run 'strip --strip-debug foo'
  2655. 4. Run 'objcopy --add-gnu-debuglink=foo.full foo'
  2656. i.e., the file pointed to by the '--add-gnu-debuglink' can be the
  2657. full executable. It does not have to be a file created by the
  2658. '--only-keep-debug' switch.
  2659. Note--this switch is only intended for use on fully linked files.
  2660. It does not make sense to use it on object files where the
  2661. debugging information may be incomplete. Besides the gnu_debuglink
  2662. feature currently only supports the presence of one filename
  2663. containing debugging information, not multiple filenames on a
  2664. one-per-object-file basis.
  2665. '-V'
  2666. '--version'
  2667. Show the version number for 'strip'.
  2668. '-v'
  2669. '--verbose'
  2670. Verbose output: list all object files modified. In the case of
  2671. archives, 'strip -v' lists all members of the archive.
  2672. 
  2673. File: binutils.info, Node: c++filt, Next: addr2line, Prev: strip, Up: Top
  2674. 9 c++filt
  2675. *********
  2676. c++filt [-_|--strip-underscore]
  2677. [-n|--no-strip-underscore]
  2678. [-p|--no-params]
  2679. [-t|--types]
  2680. [-i|--no-verbose]
  2681. [-r|--no-recurse-limit]
  2682. [-R|--recurse-limit]
  2683. [-s FORMAT|--format=FORMAT]
  2684. [--help] [--version] [SYMBOL...]
  2685. The C++ and Java languages provide function overloading, which means
  2686. that you can write many functions with the same name, providing that
  2687. each function takes parameters of different types. In order to be able
  2688. to distinguish these similarly named functions C++ and Java encode them
  2689. into a low-level assembler name which uniquely identifies each different
  2690. version. This process is known as "mangling". The 'c++filt' (1)
  2691. program does the inverse mapping: it decodes ("demangles") low-level
  2692. names into user-level names so that they can be read.
  2693. Every alphanumeric word (consisting of letters, digits, underscores,
  2694. dollars, or periods) seen in the input is a potential mangled name. If
  2695. the name decodes into a C++ name, the C++ name replaces the low-level
  2696. name in the output, otherwise the original word is output. In this way
  2697. you can pass an entire assembler source file, containing mangled names,
  2698. through 'c++filt' and see the same source file containing demangled
  2699. names.
  2700. You can also use 'c++filt' to decipher individual symbols by passing
  2701. them on the command line:
  2702. c++filt SYMBOL
  2703. If no SYMBOL arguments are given, 'c++filt' reads symbol names from
  2704. the standard input instead. All the results are printed on the standard
  2705. output. The difference between reading names from the command line
  2706. versus reading names from the standard input is that command-line
  2707. arguments are expected to be just mangled names and no checking is
  2708. performed to separate them from surrounding text. Thus for example:
  2709. c++filt -n _Z1fv
  2710. will work and demangle the name to "f()" whereas:
  2711. c++filt -n _Z1fv,
  2712. will not work. (Note the extra comma at the end of the mangled name
  2713. which makes it invalid). This command however will work:
  2714. echo _Z1fv, | c++filt -n
  2715. and will display "f(),", i.e., the demangled name followed by a
  2716. trailing comma. This behaviour is because when the names are read from
  2717. the standard input it is expected that they might be part of an
  2718. assembler source file where there might be extra, extraneous characters
  2719. trailing after a mangled name. For example:
  2720. .type _Z1fv, @function
  2721. '-_'
  2722. '--strip-underscore'
  2723. On some systems, both the C and C++ compilers put an underscore in
  2724. front of every name. For example, the C name 'foo' gets the
  2725. low-level name '_foo'. This option removes the initial underscore.
  2726. Whether 'c++filt' removes the underscore by default is target
  2727. dependent.
  2728. '-n'
  2729. '--no-strip-underscore'
  2730. Do not remove the initial underscore.
  2731. '-p'
  2732. '--no-params'
  2733. When demangling the name of a function, do not display the types of
  2734. the function's parameters.
  2735. '-t'
  2736. '--types'
  2737. Attempt to demangle types as well as function names. This is
  2738. disabled by default since mangled types are normally only used
  2739. internally in the compiler, and they can be confused with
  2740. non-mangled names. For example, a function called "a" treated as a
  2741. mangled type name would be demangled to "signed char".
  2742. '-i'
  2743. '--no-verbose'
  2744. Do not include implementation details (if any) in the demangled
  2745. output.
  2746. '-r'
  2747. '-R'
  2748. '--recurse-limit'
  2749. '--no-recurse-limit'
  2750. '--recursion-limit'
  2751. '--no-recursion-limit'
  2752. Enables or disables a limit on the amount of recursion performed
  2753. whilst demangling strings. Since the name mangling formats allow
  2754. for an infinite level of recursion it is possible to create strings
  2755. whose decoding will exhaust the amount of stack space available on
  2756. the host machine, triggering a memory fault. The limit tries to
  2757. prevent this from happening by restricting recursion to 2048 levels
  2758. of nesting.
  2759. The default is for this limit to be enabled, but disabling it may
  2760. be necessary in order to demangle truly complicated names. Note
  2761. however that if the recursion limit is disabled then stack
  2762. exhaustion is possible and any bug reports about such an event will
  2763. be rejected.
  2764. The '-r' option is a synonym for the '--no-recurse-limit' option.
  2765. The '-R' option is a synonym for the '--recurse-limit' option.
  2766. '-s FORMAT'
  2767. '--format=FORMAT'
  2768. 'c++filt' can decode various methods of mangling, used by different
  2769. compilers. The argument to this option selects which method it
  2770. uses:
  2771. 'auto'
  2772. Automatic selection based on executable (the default method)
  2773. 'gnu'
  2774. the one used by the GNU C++ compiler (g++)
  2775. 'lucid'
  2776. the one used by the Lucid compiler (lcc)
  2777. 'arm'
  2778. the one specified by the C++ Annotated Reference Manual
  2779. 'hp'
  2780. the one used by the HP compiler (aCC)
  2781. 'edg'
  2782. the one used by the EDG compiler
  2783. 'gnu-v3'
  2784. the one used by the GNU C++ compiler (g++) with the V3 ABI.
  2785. 'java'
  2786. the one used by the GNU Java compiler (gcj)
  2787. 'gnat'
  2788. the one used by the GNU Ada compiler (GNAT).
  2789. '--help'
  2790. Print a summary of the options to 'c++filt' and exit.
  2791. '--version'
  2792. Print the version number of 'c++filt' and exit.
  2793. _Warning:_ 'c++filt' is a new utility, and the details of its user
  2794. interface are subject to change in future releases. In particular,
  2795. a command-line option may be required in the future to decode a
  2796. name passed as an argument on the command line; in other words,
  2797. c++filt SYMBOL
  2798. may in a future release become
  2799. c++filt OPTION SYMBOL
  2800. ---------- Footnotes ----------
  2801. (1) MS-DOS does not allow '+' characters in file names, so on MS-DOS
  2802. this program is named 'CXXFILT'.
  2803. 
  2804. File: binutils.info, Node: addr2line, Next: windmc, Prev: c++filt, Up: Top
  2805. 10 addr2line
  2806. ************
  2807. addr2line [-a|--addresses]
  2808. [-b BFDNAME|--target=BFDNAME]
  2809. [-C|--demangle[=STYLE]]
  2810. [-r|--no-recurse-limit]
  2811. [-R|--recurse-limit]
  2812. [-e FILENAME|--exe=FILENAME]
  2813. [-f|--functions] [-s|--basename]
  2814. [-i|--inlines]
  2815. [-p|--pretty-print]
  2816. [-j|--section=NAME]
  2817. [-H|--help] [-V|--version]
  2818. [addr addr ...]
  2819. 'addr2line' translates addresses into file names and line numbers.
  2820. Given an address in an executable or an offset in a section of a
  2821. relocatable object, it uses the debugging information to figure out
  2822. which file name and line number are associated with it.
  2823. The executable or relocatable object to use is specified with the
  2824. '-e' option. The default is the file 'a.out'. The section in the
  2825. relocatable object to use is specified with the '-j' option.
  2826. 'addr2line' has two modes of operation.
  2827. In the first, hexadecimal addresses are specified on the command
  2828. line, and 'addr2line' displays the file name and line number for each
  2829. address.
  2830. In the second, 'addr2line' reads hexadecimal addresses from standard
  2831. input, and prints the file name and line number for each address on
  2832. standard output. In this mode, 'addr2line' may be used in a pipe to
  2833. convert dynamically chosen addresses.
  2834. The format of the output is 'FILENAME:LINENO'. By default each input
  2835. address generates one line of output.
  2836. Two options can generate additional lines before each
  2837. 'FILENAME:LINENO' line (in that order).
  2838. If the '-a' option is used then a line with the input address is
  2839. displayed.
  2840. If the '-f' option is used, then a line with the 'FUNCTIONNAME' is
  2841. displayed. This is the name of the function containing the address.
  2842. One option can generate additional lines after the 'FILENAME:LINENO'
  2843. line.
  2844. If the '-i' option is used and the code at the given address is
  2845. present there because of inlining by the compiler then additional lines
  2846. are displayed afterwards. One or two extra lines (if the '-f' option is
  2847. used) are displayed for each inlined function.
  2848. Alternatively if the '-p' option is used then each input address
  2849. generates a single, long, output line containing the address, the
  2850. function name, the file name and the line number. If the '-i' option
  2851. has also been used then any inlined functions will be displayed in the
  2852. same manner, but on separate lines, and prefixed by the text '(inlined
  2853. by)'.
  2854. If the file name or function name can not be determined, 'addr2line'
  2855. will print two question marks in their place. If the line number can
  2856. not be determined, 'addr2line' will print 0.
  2857. The long and short forms of options, shown here as alternatives, are
  2858. equivalent.
  2859. '-a'
  2860. '--addresses'
  2861. Display the address before the function name, file and line number
  2862. information. The address is printed with a '0x' prefix to easily
  2863. identify it.
  2864. '-b BFDNAME'
  2865. '--target=BFDNAME'
  2866. Specify that the object-code format for the object files is
  2867. BFDNAME.
  2868. '-C'
  2869. '--demangle[=STYLE]'
  2870. Decode ("demangle") low-level symbol names into user-level names.
  2871. Besides removing any initial underscore prepended by the system,
  2872. this makes C++ function names readable. Different compilers have
  2873. different mangling styles. The optional demangling style argument
  2874. can be used to choose an appropriate demangling style for your
  2875. compiler. *Note c++filt::, for more information on demangling.
  2876. '-e FILENAME'
  2877. '--exe=FILENAME'
  2878. Specify the name of the executable for which addresses should be
  2879. translated. The default file is 'a.out'.
  2880. '-f'
  2881. '--functions'
  2882. Display function names as well as file and line number information.
  2883. '-s'
  2884. '--basenames'
  2885. Display only the base of each file name.
  2886. '-i'
  2887. '--inlines'
  2888. If the address belongs to a function that was inlined, the source
  2889. information for all enclosing scopes back to the first non-inlined
  2890. function will also be printed. For example, if 'main' inlines
  2891. 'callee1' which inlines 'callee2', and address is from 'callee2',
  2892. the source information for 'callee1' and 'main' will also be
  2893. printed.
  2894. '-j'
  2895. '--section'
  2896. Read offsets relative to the specified section instead of absolute
  2897. addresses.
  2898. '-p'
  2899. '--pretty-print'
  2900. Make the output more human friendly: each location are printed on
  2901. one line. If option '-i' is specified, lines for all enclosing
  2902. scopes are prefixed with '(inlined by)'.
  2903. '-r'
  2904. '-R'
  2905. '--recurse-limit'
  2906. '--no-recurse-limit'
  2907. '--recursion-limit'
  2908. '--no-recursion-limit'
  2909. Enables or disables a limit on the amount of recursion performed
  2910. whilst demangling strings. Since the name mangling formats allow
  2911. for an infinite level of recursion it is possible to create strings
  2912. whose decoding will exhaust the amount of stack space available on
  2913. the host machine, triggering a memory fault. The limit tries to
  2914. prevent this from happening by restricting recursion to 2048 levels
  2915. of nesting.
  2916. The default is for this limit to be enabled, but disabling it may
  2917. be necessary in order to demangle truly complicated names. Note
  2918. however that if the recursion limit is disabled then stack
  2919. exhaustion is possible and any bug reports about such an event will
  2920. be rejected.
  2921. The '-r' option is a synonym for the '--no-recurse-limit' option.
  2922. The '-R' option is a synonym for the '--recurse-limit' option.
  2923. Note this option is only effective if the '-C' or '--demangle'
  2924. option has been enabled.
  2925. 
  2926. File: binutils.info, Node: windmc, Next: windres, Prev: addr2line, Up: Top
  2927. 11 windmc
  2928. *********
  2929. 'windmc' may be used to generator Windows message resources.
  2930. _Warning:_ 'windmc' is not always built as part of the binary
  2931. utilities, since it is only useful for Windows targets.
  2932. windmc [options] input-file
  2933. 'windmc' reads message definitions from an input file (.mc) and
  2934. translate them into a set of output files. The output files may be of
  2935. four kinds:
  2936. 'h'
  2937. A C header file containing the message definitions.
  2938. 'rc'
  2939. A resource file compilable by the 'windres' tool.
  2940. 'bin'
  2941. One or more binary files containing the resource data for a
  2942. specific message language.
  2943. 'dbg'
  2944. A C include file that maps message id's to their symbolic name.
  2945. The exact description of these different formats is available in
  2946. documentation from Microsoft.
  2947. When 'windmc' converts from the 'mc' format to the 'bin' format,
  2948. 'rc', 'h', and optional 'dbg' it is acting like the Windows Message
  2949. Compiler.
  2950. '-a'
  2951. '--ascii_in'
  2952. Specifies that the input file specified is ASCII. This is the
  2953. default behaviour.
  2954. '-A'
  2955. '--ascii_out'
  2956. Specifies that messages in the output 'bin' files should be in
  2957. ASCII format.
  2958. '-b'
  2959. '--binprefix'
  2960. Specifies that 'bin' filenames should have to be prefixed by the
  2961. basename of the source file.
  2962. '-c'
  2963. '--customflag'
  2964. Sets the customer bit in all message id's.
  2965. '-C CODEPAGE'
  2966. '--codepage_in CODEPAGE'
  2967. Sets the default codepage to be used to convert input file to
  2968. UTF16. The default is ocdepage 1252.
  2969. '-d'
  2970. '--decimal_values'
  2971. Outputs the constants in the header file in decimal. Default is
  2972. using hexadecimal output.
  2973. '-e EXT'
  2974. '--extension EXT'
  2975. The extension for the header file. The default is .h extension.
  2976. '-F TARGET'
  2977. '--target TARGET'
  2978. Specify the BFD format to use for a bin file as output. This is a
  2979. BFD target name; you can use the '--help' option to see a list of
  2980. supported targets. Normally 'windmc' will use the default format,
  2981. which is the first one listed by the '--help' option. *note Target
  2982. Selection::.
  2983. '-h PATH'
  2984. '--headerdir PATH'
  2985. The target directory of the generated header file. The default is
  2986. the current directory.
  2987. '-H'
  2988. '--help'
  2989. Displays a list of command-line options and then exits.
  2990. '-m CHARACTERS'
  2991. '--maxlength CHARACTERS'
  2992. Instructs 'windmc' to generate a warning if the length of any
  2993. message exceeds the number specified.
  2994. '-n'
  2995. '--nullterminate'
  2996. Terminate message text in 'bin' files by zero. By default they are
  2997. terminated by CR/LF.
  2998. '-o'
  2999. '--hresult_use'
  3000. Not yet implemented. Instructs 'windmc' to generate an OLE2 header
  3001. file, using HRESULT definitions. Status codes are used if the flag
  3002. is not specified.
  3003. '-O CODEPAGE'
  3004. '--codepage_out CODEPAGE'
  3005. Sets the default codepage to be used to output text files. The
  3006. default is ocdepage 1252.
  3007. '-r PATH'
  3008. '--rcdir PATH'
  3009. The target directory for the generated 'rc' script and the
  3010. generated 'bin' files that the resource compiler script includes.
  3011. The default is the current directory.
  3012. '-u'
  3013. '--unicode_in'
  3014. Specifies that the input file is UTF16.
  3015. '-U'
  3016. '--unicode_out'
  3017. Specifies that messages in the output 'bin' file should be in UTF16
  3018. format. This is the default behaviour.
  3019. '-v'
  3020. '--verbose'
  3021. Enable verbose mode.
  3022. '-V'
  3023. '--version'
  3024. Prints the version number for 'windmc'.
  3025. '-x PATH'
  3026. '--xdgb PATH'
  3027. The path of the 'dbg' C include file that maps message id's to the
  3028. symbolic name. No such file is generated without specifying the
  3029. switch.
  3030. 
  3031. File: binutils.info, Node: windres, Next: dlltool, Prev: windmc, Up: Top
  3032. 12 windres
  3033. **********
  3034. 'windres' may be used to manipulate Windows resources.
  3035. _Warning:_ 'windres' is not always built as part of the binary
  3036. utilities, since it is only useful for Windows targets.
  3037. windres [options] [input-file] [output-file]
  3038. 'windres' reads resources from an input file and copies them into an
  3039. output file. Either file may be in one of three formats:
  3040. 'rc'
  3041. A text format read by the Resource Compiler.
  3042. 'res'
  3043. A binary format generated by the Resource Compiler.
  3044. 'coff'
  3045. A COFF object or executable.
  3046. The exact description of these different formats is available in
  3047. documentation from Microsoft.
  3048. When 'windres' converts from the 'rc' format to the 'res' format, it
  3049. is acting like the Windows Resource Compiler. When 'windres' converts
  3050. from the 'res' format to the 'coff' format, it is acting like the
  3051. Windows 'CVTRES' program.
  3052. When 'windres' generates an 'rc' file, the output is similar but not
  3053. identical to the format expected for the input. When an input 'rc' file
  3054. refers to an external filename, an output 'rc' file will instead include
  3055. the file contents.
  3056. If the input or output format is not specified, 'windres' will guess
  3057. based on the file name, or, for the input file, the file contents. A
  3058. file with an extension of '.rc' will be treated as an 'rc' file, a file
  3059. with an extension of '.res' will be treated as a 'res' file, and a file
  3060. with an extension of '.o' or '.exe' will be treated as a 'coff' file.
  3061. If no output file is specified, 'windres' will print the resources in
  3062. 'rc' format to standard output.
  3063. The normal use is for you to write an 'rc' file, use 'windres' to
  3064. convert it to a COFF object file, and then link the COFF file into your
  3065. application. This will make the resources described in the 'rc' file
  3066. available to Windows.
  3067. '-i FILENAME'
  3068. '--input FILENAME'
  3069. The name of the input file. If this option is not used, then
  3070. 'windres' will use the first non-option argument as the input file
  3071. name. If there are no non-option arguments, then 'windres' will
  3072. read from standard input. 'windres' can not read a COFF file from
  3073. standard input.
  3074. '-o FILENAME'
  3075. '--output FILENAME'
  3076. The name of the output file. If this option is not used, then
  3077. 'windres' will use the first non-option argument, after any used
  3078. for the input file name, as the output file name. If there is no
  3079. non-option argument, then 'windres' will write to standard output.
  3080. 'windres' can not write a COFF file to standard output. Note, for
  3081. compatibility with 'rc' the option '-fo' is also accepted, but its
  3082. use is not recommended.
  3083. '-J FORMAT'
  3084. '--input-format FORMAT'
  3085. The input format to read. FORMAT may be 'res', 'rc', or 'coff'.
  3086. If no input format is specified, 'windres' will guess, as described
  3087. above.
  3088. '-O FORMAT'
  3089. '--output-format FORMAT'
  3090. The output format to generate. FORMAT may be 'res', 'rc', or
  3091. 'coff'. If no output format is specified, 'windres' will guess, as
  3092. described above.
  3093. '-F TARGET'
  3094. '--target TARGET'
  3095. Specify the BFD format to use for a COFF file as input or output.
  3096. This is a BFD target name; you can use the '--help' option to see a
  3097. list of supported targets. Normally 'windres' will use the default
  3098. format, which is the first one listed by the '--help' option.
  3099. *note Target Selection::.
  3100. '--preprocessor PROGRAM'
  3101. When 'windres' reads an 'rc' file, it runs it through the C
  3102. preprocessor first. This option may be used to specify the
  3103. preprocessor to use, including any leading arguments. The default
  3104. preprocessor argument is 'gcc -E -xc-header -DRC_INVOKED'.
  3105. '--preprocessor-arg OPTION'
  3106. When 'windres' reads an 'rc' file, it runs it through the C
  3107. preprocessor first. This option may be used to specify additional
  3108. text to be passed to preprocessor on its command line. This option
  3109. can be used multiple times to add multiple options to the
  3110. preprocessor command line.
  3111. '-I DIRECTORY'
  3112. '--include-dir DIRECTORY'
  3113. Specify an include directory to use when reading an 'rc' file.
  3114. 'windres' will pass this to the preprocessor as an '-I' option.
  3115. 'windres' will also search this directory when looking for files
  3116. named in the 'rc' file. If the argument passed to this command
  3117. matches any of the supported FORMATS (as described in the '-J'
  3118. option), it will issue a deprecation warning, and behave just like
  3119. the '-J' option. New programs should not use this behaviour. If a
  3120. directory happens to match a FORMAT, simple prefix it with './' to
  3121. disable the backward compatibility.
  3122. '-D TARGET'
  3123. '--define SYM[=VAL]'
  3124. Specify a '-D' option to pass to the preprocessor when reading an
  3125. 'rc' file.
  3126. '-U TARGET'
  3127. '--undefine SYM'
  3128. Specify a '-U' option to pass to the preprocessor when reading an
  3129. 'rc' file.
  3130. '-r'
  3131. Ignored for compatibility with rc.
  3132. '-v'
  3133. Enable verbose mode. This tells you what the preprocessor is if
  3134. you didn't specify one.
  3135. '-c VAL'
  3136. '--codepage VAL'
  3137. Specify the default codepage to use when reading an 'rc' file. VAL
  3138. should be a hexadecimal prefixed by '0x' or decimal codepage code.
  3139. The valid range is from zero up to 0xffff, but the validity of the
  3140. codepage is host and configuration dependent.
  3141. '-l VAL'
  3142. '--language VAL'
  3143. Specify the default language to use when reading an 'rc' file. VAL
  3144. should be a hexadecimal language code. The low eight bits are the
  3145. language, and the high eight bits are the sublanguage.
  3146. '--use-temp-file'
  3147. Use a temporary file to instead of using popen to read the output
  3148. of the preprocessor. Use this option if the popen implementation
  3149. is buggy on the host (eg., certain non-English language versions of
  3150. Windows 95 and Windows 98 are known to have buggy popen where the
  3151. output will instead go the console).
  3152. '--no-use-temp-file'
  3153. Use popen, not a temporary file, to read the output of the
  3154. preprocessor. This is the default behaviour.
  3155. '-h'
  3156. '--help'
  3157. Prints a usage summary.
  3158. '-V'
  3159. '--version'
  3160. Prints the version number for 'windres'.
  3161. '--yydebug'
  3162. If 'windres' is compiled with 'YYDEBUG' defined as '1', this will
  3163. turn on parser debugging.
  3164. 
  3165. File: binutils.info, Node: dlltool, Next: readelf, Prev: windres, Up: Top
  3166. 13 dlltool
  3167. **********
  3168. 'dlltool' is used to create the files needed to create dynamic link
  3169. libraries (DLLs) on systems which understand PE format image files such
  3170. as Windows. A DLL contains an export table which contains information
  3171. that the runtime loader needs to resolve references from a referencing
  3172. program.
  3173. The export table is generated by this program by reading in a '.def'
  3174. file or scanning the '.a' and '.o' files which will be in the DLL. A
  3175. '.o' file can contain information in special '.drectve' sections with
  3176. export information.
  3177. _Note:_ 'dlltool' is not always built as part of the binary
  3178. utilities, since it is only useful for those targets which support
  3179. DLLs.
  3180. dlltool [-d|--input-def DEF-FILE-NAME]
  3181. [-b|--base-file BASE-FILE-NAME]
  3182. [-e|--output-exp EXPORTS-FILE-NAME]
  3183. [-z|--output-def DEF-FILE-NAME]
  3184. [-l|--output-lib LIBRARY-FILE-NAME]
  3185. [-y|--output-delaylib LIBRARY-FILE-NAME]
  3186. [--export-all-symbols] [--no-export-all-symbols]
  3187. [--exclude-symbols LIST]
  3188. [--no-default-excludes]
  3189. [-S|--as PATH-TO-ASSEMBLER] [-f|--as-flags OPTIONS]
  3190. [-D|--dllname NAME] [-m|--machine MACHINE]
  3191. [-a|--add-indirect]
  3192. [-U|--add-underscore] [--add-stdcall-underscore]
  3193. [-k|--kill-at] [-A|--add-stdcall-alias]
  3194. [-p|--ext-prefix-alias PREFIX]
  3195. [-x|--no-idata4] [-c|--no-idata5]
  3196. [--use-nul-prefixed-import-tables]
  3197. [-I|--identify LIBRARY-FILE-NAME] [--identify-strict]
  3198. [-i|--interwork]
  3199. [-n|--nodelete] [-t|--temp-prefix PREFIX]
  3200. [-v|--verbose]
  3201. [-h|--help] [-V|--version]
  3202. [--no-leading-underscore] [--leading-underscore]
  3203. [object-file ...]
  3204. 'dlltool' reads its inputs, which can come from the '-d' and '-b'
  3205. options as well as object files specified on the command line. It then
  3206. processes these inputs and if the '-e' option has been specified it
  3207. creates a exports file. If the '-l' option has been specified it
  3208. creates a library file and if the '-z' option has been specified it
  3209. creates a def file. Any or all of the '-e', '-l' and '-z' options can
  3210. be present in one invocation of dlltool.
  3211. When creating a DLL, along with the source for the DLL, it is
  3212. necessary to have three other files. 'dlltool' can help with the
  3213. creation of these files.
  3214. The first file is a '.def' file which specifies which functions are
  3215. exported from the DLL, which functions the DLL imports, and so on. This
  3216. is a text file and can be created by hand, or 'dlltool' can be used to
  3217. create it using the '-z' option. In this case 'dlltool' will scan the
  3218. object files specified on its command line looking for those functions
  3219. which have been specially marked as being exported and put entries for
  3220. them in the '.def' file it creates.
  3221. In order to mark a function as being exported from a DLL, it needs to
  3222. have an '-export:<name_of_function>' entry in the '.drectve' section of
  3223. the object file. This can be done in C by using the asm() operator:
  3224. asm (".section .drectve");
  3225. asm (".ascii \"-export:my_func\"");
  3226. int my_func (void) { ... }
  3227. The second file needed for DLL creation is an exports file. This
  3228. file is linked with the object files that make up the body of the DLL
  3229. and it handles the interface between the DLL and the outside world.
  3230. This is a binary file and it can be created by giving the '-e' option to
  3231. 'dlltool' when it is creating or reading in a '.def' file.
  3232. The third file needed for DLL creation is the library file that
  3233. programs will link with in order to access the functions in the DLL (an
  3234. 'import library'). This file can be created by giving the '-l' option
  3235. to dlltool when it is creating or reading in a '.def' file.
  3236. If the '-y' option is specified, dlltool generates a delay-import
  3237. library that can be used instead of the normal import library to allow a
  3238. program to link to the dll only as soon as an imported function is
  3239. called for the first time. The resulting executable will need to be
  3240. linked to the static delayimp library containing __delayLoadHelper2(),
  3241. which in turn will import LoadLibraryA and GetProcAddress from kernel32.
  3242. 'dlltool' builds the library file by hand, but it builds the exports
  3243. file by creating temporary files containing assembler statements and
  3244. then assembling these. The '-S' command-line option can be used to
  3245. specify the path to the assembler that dlltool will use, and the '-f'
  3246. option can be used to pass specific flags to that assembler. The '-n'
  3247. can be used to prevent dlltool from deleting these temporary assembler
  3248. files when it is done, and if '-n' is specified twice then this will
  3249. prevent dlltool from deleting the temporary object files it used to
  3250. build the library.
  3251. Here is an example of creating a DLL from a source file 'dll.c' and
  3252. also creating a program (from an object file called 'program.o') that
  3253. uses that DLL:
  3254. gcc -c dll.c
  3255. dlltool -e exports.o -l dll.lib dll.o
  3256. gcc dll.o exports.o -o dll.dll
  3257. gcc program.o dll.lib -o program
  3258. 'dlltool' may also be used to query an existing import library to
  3259. determine the name of the DLL to which it is associated. See the
  3260. description of the '-I' or '--identify' option.
  3261. The command-line options have the following meanings:
  3262. '-d FILENAME'
  3263. '--input-def FILENAME'
  3264. Specifies the name of a '.def' file to be read in and processed.
  3265. '-b FILENAME'
  3266. '--base-file FILENAME'
  3267. Specifies the name of a base file to be read in and processed. The
  3268. contents of this file will be added to the relocation section in
  3269. the exports file generated by dlltool.
  3270. '-e FILENAME'
  3271. '--output-exp FILENAME'
  3272. Specifies the name of the export file to be created by dlltool.
  3273. '-z FILENAME'
  3274. '--output-def FILENAME'
  3275. Specifies the name of the '.def' file to be created by dlltool.
  3276. '-l FILENAME'
  3277. '--output-lib FILENAME'
  3278. Specifies the name of the library file to be created by dlltool.
  3279. '-y FILENAME'
  3280. '--output-delaylib FILENAME'
  3281. Specifies the name of the delay-import library file to be created
  3282. by dlltool.
  3283. '--export-all-symbols'
  3284. Treat all global and weak defined symbols found in the input object
  3285. files as symbols to be exported. There is a small list of symbols
  3286. which are not exported by default; see the '--no-default-excludes'
  3287. option. You may add to the list of symbols to not export by using
  3288. the '--exclude-symbols' option.
  3289. '--no-export-all-symbols'
  3290. Only export symbols explicitly listed in an input '.def' file or in
  3291. '.drectve' sections in the input object files. This is the default
  3292. behaviour. The '.drectve' sections are created by 'dllexport'
  3293. attributes in the source code.
  3294. '--exclude-symbols LIST'
  3295. Do not export the symbols in LIST. This is a list of symbol names
  3296. separated by comma or colon characters. The symbol names should
  3297. not contain a leading underscore. This is only meaningful when
  3298. '--export-all-symbols' is used.
  3299. '--no-default-excludes'
  3300. When '--export-all-symbols' is used, it will by default avoid
  3301. exporting certain special symbols. The current list of symbols to
  3302. avoid exporting is 'DllMain@12', 'DllEntryPoint@0', 'impure_ptr'.
  3303. You may use the '--no-default-excludes' option to go ahead and
  3304. export these special symbols. This is only meaningful when
  3305. '--export-all-symbols' is used.
  3306. '-S PATH'
  3307. '--as PATH'
  3308. Specifies the path, including the filename, of the assembler to be
  3309. used to create the exports file.
  3310. '-f OPTIONS'
  3311. '--as-flags OPTIONS'
  3312. Specifies any specific command-line options to be passed to the
  3313. assembler when building the exports file. This option will work
  3314. even if the '-S' option is not used. This option only takes one
  3315. argument, and if it occurs more than once on the command line, then
  3316. later occurrences will override earlier occurrences. So if it is
  3317. necessary to pass multiple options to the assembler they should be
  3318. enclosed in double quotes.
  3319. '-D NAME'
  3320. '--dll-name NAME'
  3321. Specifies the name to be stored in the '.def' file as the name of
  3322. the DLL when the '-e' option is used. If this option is not
  3323. present, then the filename given to the '-e' option will be used as
  3324. the name of the DLL.
  3325. '-m MACHINE'
  3326. '-machine MACHINE'
  3327. Specifies the type of machine for which the library file should be
  3328. built. 'dlltool' has a built in default type, depending upon how
  3329. it was created, but this option can be used to override that. This
  3330. is normally only useful when creating DLLs for an ARM processor,
  3331. when the contents of the DLL are actually encode using Thumb
  3332. instructions.
  3333. '-a'
  3334. '--add-indirect'
  3335. Specifies that when 'dlltool' is creating the exports file it
  3336. should add a section which allows the exported functions to be
  3337. referenced without using the import library. Whatever the hell
  3338. that means!
  3339. '-U'
  3340. '--add-underscore'
  3341. Specifies that when 'dlltool' is creating the exports file it
  3342. should prepend an underscore to the names of _all_ exported
  3343. symbols.
  3344. '--no-leading-underscore'
  3345. '--leading-underscore'
  3346. Specifies whether standard symbol should be forced to be prefixed,
  3347. or not.
  3348. '--add-stdcall-underscore'
  3349. Specifies that when 'dlltool' is creating the exports file it
  3350. should prepend an underscore to the names of exported _stdcall_
  3351. functions. Variable names and non-stdcall function names are not
  3352. modified. This option is useful when creating GNU-compatible
  3353. import libs for third party DLLs that were built with MS-Windows
  3354. tools.
  3355. '-k'
  3356. '--kill-at'
  3357. Specifies that '@<number>' suffixes should be omitted from the
  3358. names of stdcall functions that will be imported from the DLL. This
  3359. is useful when creating an import library for a DLL which exports
  3360. stdcall functions but without the usual '@<number>' symbol name
  3361. suffix.
  3362. This does not change the naming of symbols provided by the import
  3363. library to programs linked against it, but only the entries in the
  3364. import table (ie the .idata section).
  3365. '-A'
  3366. '--add-stdcall-alias'
  3367. Specifies that when 'dlltool' is creating the exports file it
  3368. should add aliases for stdcall symbols without '@ <number>' in
  3369. addition to the symbols with '@ <number>'.
  3370. '-p'
  3371. '--ext-prefix-alias PREFIX'
  3372. Causes 'dlltool' to create external aliases for all DLL imports
  3373. with the specified prefix. The aliases are created for both
  3374. external and import symbols with no leading underscore.
  3375. '-x'
  3376. '--no-idata4'
  3377. Specifies that when 'dlltool' is creating the exports and library
  3378. files it should omit the '.idata4' section. This is for
  3379. compatibility with certain operating systems.
  3380. '--use-nul-prefixed-import-tables'
  3381. Specifies that when 'dlltool' is creating the exports and library
  3382. files it should prefix the '.idata4' and '.idata5' by zero an
  3383. element. This emulates old gnu import library generation of
  3384. 'dlltool'. By default this option is turned off.
  3385. '-c'
  3386. '--no-idata5'
  3387. Specifies that when 'dlltool' is creating the exports and library
  3388. files it should omit the '.idata5' section. This is for
  3389. compatibility with certain operating systems.
  3390. '-I FILENAME'
  3391. '--identify FILENAME'
  3392. Specifies that 'dlltool' should inspect the import library
  3393. indicated by FILENAME and report, on 'stdout', the name(s) of the
  3394. associated DLL(s). This can be performed in addition to any other
  3395. operations indicated by the other options and arguments. 'dlltool'
  3396. fails if the import library does not exist or is not actually an
  3397. import library. See also '--identify-strict'.
  3398. '--identify-strict'
  3399. Modifies the behavior of the '--identify' option, such that an
  3400. error is reported if FILENAME is associated with more than one DLL.
  3401. '-i'
  3402. '--interwork'
  3403. Specifies that 'dlltool' should mark the objects in the library
  3404. file and exports file that it produces as supporting interworking
  3405. between ARM and Thumb code.
  3406. '-n'
  3407. '--nodelete'
  3408. Makes 'dlltool' preserve the temporary assembler files it used to
  3409. create the exports file. If this option is repeated then dlltool
  3410. will also preserve the temporary object files it uses to create the
  3411. library file.
  3412. '-t PREFIX'
  3413. '--temp-prefix PREFIX'
  3414. Makes 'dlltool' use PREFIX when constructing the names of temporary
  3415. assembler and object files. By default, the temp file prefix is
  3416. generated from the pid.
  3417. '-v'
  3418. '--verbose'
  3419. Make dlltool describe what it is doing.
  3420. '-h'
  3421. '--help'
  3422. Displays a list of command-line options and then exits.
  3423. '-V'
  3424. '--version'
  3425. Displays dlltool's version number and then exits.
  3426. * Menu:
  3427. * def file format:: The format of the dlltool '.def' file
  3428. 
  3429. File: binutils.info, Node: def file format, Up: dlltool
  3430. 13.1 The format of the 'dlltool' '.def' file
  3431. ============================================
  3432. A '.def' file contains any number of the following commands:
  3433. 'NAME' NAME '[ ,' BASE ']'
  3434. The result is going to be named NAME'.exe'.
  3435. 'LIBRARY' NAME '[ ,' BASE ']'
  3436. The result is going to be named NAME'.dll'. Note: If you want to
  3437. use LIBRARY as name then you need to quote. Otherwise this will
  3438. fail due a necessary hack for libtool (see PR binutils/13710 for
  3439. more details).
  3440. 'EXPORTS ( ( (' NAME1 '[ = ' NAME2 '] ) | ( ' NAME1 '=' MODULE-NAME '.' EXTERNAL-NAME ') ) [ == ' ITS_NAME ']'
  3441. '[' INTEGER '] [ NONAME ] [ CONSTANT ] [ DATA ] [ PRIVATE ] ) *'
  3442. Declares NAME1 as an exported symbol from the DLL, with optional
  3443. ordinal number INTEGER, or declares NAME1 as an alias (forward) of
  3444. the function EXTERNAL-NAME in the DLL. If ITS_NAME is specified,
  3445. this name is used as string in export table. MODULE-NAME. Note:
  3446. The 'EXPORTS' has to be the last command in .def file, as keywords
  3447. are treated - beside 'LIBRARY' - as simple name-identifiers. If
  3448. you want to use LIBRARY as name then you need to quote it.
  3449. 'IMPORTS ( (' INTERNAL-NAME '=' MODULE-NAME '.' INTEGER ') | [' INTERNAL-NAME '= ]' MODULE-NAME '.' EXTERNAL-NAME ') [ == ) ITS_NAME ] *'
  3450. Declares that EXTERNAL-NAME or the exported function whose ordinal
  3451. number is INTEGER is to be imported from the file MODULE-NAME. If
  3452. INTERNAL-NAME is specified then this is the name that the imported
  3453. function will be referred to in the body of the DLL. If ITS_NAME is
  3454. specified, this name is used as string in import table. Note: The
  3455. 'IMPORTS' has to be the last command in .def file, as keywords are
  3456. treated - beside 'LIBRARY' - as simple name-identifiers. If you
  3457. want to use LIBRARY as name then you need to quote it.
  3458. 'DESCRIPTION' STRING
  3459. Puts STRING into the output '.exp' file in the '.rdata' section.
  3460. 'STACKSIZE' NUMBER-RESERVE '[, ' NUMBER-COMMIT ']'
  3461. 'HEAPSIZE' NUMBER-RESERVE '[, ' NUMBER-COMMIT ']'
  3462. Generates '--stack' or '--heap' NUMBER-RESERVE,NUMBER-COMMIT in the
  3463. output '.drectve' section. The linker will see this and act upon
  3464. it.
  3465. 'CODE' ATTR '+'
  3466. 'DATA' ATTR '+'
  3467. 'SECTIONS (' SECTION-NAME ATTR' + ) *'
  3468. Generates '--attr' SECTION-NAME ATTR in the output '.drectve'
  3469. section, where ATTR is one of 'READ', 'WRITE', 'EXECUTE' or
  3470. 'SHARED'. The linker will see this and act upon it.
  3471. 
  3472. File: binutils.info, Node: readelf, Next: elfedit, Prev: dlltool, Up: Top
  3473. 14 readelf
  3474. **********
  3475. readelf [-a|--all]
  3476. [-h|--file-header]
  3477. [-l|--program-headers|--segments]
  3478. [-S|--section-headers|--sections]
  3479. [-g|--section-groups]
  3480. [-t|--section-details]
  3481. [-e|--headers]
  3482. [-s|--syms|--symbols]
  3483. [--dyn-syms|--lto-syms]
  3484. [--demangle=STYLE|--no-demangle]
  3485. [--recurse-limit|--no-recurse-limit]
  3486. [-n|--notes]
  3487. [-r|--relocs]
  3488. [-u|--unwind]
  3489. [-d|--dynamic]
  3490. [-V|--version-info]
  3491. [-A|--arch-specific]
  3492. [-D|--use-dynamic]
  3493. [-L|--lint|--enable-checks]
  3494. [-x <number or name>|--hex-dump=<number or name>]
  3495. [-p <number or name>|--string-dump=<number or name>]
  3496. [-R <number or name>|--relocated-dump=<number or name>]
  3497. [-z|--decompress]
  3498. [-c|--archive-index]
  3499. [-w[lLiaprmfFsoORtUuTgAckK]|
  3500. --debug-dump[=rawline,=decodedline,=info,=abbrev,=pubnames,=aranges,=macro,=frames,=frames-interp,=str,=str-offsets,=loc,=Ranges,=pubtypes,=trace_info,=trace_abbrev,=trace_aranges,=gdb_index,=addr,=cu_index,=links,=follow-links]]
  3501. [--dwarf-depth=N]
  3502. [--dwarf-start=N]
  3503. [--ctf=SECTION]
  3504. [--ctf-parent=SECTION]
  3505. [--ctf-symbols=SECTION]
  3506. [--ctf-strings=SECTION]
  3507. [-I|--histogram]
  3508. [-v|--version]
  3509. [-W|--wide]
  3510. [-T|--silent-truncation]
  3511. [-H|--help]
  3512. ELFFILE...
  3513. 'readelf' displays information about one or more ELF format object
  3514. files. The options control what particular information to display.
  3515. ELFFILE... are the object files to be examined. 32-bit and 64-bit
  3516. ELF files are supported, as are archives containing ELF files.
  3517. This program performs a similar function to 'objdump' but it goes
  3518. into more detail and it exists independently of the BFD library, so if
  3519. there is a bug in BFD then readelf will not be affected.
  3520. The long and short forms of options, shown here as alternatives, are
  3521. equivalent. At least one option besides '-v' or '-H' must be given.
  3522. '-a'
  3523. '--all'
  3524. Equivalent to specifying '--file-header', '--program-headers',
  3525. '--sections', '--symbols', '--relocs', '--dynamic', '--notes',
  3526. '--version-info', '--arch-specific', '--unwind', '--section-groups'
  3527. and '--histogram'.
  3528. Note - this option does not enable '--use-dynamic' itself, so if
  3529. that option is not present on the command line then dynamic symbols
  3530. and dynamic relocs will not be displayed.
  3531. '-h'
  3532. '--file-header'
  3533. Displays the information contained in the ELF header at the start
  3534. of the file.
  3535. '-l'
  3536. '--program-headers'
  3537. '--segments'
  3538. Displays the information contained in the file's segment headers,
  3539. if it has any.
  3540. '-S'
  3541. '--sections'
  3542. '--section-headers'
  3543. Displays the information contained in the file's section headers,
  3544. if it has any.
  3545. '-g'
  3546. '--section-groups'
  3547. Displays the information contained in the file's section groups, if
  3548. it has any.
  3549. '-t'
  3550. '--section-details'
  3551. Displays the detailed section information. Implies '-S'.
  3552. '-s'
  3553. '--symbols'
  3554. '--syms'
  3555. Displays the entries in symbol table section of the file, if it has
  3556. one. If a symbol has version information associated with it then
  3557. this is displayed as well. The version string is displayed as a
  3558. suffix to the symbol name, preceded by an @ character. For example
  3559. 'foo@VER_1'. If the version is the default version to be used when
  3560. resolving unversioned references to the symbol then it is displayed
  3561. as a suffix preceded by two @ characters. For example
  3562. 'foo@@VER_2'.
  3563. '--dyn-syms'
  3564. Displays the entries in dynamic symbol table section of the file,
  3565. if it has one. The output format is the same as the format used by
  3566. the '--syms' option.
  3567. '--lto-syms'
  3568. Displays the contents of any LTO symbol tables in the file.
  3569. '-C'
  3570. '--demangle[=STYLE]'
  3571. Decode ("demangle") low-level symbol names into user-level names.
  3572. This makes C++ function names readable. Different compilers have
  3573. different mangling styles. The optional demangling style argument
  3574. can be used to choose an appropriate demangling style for your
  3575. compiler. *Note c++filt::, for more information on demangling.
  3576. '--no-demangle'
  3577. Do not demangle low-level symbol names. This is the default.
  3578. '--recurse-limit'
  3579. '--no-recurse-limit'
  3580. '--recursion-limit'
  3581. '--no-recursion-limit'
  3582. Enables or disables a limit on the amount of recursion performed
  3583. whilst demangling strings. Since the name mangling formats allow
  3584. for an infinite level of recursion it is possible to create strings
  3585. whose decoding will exhaust the amount of stack space available on
  3586. the host machine, triggering a memory fault. The limit tries to
  3587. prevent this from happening by restricting recursion to 2048 levels
  3588. of nesting.
  3589. The default is for this limit to be enabled, but disabling it may
  3590. be necessary in order to demangle truly complicated names. Note
  3591. however that if the recursion limit is disabled then stack
  3592. exhaustion is possible and any bug reports about such an event will
  3593. be rejected.
  3594. '-e'
  3595. '--headers'
  3596. Display all the headers in the file. Equivalent to '-h -l -S'.
  3597. '-n'
  3598. '--notes'
  3599. Displays the contents of the NOTE segments and/or sections, if any.
  3600. '-r'
  3601. '--relocs'
  3602. Displays the contents of the file's relocation section, if it has
  3603. one.
  3604. '-u'
  3605. '--unwind'
  3606. Displays the contents of the file's unwind section, if it has one.
  3607. Only the unwind sections for IA64 ELF files, as well as ARM unwind
  3608. tables ('.ARM.exidx' / '.ARM.extab') are currently supported. If
  3609. support is not yet implemented for your architecture you could try
  3610. dumping the contents of the .EH_FRAMES section using the
  3611. '--debug-dump=frames' or '--debug-dump=frames-interp' options.
  3612. '-d'
  3613. '--dynamic'
  3614. Displays the contents of the file's dynamic section, if it has one.
  3615. '-V'
  3616. '--version-info'
  3617. Displays the contents of the version sections in the file, it they
  3618. exist.
  3619. '-A'
  3620. '--arch-specific'
  3621. Displays architecture-specific information in the file, if there is
  3622. any.
  3623. '-D'
  3624. '--use-dynamic'
  3625. When displaying symbols, this option makes 'readelf' use the symbol
  3626. hash tables in the file's dynamic section, rather than the symbol
  3627. table sections.
  3628. When displaying relocations, this option makes 'readelf' display
  3629. the dynamic relocations rather than the static relocations.
  3630. '-L'
  3631. '--lint'
  3632. '--enable-checks'
  3633. Displays warning messages about possible problems with the file(s)
  3634. being examined. If used on its own then all of the contents of the
  3635. file(s) will be examined. If used with one of the dumping options
  3636. then the warning messages will only be produced for the things
  3637. being displayed.
  3638. '-x <number or name>'
  3639. '--hex-dump=<number or name>'
  3640. Displays the contents of the indicated section as a hexadecimal
  3641. bytes. A number identifies a particular section by index in the
  3642. section table; any other string identifies all sections with that
  3643. name in the object file.
  3644. '-R <number or name>'
  3645. '--relocated-dump=<number or name>'
  3646. Displays the contents of the indicated section as a hexadecimal
  3647. bytes. A number identifies a particular section by index in the
  3648. section table; any other string identifies all sections with that
  3649. name in the object file. The contents of the section will be
  3650. relocated before they are displayed.
  3651. '-p <number or name>'
  3652. '--string-dump=<number or name>'
  3653. Displays the contents of the indicated section as printable
  3654. strings. A number identifies a particular section by index in the
  3655. section table; any other string identifies all sections with that
  3656. name in the object file.
  3657. '-z'
  3658. '--decompress'
  3659. Requests that the section(s) being dumped by 'x', 'R' or 'p'
  3660. options are decompressed before being displayed. If the section(s)
  3661. are not compressed then they are displayed as is.
  3662. '-c'
  3663. '--archive-index'
  3664. Displays the file symbol index information contained in the header
  3665. part of binary archives. Performs the same function as the 't'
  3666. command to 'ar', but without using the BFD library. *Note ar::.
  3667. '-w[lLiaprmfFsOoRtUuTgAckK]'
  3668. '--debug-dump[=rawline,=decodedline,=info,=abbrev,=pubnames,=aranges,=macro,=frames,=frames-interp,=str,=str-offsets,=loc,=Ranges,=pubtypes,=trace_info,=trace_abbrev,=trace_aranges,=gdb_index,=addr,=cu_index,=links,=follow-links]'
  3669. Displays the contents of the DWARF debug sections in the file, if
  3670. any are present. Compressed debug sections are automatically
  3671. decompressed (temporarily) before they are displayed. If one or
  3672. more of the optional letters or words follows the switch then only
  3673. those type(s) of data will be dumped. The letters and words refer
  3674. to the following information:
  3675. 'a'
  3676. '=abbrev'
  3677. Displays the contents of the '.debug_abbrev' section.
  3678. 'A'
  3679. '=addr'
  3680. Displays the contents of the '.debug_addr' section.
  3681. 'c'
  3682. '=cu_index'
  3683. Displays the contents of the '.debug_cu_index' and/or
  3684. '.debug_tu_index' sections.
  3685. 'f'
  3686. '=frames'
  3687. Display the raw contents of a '.debug_frame' section.
  3688. 'F'
  3689. '=frame-interp'
  3690. Display the interpreted contents of a '.debug_frame' section.
  3691. 'g'
  3692. '=gdb_index'
  3693. Displays the contents of the '.gdb_index' and/or
  3694. '.debug_names' sections.
  3695. 'i'
  3696. '=info'
  3697. Displays the contents of the '.debug_info' section. Note: the
  3698. output from this option can also be restricted by the use of
  3699. the '--dwarf-depth' and '--dwarf-start' options.
  3700. 'k'
  3701. '=links'
  3702. Displays the contents of the '.gnu_debuglink' and/or
  3703. '.gnu_debugaltlink' sections. Also displays any links to
  3704. separate dwarf object files (dwo), if they are specified by
  3705. the DW_AT_GNU_dwo_name or DW_AT_dwo_name attributes in the
  3706. '.debug_info' section.
  3707. 'K'
  3708. '=follow-links'
  3709. Display the contents of any selected debug sections that are
  3710. found in linked, separate debug info file(s). This can result
  3711. in multiple versions of the same debug section being displayed
  3712. if it exists in more than one file.
  3713. In addition, when displaying DWARF attributes, if a form is
  3714. found that references the separate debug info file, then the
  3715. referenced contents will also be displayed.
  3716. 'l'
  3717. '=rawline'
  3718. Displays the contents of the '.debug_line' section in a raw
  3719. format.
  3720. 'L'
  3721. '=decodedline'
  3722. Displays the interpreted contents of the '.debug_line'
  3723. section.
  3724. 'm'
  3725. '=macro'
  3726. Displays the contents of the '.debug_macro' and/or
  3727. '.debug_macinfo' sections.
  3728. 'o'
  3729. '=loc'
  3730. Displays the contents of the '.debug_loc' and/or
  3731. '.debug_loclists' sections.
  3732. 'O'
  3733. '=str-offsets'
  3734. Displays the contents of the '.debug_str_offsets' section.
  3735. 'p'
  3736. '=pubnames'
  3737. Displays the contents of the '.debug_pubnames' and/or
  3738. '.debug_gnu_pubnames' sections.
  3739. 'r'
  3740. '=aranges'
  3741. Displays the contents of the '.debug_aranges' section.
  3742. 'R'
  3743. '=Ranges'
  3744. Displays the contents of the '.debug_ranges' and/or
  3745. '.debug_rnglists' sections.
  3746. 's'
  3747. '=str'
  3748. Displays the contents of the '.debug_str', '.debug_line_str'
  3749. and/or '.debug_str_offsets' sections.
  3750. 't'
  3751. '=pubtype'
  3752. Displays the contents of the '.debug_pubtypes' and/or
  3753. '.debug_gnu_pubtypes' sections.
  3754. 'T'
  3755. '=trace_aranges'
  3756. Displays the contents of the '.trace_aranges' section.
  3757. 'u'
  3758. '=trace_abbrev'
  3759. Displays the contents of the '.trace_abbrev' section.
  3760. 'U'
  3761. '=trace_info'
  3762. Displays the contents of the '.trace_info' section.
  3763. Note: displaying the contents of '.debug_static_funcs',
  3764. '.debug_static_vars' and 'debug_weaknames' sections is not
  3765. currently supported.
  3766. '--dwarf-depth=N'
  3767. Limit the dump of the '.debug_info' section to N children. This is
  3768. only useful with '--debug-dump=info'. The default is to print all
  3769. DIEs; the special value 0 for N will also have this effect.
  3770. With a non-zero value for N, DIEs at or deeper than N levels will
  3771. not be printed. The range for N is zero-based.
  3772. '--dwarf-start=N'
  3773. Print only DIEs beginning with the DIE numbered N. This is only
  3774. useful with '--debug-dump=info'.
  3775. If specified, this option will suppress printing of any header
  3776. information and all DIEs before the DIE numbered N. Only siblings
  3777. and children of the specified DIE will be printed.
  3778. This can be used in conjunction with '--dwarf-depth'.
  3779. '--ctf=SECTION'
  3780. Display the contents of the specified CTF section. CTF sections
  3781. themselves contain many subsections, all of which are displayed in
  3782. order.
  3783. '--ctf-parent=SECTION'
  3784. Specify the name of another section from which the CTF dictionary
  3785. can inherit types. (If none is specified, we assume the CTF
  3786. dictionary inherits types from the default-named member of the
  3787. archive contained within this section.)
  3788. '--ctf-symbols=SECTION'
  3789. '--ctf-strings=SECTION'
  3790. Specify the name of another section from which the CTF file can
  3791. inherit strings and symbols. By default, the '.symtab' and its
  3792. linked string table are used.
  3793. If either of '--ctf-symbols' or '--ctf-strings' is specified, the
  3794. other must be specified as well.
  3795. '-I'
  3796. '--histogram'
  3797. Display a histogram of bucket list lengths when displaying the
  3798. contents of the symbol tables.
  3799. '-v'
  3800. '--version'
  3801. Display the version number of readelf.
  3802. '-W'
  3803. '--wide'
  3804. Don't break output lines to fit into 80 columns. By default
  3805. 'readelf' breaks section header and segment listing lines for
  3806. 64-bit ELF files, so that they fit into 80 columns. This option
  3807. causes 'readelf' to print each section header resp. each segment
  3808. one a single line, which is far more readable on terminals wider
  3809. than 80 columns.
  3810. '-T'
  3811. '--silent-truncation'
  3812. Normally when readelf is displaying a symbol name, and it has to
  3813. truncate the name to fit into an 80 column display, it will add a
  3814. suffix of '[...]' to the name. This command line option disables
  3815. this behaviour, allowing 5 more characters of the name to be
  3816. displayed and restoring the old behaviour of readelf (prior to
  3817. release 2.35).
  3818. '-H'
  3819. '--help'
  3820. Display the command-line options understood by 'readelf'.
  3821. 
  3822. File: binutils.info, Node: elfedit, Next: Common Options, Prev: readelf, Up: Top
  3823. 15 elfedit
  3824. **********
  3825. elfedit [--input-mach=MACHINE]
  3826. [--input-type=TYPE]
  3827. [--input-osabi=OSABI]
  3828. --output-mach=MACHINE
  3829. --output-type=TYPE
  3830. --output-osabi=OSABI
  3831. --enable-x86-feature=FEATURE
  3832. --disable-x86-feature=FEATURE
  3833. [-v|--version]
  3834. [-h|--help]
  3835. ELFFILE...
  3836. 'elfedit' updates the ELF header and program property of ELF files
  3837. which have the matching ELF machine and file types. The options control
  3838. how and which fields in the ELF header and program property should be
  3839. updated.
  3840. ELFFILE... are the ELF files to be updated. 32-bit and 64-bit ELF
  3841. files are supported, as are archives containing ELF files.
  3842. The long and short forms of options, shown here as alternatives, are
  3843. equivalent. At least one of the '--output-mach', '--output-type',
  3844. '--output-osabi', '--enable-x86-feature' and '--disable-x86-feature'
  3845. options must be given.
  3846. '--input-mach=MACHINE'
  3847. Set the matching input ELF machine type to MACHINE. If
  3848. '--input-mach' isn't specified, it will match any ELF machine
  3849. types.
  3850. The supported ELF machine types are, I386, IAMCU, L1OM, K1OM and
  3851. X86-64.
  3852. '--output-mach=MACHINE'
  3853. Change the ELF machine type in the ELF header to MACHINE. The
  3854. supported ELF machine types are the same as '--input-mach'.
  3855. '--input-type=TYPE'
  3856. Set the matching input ELF file type to TYPE. If '--input-type'
  3857. isn't specified, it will match any ELF file types.
  3858. The supported ELF file types are, REL, EXEC and DYN.
  3859. '--output-type=TYPE'
  3860. Change the ELF file type in the ELF header to TYPE. The supported
  3861. ELF types are the same as '--input-type'.
  3862. '--input-osabi=OSABI'
  3863. Set the matching input ELF file OSABI to OSABI. If '--input-osabi'
  3864. isn't specified, it will match any ELF OSABIs.
  3865. The supported ELF OSABIs are, NONE, HPUX, NETBSD, GNU, LINUX (alias
  3866. for GNU), SOLARIS, AIX, IRIX, FREEBSD, TRU64, MODESTO, OPENBSD,
  3867. OPENVMS, NSK, AROS and FENIXOS.
  3868. '--output-osabi=OSABI'
  3869. Change the ELF OSABI in the ELF header to OSABI. The supported ELF
  3870. OSABI are the same as '--input-osabi'.
  3871. '--enable-x86-feature=FEATURE'
  3872. Set the FEATURE bit in program property in EXEC or DYN ELF files
  3873. with machine types of I386 or X86-64. The supported features are,
  3874. IBT, SHSTK, LAM_U48 and LAM_U57.
  3875. '--disable-x86-feature=FEATURE'
  3876. Clear the FEATURE bit in program property in EXEC or DYN ELF files
  3877. with machine types of I386 or X86-64. The supported features are
  3878. the same as '--enable-x86-feature'.
  3879. Note: '--enable-x86-feature' and '--disable-x86-feature' are
  3880. available only on hosts with 'mmap' support.
  3881. '-v'
  3882. '--version'
  3883. Display the version number of 'elfedit'.
  3884. '-h'
  3885. '--help'
  3886. Display the command-line options understood by 'elfedit'.
  3887. 
  3888. File: binutils.info, Node: Common Options, Next: Selecting the Target System, Prev: elfedit, Up: Top
  3889. 16 Common Options
  3890. *****************
  3891. The following command-line options are supported by all of the programs
  3892. described in this manual.
  3893. '@FILE'
  3894. Read command-line options from FILE. The options read are inserted
  3895. in place of the original @FILE option. If FILE does not exist, or
  3896. cannot be read, then the option will be treated literally, and not
  3897. removed.
  3898. Options in FILE are separated by whitespace. A whitespace
  3899. character may be included in an option by surrounding the entire
  3900. option in either single or double quotes. Any character (including
  3901. a backslash) may be included by prefixing the character to be
  3902. included with a backslash. The FILE may itself contain additional
  3903. @FILE options; any such options will be processed recursively.
  3904. '--help'
  3905. Display the command-line options supported by the program.
  3906. '--version'
  3907. Display the version number of the program.
  3908. 
  3909. File: binutils.info, Node: Selecting the Target System, Next: debuginfod, Prev: Common Options, Up: Top
  3910. 17 Selecting the Target System
  3911. ******************************
  3912. You can specify two aspects of the target system to the GNU binary file
  3913. utilities, each in several ways:
  3914. * the target
  3915. * the architecture
  3916. In the following summaries, the lists of ways to specify values are
  3917. in order of decreasing precedence. The ways listed first override those
  3918. listed later.
  3919. The commands to list valid values only list the values for which the
  3920. programs you are running were configured. If they were configured with
  3921. '--enable-targets=all', the commands list most of the available values,
  3922. but a few are left out; not all targets can be configured in at once
  3923. because some of them can only be configured "native" (on hosts with the
  3924. same type as the target system).
  3925. * Menu:
  3926. * Target Selection::
  3927. * Architecture Selection::
  3928. 
  3929. File: binutils.info, Node: Target Selection, Next: Architecture Selection, Up: Selecting the Target System
  3930. 17.1 Target Selection
  3931. =====================
  3932. A "target" is an object file format. A given target may be supported
  3933. for multiple architectures (*note Architecture Selection::). A target
  3934. selection may also have variations for different operating systems or
  3935. architectures.
  3936. The command to list valid target values is 'objdump -i' (the first
  3937. column of output contains the relevant information).
  3938. Some sample values are: 'a.out-hp300bsd', 'ecoff-littlemips',
  3939. 'a.out-sunos-big'.
  3940. You can also specify a target using a configuration triplet. This is
  3941. the same sort of name that is passed to 'configure' to specify a target.
  3942. When you use a configuration triplet as an argument, it must be fully
  3943. canonicalized. You can see the canonical version of a triplet by
  3944. running the shell script 'config.sub' which is included with the
  3945. sources.
  3946. Some sample configuration triplets are: 'm68k-hp-bsd',
  3947. 'mips-dec-ultrix', 'sparc-sun-sunos'.
  3948. 'objdump' Target
  3949. ----------------
  3950. Ways to specify:
  3951. 1. command-line option: '-b' or '--target'
  3952. 2. environment variable 'GNUTARGET'
  3953. 3. deduced from the input file
  3954. 'objcopy' and 'strip' Input Target
  3955. ----------------------------------
  3956. Ways to specify:
  3957. 1. command-line options: '-I' or '--input-target', or '-F' or
  3958. '--target'
  3959. 2. environment variable 'GNUTARGET'
  3960. 3. deduced from the input file
  3961. 'objcopy' and 'strip' Output Target
  3962. -----------------------------------
  3963. Ways to specify:
  3964. 1. command-line options: '-O' or '--output-target', or '-F' or
  3965. '--target'
  3966. 2. the input target (see "'objcopy' and 'strip' Input Target" above)
  3967. 3. environment variable 'GNUTARGET'
  3968. 4. deduced from the input file
  3969. 'nm', 'size', and 'strings' Target
  3970. ----------------------------------
  3971. Ways to specify:
  3972. 1. command-line option: '--target'
  3973. 2. environment variable 'GNUTARGET'
  3974. 3. deduced from the input file
  3975. 
  3976. File: binutils.info, Node: Architecture Selection, Prev: Target Selection, Up: Selecting the Target System
  3977. 17.2 Architecture Selection
  3978. ===========================
  3979. An "architecture" is a type of CPU on which an object file is to run.
  3980. Its name may contain a colon, separating the name of the processor
  3981. family from the name of the particular CPU.
  3982. The command to list valid architecture values is 'objdump -i' (the
  3983. second column contains the relevant information).
  3984. Sample values: 'm68k:68020', 'mips:3000', 'sparc'.
  3985. 'objdump' Architecture
  3986. ----------------------
  3987. Ways to specify:
  3988. 1. command-line option: '-m' or '--architecture'
  3989. 2. deduced from the input file
  3990. 'objcopy', 'nm', 'size', 'strings' Architecture
  3991. -----------------------------------------------
  3992. Ways to specify:
  3993. 1. deduced from the input file
  3994. 
  3995. File: binutils.info, Node: debuginfod, Next: Reporting Bugs, Prev: Selecting the Target System, Up: Top
  3996. 18 debuginfod
  3997. *************
  3998. debuginfod is a web service that indexes ELF/DWARF debugging resources
  3999. by build-id and serves them over HTTP.
  4000. Binutils can be built with the debuginfod client library
  4001. 'libdebuginfod' using the '--with-debuginfod' configure option. This
  4002. option is enabled by default if 'libdebuginfod' is installed and found
  4003. at configure time. This allows 'objdump' and 'readelf' to automatically
  4004. query debuginfod servers for separate debug files when the files are
  4005. otherwise not found.
  4006. debuginfod is packaged with elfutils, starting with version 0.178.
  4007. You can get the latest version from 'https://sourceware.org/elfutils/'.
  4008. 
  4009. File: binutils.info, Node: Reporting Bugs, Next: GNU Free Documentation License, Prev: debuginfod, Up: Top
  4010. 19 Reporting Bugs
  4011. *****************
  4012. Your bug reports play an essential role in making the binary utilities
  4013. reliable.
  4014. Reporting a bug may help you by bringing a solution to your problem,
  4015. or it may not. But in any case the principal function of a bug report
  4016. is to help the entire community by making the next version of the binary
  4017. utilities work better. Bug reports are your contribution to their
  4018. maintenance.
  4019. In order for a bug report to serve its purpose, you must include the
  4020. information that enables us to fix the bug.
  4021. * Menu:
  4022. * Bug Criteria:: Have you found a bug?
  4023. * Bug Reporting:: How to report bugs
  4024. 
  4025. File: binutils.info, Node: Bug Criteria, Next: Bug Reporting, Up: Reporting Bugs
  4026. 19.1 Have You Found a Bug?
  4027. ==========================
  4028. If you are not sure whether you have found a bug, here are some
  4029. guidelines:
  4030. * If a binary utility gets a fatal signal, for any input whatever,
  4031. that is a bug. Reliable utilities never crash.
  4032. * If a binary utility produces an error message for valid input, that
  4033. is a bug.
  4034. * If you are an experienced user of binary utilities, your
  4035. suggestions for improvement are welcome in any case.
  4036. 
  4037. File: binutils.info, Node: Bug Reporting, Prev: Bug Criteria, Up: Reporting Bugs
  4038. 19.2 How to Report Bugs
  4039. =======================
  4040. A number of companies and individuals offer support for GNU products.
  4041. If you obtained the binary utilities from a support organization, we
  4042. recommend you contact that organization first.
  4043. You can find contact information for many support companies and
  4044. individuals in the file 'etc/SERVICE' in the GNU Emacs distribution.
  4045. In any event, we also recommend that you send bug reports for the
  4046. binary utilities to <https://bugs.linaro.org/>.
  4047. The fundamental principle of reporting bugs usefully is this: *report
  4048. all the facts*. If you are not sure whether to state a fact or leave it
  4049. out, state it!
  4050. Often people omit facts because they think they know what causes the
  4051. problem and assume that some details do not matter. Thus, you might
  4052. assume that the name of a file you use in an example does not matter.
  4053. Well, probably it does not, but one cannot be sure. Perhaps the bug is
  4054. a stray memory reference which happens to fetch from the location where
  4055. that pathname is stored in memory; perhaps, if the pathname were
  4056. different, the contents of that location would fool the utility into
  4057. doing the right thing despite the bug. Play it safe and give a
  4058. specific, complete example. That is the easiest thing for you to do,
  4059. and the most helpful.
  4060. Keep in mind that the purpose of a bug report is to enable us to fix
  4061. the bug if it is new to us. Therefore, always write your bug reports on
  4062. the assumption that the bug has not been reported previously.
  4063. Sometimes people give a few sketchy facts and ask, "Does this ring a
  4064. bell?" This cannot help us fix a bug, so it is basically useless. We
  4065. respond by asking for enough details to enable us to investigate. You
  4066. might as well expedite matters by sending them to begin with.
  4067. To enable us to fix the bug, you should include all these things:
  4068. * The version of the utility. Each utility announces it if you start
  4069. it with the '--version' argument.
  4070. Without this, we will not know whether there is any point in
  4071. looking for the bug in the current version of the binary utilities.
  4072. * Any patches you may have applied to the source, including any
  4073. patches made to the 'BFD' library.
  4074. * The type of machine you are using, and the operating system name
  4075. and version number.
  4076. * What compiler (and its version) was used to compile the
  4077. utilities--e.g. "'gcc-2.7'".
  4078. * The command arguments you gave the utility to observe the bug. To
  4079. guarantee you will not omit something important, list them all. A
  4080. copy of the Makefile (or the output from make) is sufficient.
  4081. If we were to try to guess the arguments, we would probably guess
  4082. wrong and then we might not encounter the bug.
  4083. * A complete input file, or set of input files, that will reproduce
  4084. the bug. If the utility is reading an object file or files, then
  4085. it is generally most helpful to send the actual object files.
  4086. If the source files were produced exclusively using GNU programs
  4087. (e.g., 'gcc', 'gas', and/or the GNU 'ld'), then it may be OK to
  4088. send the source files rather than the object files. In this case,
  4089. be sure to say exactly what version of 'gcc', or whatever, was used
  4090. to produce the object files. Also say how 'gcc', or whatever, was
  4091. configured.
  4092. * A description of what behavior you observe that you believe is
  4093. incorrect. For example, "It gets a fatal signal."
  4094. Of course, if the bug is that the utility gets a fatal signal, then
  4095. we will certainly notice it. But if the bug is incorrect output,
  4096. we might not notice unless it is glaringly wrong. You might as
  4097. well not give us a chance to make a mistake.
  4098. Even if the problem you experience is a fatal signal, you should
  4099. still say so explicitly. Suppose something strange is going on,
  4100. such as your copy of the utility is out of sync, or you have
  4101. encountered a bug in the C library on your system. (This has
  4102. happened!) Your copy might crash and ours would not. If you told
  4103. us to expect a crash, then when ours fails to crash, we would know
  4104. that the bug was not happening for us. If you had not told us to
  4105. expect a crash, then we would not be able to draw any conclusion
  4106. from our observations.
  4107. * If you wish to suggest changes to the source, send us context
  4108. diffs, as generated by 'diff' with the '-u', '-c', or '-p' option.
  4109. Always send diffs from the old file to the new file. If you wish
  4110. to discuss something in the 'ld' source, refer to it by context,
  4111. not by line number.
  4112. The line numbers in our development sources will not match those in
  4113. your sources. Your line numbers would convey no useful information
  4114. to us.
  4115. Here are some things that are not necessary:
  4116. * A description of the envelope of the bug.
  4117. Often people who encounter a bug spend a lot of time investigating
  4118. which changes to the input file will make the bug go away and which
  4119. changes will not affect it.
  4120. This is often time consuming and not very useful, because the way
  4121. we will find the bug is by running a single example under the
  4122. debugger with breakpoints, not by pure deduction from a series of
  4123. examples. We recommend that you save your time for something else.
  4124. Of course, if you can find a simpler example to report _instead_ of
  4125. the original one, that is a convenience for us. Errors in the
  4126. output will be easier to spot, running under the debugger will take
  4127. less time, and so on.
  4128. However, simplification is not vital; if you do not want to do
  4129. this, report the bug anyway and send us the entire test case you
  4130. used.
  4131. * A patch for the bug.
  4132. A patch for the bug does help us if it is a good one. But do not
  4133. omit the necessary information, such as the test case, on the
  4134. assumption that a patch is all we need. We might see problems with
  4135. your patch and decide to fix the problem another way, or we might
  4136. not understand it at all.
  4137. Sometimes with programs as complicated as the binary utilities it
  4138. is very hard to construct an example that will make the program
  4139. follow a certain path through the code. If you do not send us the
  4140. example, we will not be able to construct one, so we will not be
  4141. able to verify that the bug is fixed.
  4142. And if we cannot understand what bug you are trying to fix, or why
  4143. your patch should be an improvement, we will not install it. A
  4144. test case will help us to understand.
  4145. * A guess about what the bug is or what it depends on.
  4146. Such guesses are usually wrong. Even we cannot guess right about
  4147. such things without first using the debugger to find the facts.
  4148. 
  4149. File: binutils.info, Node: GNU Free Documentation License, Next: Binutils Index, Prev: Reporting Bugs, Up: Top
  4150. Appendix A GNU Free Documentation License
  4151. *****************************************
  4152. Version 1.3, 3 November 2008
  4153. Copyright (C) 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.
  4154. <http://fsf.org/>
  4155. Everyone is permitted to copy and distribute verbatim copies
  4156. of this license document, but changing it is not allowed.
  4157. 0. PREAMBLE
  4158. The purpose of this License is to make a manual, textbook, or other
  4159. functional and useful document "free" in the sense of freedom: to
  4160. assure everyone the effective freedom to copy and redistribute it,
  4161. with or without modifying it, either commercially or
  4162. noncommercially. Secondarily, this License preserves for the
  4163. author and publisher a way to get credit for their work, while not
  4164. being considered responsible for modifications made by others.
  4165. This License is a kind of "copyleft", which means that derivative
  4166. works of the document must themselves be free in the same sense.
  4167. It complements the GNU General Public License, which is a copyleft
  4168. license designed for free software.
  4169. We have designed this License in order to use it for manuals for
  4170. free software, because free software needs free documentation: a
  4171. free program should come with manuals providing the same freedoms
  4172. that the software does. But this License is not limited to
  4173. software manuals; it can be used for any textual work, regardless
  4174. of subject matter or whether it is published as a printed book. We
  4175. recommend this License principally for works whose purpose is
  4176. instruction or reference.
  4177. 1. APPLICABILITY AND DEFINITIONS
  4178. This License applies to any manual or other work, in any medium,
  4179. that contains a notice placed by the copyright holder saying it can
  4180. be distributed under the terms of this License. Such a notice
  4181. grants a world-wide, royalty-free license, unlimited in duration,
  4182. to use that work under the conditions stated herein. The
  4183. "Document", below, refers to any such manual or work. Any member
  4184. of the public is a licensee, and is addressed as "you". You accept
  4185. the license if you copy, modify or distribute the work in a way
  4186. requiring permission under copyright law.
  4187. A "Modified Version" of the Document means any work containing the
  4188. Document or a portion of it, either copied verbatim, or with
  4189. modifications and/or translated into another language.
  4190. A "Secondary Section" is a named appendix or a front-matter section
  4191. of the Document that deals exclusively with the relationship of the
  4192. publishers or authors of the Document to the Document's overall
  4193. subject (or to related matters) and contains nothing that could
  4194. fall directly within that overall subject. (Thus, if the Document
  4195. is in part a textbook of mathematics, a Secondary Section may not
  4196. explain any mathematics.) The relationship could be a matter of
  4197. historical connection with the subject or with related matters, or
  4198. of legal, commercial, philosophical, ethical or political position
  4199. regarding them.
  4200. The "Invariant Sections" are certain Secondary Sections whose
  4201. titles are designated, as being those of Invariant Sections, in the
  4202. notice that says that the Document is released under this License.
  4203. If a section does not fit the above definition of Secondary then it
  4204. is not allowed to be designated as Invariant. The Document may
  4205. contain zero Invariant Sections. If the Document does not identify
  4206. any Invariant Sections then there are none.
  4207. The "Cover Texts" are certain short passages of text that are
  4208. listed, as Front-Cover Texts or Back-Cover Texts, in the notice
  4209. that says that the Document is released under this License. A
  4210. Front-Cover Text may be at most 5 words, and a Back-Cover Text may
  4211. be at most 25 words.
  4212. A "Transparent" copy of the Document means a machine-readable copy,
  4213. represented in a format whose specification is available to the
  4214. general public, that is suitable for revising the document
  4215. straightforwardly with generic text editors or (for images composed
  4216. of pixels) generic paint programs or (for drawings) some widely
  4217. available drawing editor, and that is suitable for input to text
  4218. formatters or for automatic translation to a variety of formats
  4219. suitable for input to text formatters. A copy made in an otherwise
  4220. Transparent file format whose markup, or absence of markup, has
  4221. been arranged to thwart or discourage subsequent modification by
  4222. readers is not Transparent. An image format is not Transparent if
  4223. used for any substantial amount of text. A copy that is not
  4224. "Transparent" is called "Opaque".
  4225. Examples of suitable formats for Transparent copies include plain
  4226. ASCII without markup, Texinfo input format, LaTeX input format,
  4227. SGML or XML using a publicly available DTD, and standard-conforming
  4228. simple HTML, PostScript or PDF designed for human modification.
  4229. Examples of transparent image formats include PNG, XCF and JPG.
  4230. Opaque formats include proprietary formats that can be read and
  4231. edited only by proprietary word processors, SGML or XML for which
  4232. the DTD and/or processing tools are not generally available, and
  4233. the machine-generated HTML, PostScript or PDF produced by some word
  4234. processors for output purposes only.
  4235. The "Title Page" means, for a printed book, the title page itself,
  4236. plus such following pages as are needed to hold, legibly, the
  4237. material this License requires to appear in the title page. For
  4238. works in formats which do not have any title page as such, "Title
  4239. Page" means the text near the most prominent appearance of the
  4240. work's title, preceding the beginning of the body of the text.
  4241. The "publisher" means any person or entity that distributes copies
  4242. of the Document to the public.
  4243. A section "Entitled XYZ" means a named subunit of the Document
  4244. whose title either is precisely XYZ or contains XYZ in parentheses
  4245. following text that translates XYZ in another language. (Here XYZ
  4246. stands for a specific section name mentioned below, such as
  4247. "Acknowledgements", "Dedications", "Endorsements", or "History".)
  4248. To "Preserve the Title" of such a section when you modify the
  4249. Document means that it remains a section "Entitled XYZ" according
  4250. to this definition.
  4251. The Document may include Warranty Disclaimers next to the notice
  4252. which states that this License applies to the Document. These
  4253. Warranty Disclaimers are considered to be included by reference in
  4254. this License, but only as regards disclaiming warranties: any other
  4255. implication that these Warranty Disclaimers may have is void and
  4256. has no effect on the meaning of this License.
  4257. 2. VERBATIM COPYING
  4258. You may copy and distribute the Document in any medium, either
  4259. commercially or noncommercially, provided that this License, the
  4260. copyright notices, and the license notice saying this License
  4261. applies to the Document are reproduced in all copies, and that you
  4262. add no other conditions whatsoever to those of this License. You
  4263. may not use technical measures to obstruct or control the reading
  4264. or further copying of the copies you make or distribute. However,
  4265. you may accept compensation in exchange for copies. If you
  4266. distribute a large enough number of copies you must also follow the
  4267. conditions in section 3.
  4268. You may also lend copies, under the same conditions stated above,
  4269. and you may publicly display copies.
  4270. 3. COPYING IN QUANTITY
  4271. If you publish printed copies (or copies in media that commonly
  4272. have printed covers) of the Document, numbering more than 100, and
  4273. the Document's license notice requires Cover Texts, you must
  4274. enclose the copies in covers that carry, clearly and legibly, all
  4275. these Cover Texts: Front-Cover Texts on the front cover, and
  4276. Back-Cover Texts on the back cover. Both covers must also clearly
  4277. and legibly identify you as the publisher of these copies. The
  4278. front cover must present the full title with all words of the title
  4279. equally prominent and visible. You may add other material on the
  4280. covers in addition. Copying with changes limited to the covers, as
  4281. long as they preserve the title of the Document and satisfy these
  4282. conditions, can be treated as verbatim copying in other respects.
  4283. If the required texts for either cover are too voluminous to fit
  4284. legibly, you should put the first ones listed (as many as fit
  4285. reasonably) on the actual cover, and continue the rest onto
  4286. adjacent pages.
  4287. If you publish or distribute Opaque copies of the Document
  4288. numbering more than 100, you must either include a machine-readable
  4289. Transparent copy along with each Opaque copy, or state in or with
  4290. each Opaque copy a computer-network location from which the general
  4291. network-using public has access to download using public-standard
  4292. network protocols a complete Transparent copy of the Document, free
  4293. of added material. If you use the latter option, you must take
  4294. reasonably prudent steps, when you begin distribution of Opaque
  4295. copies in quantity, to ensure that this Transparent copy will
  4296. remain thus accessible at the stated location until at least one
  4297. year after the last time you distribute an Opaque copy (directly or
  4298. through your agents or retailers) of that edition to the public.
  4299. It is requested, but not required, that you contact the authors of
  4300. the Document well before redistributing any large number of copies,
  4301. to give them a chance to provide you with an updated version of the
  4302. Document.
  4303. 4. MODIFICATIONS
  4304. You may copy and distribute a Modified Version of the Document
  4305. under the conditions of sections 2 and 3 above, provided that you
  4306. release the Modified Version under precisely this License, with the
  4307. Modified Version filling the role of the Document, thus licensing
  4308. distribution and modification of the Modified Version to whoever
  4309. possesses a copy of it. In addition, you must do these things in
  4310. the Modified Version:
  4311. A. Use in the Title Page (and on the covers, if any) a title
  4312. distinct from that of the Document, and from those of previous
  4313. versions (which should, if there were any, be listed in the
  4314. History section of the Document). You may use the same title
  4315. as a previous version if the original publisher of that
  4316. version gives permission.
  4317. B. List on the Title Page, as authors, one or more persons or
  4318. entities responsible for authorship of the modifications in
  4319. the Modified Version, together with at least five of the
  4320. principal authors of the Document (all of its principal
  4321. authors, if it has fewer than five), unless they release you
  4322. from this requirement.
  4323. C. State on the Title page the name of the publisher of the
  4324. Modified Version, as the publisher.
  4325. D. Preserve all the copyright notices of the Document.
  4326. E. Add an appropriate copyright notice for your modifications
  4327. adjacent to the other copyright notices.
  4328. F. Include, immediately after the copyright notices, a license
  4329. notice giving the public permission to use the Modified
  4330. Version under the terms of this License, in the form shown in
  4331. the Addendum below.
  4332. G. Preserve in that license notice the full lists of Invariant
  4333. Sections and required Cover Texts given in the Document's
  4334. license notice.
  4335. H. Include an unaltered copy of this License.
  4336. I. Preserve the section Entitled "History", Preserve its Title,
  4337. and add to it an item stating at least the title, year, new
  4338. authors, and publisher of the Modified Version as given on the
  4339. Title Page. If there is no section Entitled "History" in the
  4340. Document, create one stating the title, year, authors, and
  4341. publisher of the Document as given on its Title Page, then add
  4342. an item describing the Modified Version as stated in the
  4343. previous sentence.
  4344. J. Preserve the network location, if any, given in the Document
  4345. for public access to a Transparent copy of the Document, and
  4346. likewise the network locations given in the Document for
  4347. previous versions it was based on. These may be placed in the
  4348. "History" section. You may omit a network location for a work
  4349. that was published at least four years before the Document
  4350. itself, or if the original publisher of the version it refers
  4351. to gives permission.
  4352. K. For any section Entitled "Acknowledgements" or "Dedications",
  4353. Preserve the Title of the section, and preserve in the section
  4354. all the substance and tone of each of the contributor
  4355. acknowledgements and/or dedications given therein.
  4356. L. Preserve all the Invariant Sections of the Document, unaltered
  4357. in their text and in their titles. Section numbers or the
  4358. equivalent are not considered part of the section titles.
  4359. M. Delete any section Entitled "Endorsements". Such a section
  4360. may not be included in the Modified Version.
  4361. N. Do not retitle any existing section to be Entitled
  4362. "Endorsements" or to conflict in title with any Invariant
  4363. Section.
  4364. O. Preserve any Warranty Disclaimers.
  4365. If the Modified Version includes new front-matter sections or
  4366. appendices that qualify as Secondary Sections and contain no
  4367. material copied from the Document, you may at your option designate
  4368. some or all of these sections as invariant. To do this, add their
  4369. titles to the list of Invariant Sections in the Modified Version's
  4370. license notice. These titles must be distinct from any other
  4371. section titles.
  4372. You may add a section Entitled "Endorsements", provided it contains
  4373. nothing but endorsements of your Modified Version by various
  4374. parties--for example, statements of peer review or that the text
  4375. has been approved by an organization as the authoritative
  4376. definition of a standard.
  4377. You may add a passage of up to five words as a Front-Cover Text,
  4378. and a passage of up to 25 words as a Back-Cover Text, to the end of
  4379. the list of Cover Texts in the Modified Version. Only one passage
  4380. of Front-Cover Text and one of Back-Cover Text may be added by (or
  4381. through arrangements made by) any one entity. If the Document
  4382. already includes a cover text for the same cover, previously added
  4383. by you or by arrangement made by the same entity you are acting on
  4384. behalf of, you may not add another; but you may replace the old
  4385. one, on explicit permission from the previous publisher that added
  4386. the old one.
  4387. The author(s) and publisher(s) of the Document do not by this
  4388. License give permission to use their names for publicity for or to
  4389. assert or imply endorsement of any Modified Version.
  4390. 5. COMBINING DOCUMENTS
  4391. You may combine the Document with other documents released under
  4392. this License, under the terms defined in section 4 above for
  4393. modified versions, provided that you include in the combination all
  4394. of the Invariant Sections of all of the original documents,
  4395. unmodified, and list them all as Invariant Sections of your
  4396. combined work in its license notice, and that you preserve all
  4397. their Warranty Disclaimers.
  4398. The combined work need only contain one copy of this License, and
  4399. multiple identical Invariant Sections may be replaced with a single
  4400. copy. If there are multiple Invariant Sections with the same name
  4401. but different contents, make the title of each such section unique
  4402. by adding at the end of it, in parentheses, the name of the
  4403. original author or publisher of that section if known, or else a
  4404. unique number. Make the same adjustment to the section titles in
  4405. the list of Invariant Sections in the license notice of the
  4406. combined work.
  4407. In the combination, you must combine any sections Entitled
  4408. "History" in the various original documents, forming one section
  4409. Entitled "History"; likewise combine any sections Entitled
  4410. "Acknowledgements", and any sections Entitled "Dedications". You
  4411. must delete all sections Entitled "Endorsements."
  4412. 6. COLLECTIONS OF DOCUMENTS
  4413. You may make a collection consisting of the Document and other
  4414. documents released under this License, and replace the individual
  4415. copies of this License in the various documents with a single copy
  4416. that is included in the collection, provided that you follow the
  4417. rules of this License for verbatim copying of each of the documents
  4418. in all other respects.
  4419. You may extract a single document from such a collection, and
  4420. distribute it individually under this License, provided you insert
  4421. a copy of this License into the extracted document, and follow this
  4422. License in all other respects regarding verbatim copying of that
  4423. document.
  4424. 7. AGGREGATION WITH INDEPENDENT WORKS
  4425. A compilation of the Document or its derivatives with other
  4426. separate and independent documents or works, in or on a volume of a
  4427. storage or distribution medium, is called an "aggregate" if the
  4428. copyright resulting from the compilation is not used to limit the
  4429. legal rights of the compilation's users beyond what the individual
  4430. works permit. When the Document is included in an aggregate, this
  4431. License does not apply to the other works in the aggregate which
  4432. are not themselves derivative works of the Document.
  4433. If the Cover Text requirement of section 3 is applicable to these
  4434. copies of the Document, then if the Document is less than one half
  4435. of the entire aggregate, the Document's Cover Texts may be placed
  4436. on covers that bracket the Document within the aggregate, or the
  4437. electronic equivalent of covers if the Document is in electronic
  4438. form. Otherwise they must appear on printed covers that bracket
  4439. the whole aggregate.
  4440. 8. TRANSLATION
  4441. Translation is considered a kind of modification, so you may
  4442. distribute translations of the Document under the terms of section
  4443. 4. Replacing Invariant Sections with translations requires special
  4444. permission from their copyright holders, but you may include
  4445. translations of some or all Invariant Sections in addition to the
  4446. original versions of these Invariant Sections. You may include a
  4447. translation of this License, and all the license notices in the
  4448. Document, and any Warranty Disclaimers, provided that you also
  4449. include the original English version of this License and the
  4450. original versions of those notices and disclaimers. In case of a
  4451. disagreement between the translation and the original version of
  4452. this License or a notice or disclaimer, the original version will
  4453. prevail.
  4454. If a section in the Document is Entitled "Acknowledgements",
  4455. "Dedications", or "History", the requirement (section 4) to
  4456. Preserve its Title (section 1) will typically require changing the
  4457. actual title.
  4458. 9. TERMINATION
  4459. You may not copy, modify, sublicense, or distribute the Document
  4460. except as expressly provided under this License. Any attempt
  4461. otherwise to copy, modify, sublicense, or distribute it is void,
  4462. and will automatically terminate your rights under this License.
  4463. However, if you cease all violation of this License, then your
  4464. license from a particular copyright holder is reinstated (a)
  4465. provisionally, unless and until the copyright holder explicitly and
  4466. finally terminates your license, and (b) permanently, if the
  4467. copyright holder fails to notify you of the violation by some
  4468. reasonable means prior to 60 days after the cessation.
  4469. Moreover, your license from a particular copyright holder is
  4470. reinstated permanently if the copyright holder notifies you of the
  4471. violation by some reasonable means, this is the first time you have
  4472. received notice of violation of this License (for any work) from
  4473. that copyright holder, and you cure the violation prior to 30 days
  4474. after your receipt of the notice.
  4475. Termination of your rights under this section does not terminate
  4476. the licenses of parties who have received copies or rights from you
  4477. under this License. If your rights have been terminated and not
  4478. permanently reinstated, receipt of a copy of some or all of the
  4479. same material does not give you any rights to use it.
  4480. 10. FUTURE REVISIONS OF THIS LICENSE
  4481. The Free Software Foundation may publish new, revised versions of
  4482. the GNU Free Documentation License from time to time. Such new
  4483. versions will be similar in spirit to the present version, but may
  4484. differ in detail to address new problems or concerns. See
  4485. <http://www.gnu.org/copyleft/>.
  4486. Each version of the License is given a distinguishing version
  4487. number. If the Document specifies that a particular numbered
  4488. version of this License "or any later version" applies to it, you
  4489. have the option of following the terms and conditions either of
  4490. that specified version or of any later version that has been
  4491. published (not as a draft) by the Free Software Foundation. If the
  4492. Document does not specify a version number of this License, you may
  4493. choose any version ever published (not as a draft) by the Free
  4494. Software Foundation. If the Document specifies that a proxy can
  4495. decide which future versions of this License can be used, that
  4496. proxy's public statement of acceptance of a version permanently
  4497. authorizes you to choose that version for the Document.
  4498. 11. RELICENSING
  4499. "Massive Multiauthor Collaboration Site" (or "MMC Site") means any
  4500. World Wide Web server that publishes copyrightable works and also
  4501. provides prominent facilities for anybody to edit those works. A
  4502. public wiki that anybody can edit is an example of such a server.
  4503. A "Massive Multiauthor Collaboration" (or "MMC") contained in the
  4504. site means any set of copyrightable works thus published on the MMC
  4505. site.
  4506. "CC-BY-SA" means the Creative Commons Attribution-Share Alike 3.0
  4507. license published by Creative Commons Corporation, a not-for-profit
  4508. corporation with a principal place of business in San Francisco,
  4509. California, as well as future copyleft versions of that license
  4510. published by that same organization.
  4511. "Incorporate" means to publish or republish a Document, in whole or
  4512. in part, as part of another Document.
  4513. An MMC is "eligible for relicensing" if it is licensed under this
  4514. License, and if all works that were first published under this
  4515. License somewhere other than this MMC, and subsequently
  4516. incorporated in whole or in part into the MMC, (1) had no cover
  4517. texts or invariant sections, and (2) were thus incorporated prior
  4518. to November 1, 2008.
  4519. The operator of an MMC Site may republish an MMC contained in the
  4520. site under CC-BY-SA on the same site at any time before August 1,
  4521. 2009, provided the MMC is eligible for relicensing.
  4522. ADDENDUM: How to use this License for your documents
  4523. ====================================================
  4524. To use this License in a document you have written, include a copy of
  4525. the License in the document and put the following copyright and license
  4526. notices just after the title page:
  4527. Copyright (C) YEAR YOUR NAME.
  4528. Permission is granted to copy, distribute and/or modify this document
  4529. under the terms of the GNU Free Documentation License, Version 1.3
  4530. or any later version published by the Free Software Foundation;
  4531. with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
  4532. Texts. A copy of the license is included in the section entitled ``GNU
  4533. Free Documentation License''.
  4534. If you have Invariant Sections, Front-Cover Texts and Back-Cover
  4535. Texts, replace the "with...Texts." line with this:
  4536. with the Invariant Sections being LIST THEIR TITLES, with
  4537. the Front-Cover Texts being LIST, and with the Back-Cover Texts
  4538. being LIST.
  4539. If you have Invariant Sections without Cover Texts, or some other
  4540. combination of the three, merge those two alternatives to suit the
  4541. situation.
  4542. If your document contains nontrivial examples of program code, we
  4543. recommend releasing these examples in parallel under your choice of free
  4544. software license, such as the GNU General Public License, to permit
  4545. their use in free software.
  4546. 
  4547. File: binutils.info, Node: Binutils Index, Prev: GNU Free Documentation License, Up: Top
  4548. Binutils Index
  4549. **************
  4550. �[index�]
  4551. * Menu:
  4552. * -enable-deterministic-archives: ar cmdline. (line 150)
  4553. * -enable-deterministic-archives <1>: ar cmdline. (line 238)
  4554. * -enable-deterministic-archives <2>: objcopy. (line 358)
  4555. * -enable-deterministic-archives <3>: objcopy. (line 368)
  4556. * -enable-deterministic-archives <4>: ranlib. (line 32)
  4557. * -enable-deterministic-archives <5>: ranlib. (line 44)
  4558. * -enable-deterministic-archives <6>: strip. (line 157)
  4559. * -enable-deterministic-archives <7>: strip. (line 167)
  4560. * .stab: objdump. (line 696)
  4561. * Add prefix to absolute paths: objdump. (line 505)
  4562. * addr2line: addr2line. (line 6)
  4563. * address to file name and line number: addr2line. (line 6)
  4564. * all header information, object file: objdump. (line 818)
  4565. * ar: ar. (line 6)
  4566. * ar compatibility: ar. (line 63)
  4567. * architecture: objdump. (line 257)
  4568. * architectures available: objdump. (line 242)
  4569. * archive contents: ranlib. (line 6)
  4570. * Archive file symbol index information: readelf. (line 228)
  4571. * archive headers: objdump. (line 75)
  4572. * archives: ar. (line 6)
  4573. * base files: dlltool. (line 124)
  4574. * bug criteria: Bug Criteria. (line 6)
  4575. * bug reports: Bug Reporting. (line 6)
  4576. * bugs: Reporting Bugs. (line 6)
  4577. * bugs, reporting: Bug Reporting. (line 6)
  4578. * c++filt: c++filt. (line 6)
  4579. * changing object addresses: objcopy. (line 405)
  4580. * changing section address: objcopy. (line 415)
  4581. * changing section LMA: objcopy. (line 424)
  4582. * changing section VMA: objcopy. (line 437)
  4583. * changing start address: objcopy. (line 399)
  4584. * collections of files: ar. (line 6)
  4585. * Compact Type Format: objdump. (line 682)
  4586. * Compact Type Format <1>: readelf. (line 376)
  4587. * compatibility, ar: ar. (line 63)
  4588. * contents of archive: ar cmdline. (line 97)
  4589. * crash: Bug Criteria. (line 9)
  4590. * creating archives: ar cmdline. (line 144)
  4591. * creating thin archive: ar cmdline. (line 224)
  4592. * CTF: objdump. (line 682)
  4593. * CTF <1>: readelf. (line 376)
  4594. * cxxfilt: c++filt. (line 16)
  4595. * dates in archive: ar cmdline. (line 188)
  4596. * debug symbols: objdump. (line 696)
  4597. * debugging symbols: nm. (line 172)
  4598. * deleting from archive: ar cmdline. (line 26)
  4599. * demangling C++ symbols: c++filt. (line 6)
  4600. * demangling in nm: nm. (line 180)
  4601. * demangling in nm <1>: readelf. (line 117)
  4602. * demangling in objdump: objdump. (line 103)
  4603. * demangling in objdump <1>: addr2line. (line 86)
  4604. * deterministic archives: ar cmdline. (line 150)
  4605. * deterministic archives <1>: ar cmdline. (line 238)
  4606. * deterministic archives <2>: objcopy. (line 358)
  4607. * deterministic archives <3>: objcopy. (line 368)
  4608. * deterministic archives <4>: ranlib. (line 32)
  4609. * deterministic archives <5>: ranlib. (line 44)
  4610. * deterministic archives <6>: strip. (line 157)
  4611. * deterministic archives <7>: strip. (line 167)
  4612. * disassembling object code: objdump. (line 144)
  4613. * disassembly architecture: objdump. (line 257)
  4614. * disassembly endianness: objdump. (line 192)
  4615. * disassembly, with source: objdump. (line 494)
  4616. * disassembly, with source <1>: objdump. (line 498)
  4617. * discarding symbols: strip. (line 6)
  4618. * DLL: dlltool. (line 6)
  4619. * dlltool: dlltool. (line 6)
  4620. * dynamic relocation entries, in object file: objdump. (line 482)
  4621. * dynamic symbol table entries, printing: objdump. (line 795)
  4622. * dynamic symbols: nm. (line 210)
  4623. * ELF dynamic section information: readelf. (line 168)
  4624. * ELF dynamic symbol table information: readelf. (line 108)
  4625. * ELF file header information: readelf. (line 71)
  4626. * ELF file information: readelf. (line 6)
  4627. * ELF notes: readelf. (line 150)
  4628. * ELF object file format: objdump. (line 696)
  4629. * ELF program header information: readelf. (line 77)
  4630. * ELF reloc information: readelf. (line 154)
  4631. * ELF section group information: readelf. (line 88)
  4632. * ELF section information: readelf. (line 83)
  4633. * ELF section information <1>: readelf. (line 93)
  4634. * ELF segment information: readelf. (line 77)
  4635. * ELF symbol table information: readelf. (line 98)
  4636. * ELF version sections information: readelf. (line 172)
  4637. * elfedit: elfedit. (line 6)
  4638. * endianness: objdump. (line 192)
  4639. * error on valid input: Bug Criteria. (line 12)
  4640. * external symbols: nm. (line 222)
  4641. * external symbols <1>: nm. (line 295)
  4642. * external symbols <2>: nm. (line 309)
  4643. * extract from archive: ar cmdline. (line 114)
  4644. * fatal signal: Bug Criteria. (line 9)
  4645. * file name: nm. (line 166)
  4646. * header information, all: objdump. (line 818)
  4647. * input .def file: dlltool. (line 120)
  4648. * input file name: nm. (line 166)
  4649. * Instruction width: objdump. (line 522)
  4650. * libraries: ar. (line 25)
  4651. * listings strings: strings. (line 6)
  4652. * LTO symbol table: readelf. (line 113)
  4653. * machine instructions: objdump. (line 144)
  4654. * moving in archive: ar cmdline. (line 34)
  4655. * MRI compatibility, ar: ar scripts. (line 8)
  4656. * name duplication in archive: ar cmdline. (line 108)
  4657. * name length: ar. (line 18)
  4658. * nm: nm. (line 6)
  4659. * nm compatibility: nm. (line 176)
  4660. * nm compatibility <1>: nm. (line 216)
  4661. * nm format: nm. (line 176)
  4662. * nm format <1>: nm. (line 216)
  4663. * not writing archive index: ar cmdline. (line 217)
  4664. * objdump: objdump. (line 6)
  4665. * objdump inlines: nm. (line 247)
  4666. * object code format: nm. (line 353)
  4667. * object code format <1>: objdump. (line 89)
  4668. * object code format <2>: size. (line 103)
  4669. * object code format <3>: strings. (line 94)
  4670. * object code format <4>: addr2line. (line 81)
  4671. * object file header: objdump. (line 198)
  4672. * object file information: objdump. (line 6)
  4673. * object file offsets: objdump. (line 203)
  4674. * object file sections: objdump. (line 489)
  4675. * object formats available: objdump. (line 242)
  4676. * offsets of files: ar cmdline. (line 193)
  4677. * operations on archive: ar cmdline. (line 22)
  4678. * plugins: ar cmdline. (line 272)
  4679. * plugins <1>: nm. (line 312)
  4680. * printing from archive: ar cmdline. (line 46)
  4681. * printing strings: strings. (line 6)
  4682. * quick append to archive: ar cmdline. (line 54)
  4683. * radix for section sizes: size. (line 85)
  4684. * ranlib: ranlib. (line 6)
  4685. * ranlib <1>: ar cmdline. (line 91)
  4686. * readelf: readelf. (line 6)
  4687. * relative placement in archive: ar cmdline. (line 132)
  4688. * relocation entries, in object file: objdump. (line 476)
  4689. * removing symbols: strip. (line 6)
  4690. * repeated names in archive: ar cmdline. (line 108)
  4691. * replacement in archive: ar cmdline. (line 73)
  4692. * reporting bugs: Reporting Bugs. (line 6)
  4693. * scripts, ar: ar scripts. (line 8)
  4694. * section addresses in objdump: objdump. (line 81)
  4695. * section headers: objdump. (line 219)
  4696. * section information: objdump. (line 247)
  4697. * section sizes: size. (line 6)
  4698. * sections, full contents: objdump. (line 489)
  4699. * separate debug files: debuginfod. (line 6)
  4700. * size: size. (line 6)
  4701. * size display format: size. (line 28)
  4702. * size number format: size. (line 85)
  4703. * sorting symbols: nm. (line 262)
  4704. * source code context: objdump. (line 212)
  4705. * source disassembly: objdump. (line 494)
  4706. * source disassembly <1>: objdump. (line 498)
  4707. * source file name: nm. (line 166)
  4708. * source filenames for object files: objdump. (line 251)
  4709. * stab: objdump. (line 696)
  4710. * start-address: objdump. (line 705)
  4711. * stop-address: objdump. (line 709)
  4712. * strings: strings. (line 6)
  4713. * strings, printing: strings. (line 6)
  4714. * strip: strip. (line 6)
  4715. * Strip absolute paths: objdump. (line 508)
  4716. * symbol index: ar. (line 31)
  4717. * symbol index <1>: ranlib. (line 6)
  4718. * symbol index, listing: nm. (line 284)
  4719. * symbol line numbers: nm. (line 239)
  4720. * symbol table entries, printing: objdump. (line 714)
  4721. * symbols: nm. (line 6)
  4722. * symbols, discarding: strip. (line 6)
  4723. * thin archives: ar. (line 43)
  4724. * undefined symbols: nm. (line 295)
  4725. * undefined symbols <1>: nm. (line 309)
  4726. * Unix compatibility, ar: ar cmdline. (line 8)
  4727. * unwind information: readelf. (line 159)
  4728. * Update ELF header: elfedit. (line 6)
  4729. * updating an archive: ar cmdline. (line 229)
  4730. * version: Top. (line 6)
  4731. * VMA in objdump: objdump. (line 81)
  4732. * wide output, printing: objdump. (line 824)
  4733. * writing archive index: ar cmdline. (line 211)
  4734. 
  4735. Tag Table:
  4736. Node: Top1834
  4737. Node: ar3610
  4738. Node: ar cmdline6944
  4739. Node: ar scripts20066
  4740. Node: nm25752
  4741. Node: objcopy39459
  4742. Node: objdump80072
  4743. Node: ranlib113102
  4744. Node: size114701
  4745. Node: strings118670
  4746. Node: strip123042
  4747. Node: c++filt132651
  4748. Ref: c++filt-Footnote-1138512
  4749. Node: addr2line138618
  4750. Node: windmc144296
  4751. Node: windres147955
  4752. Node: dlltool154314
  4753. Node: def file format167311
  4754. Node: readelf169841
  4755. Node: elfedit184827
  4756. Node: Common Options187801
  4757. Node: Selecting the Target System188835
  4758. Node: Target Selection189763
  4759. Node: Architecture Selection191744
  4760. Node: debuginfod192572
  4761. Node: Reporting Bugs193331
  4762. Node: Bug Criteria194093
  4763. Node: Bug Reporting194646
  4764. Node: GNU Free Documentation License201505
  4765. Node: Binutils Index226665
  4766. 
  4767. End Tag Table