bfd.info 615 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901
  1. This is bfd.info, produced by makeinfo version 5.2 from bfd.texinfo.
  2. This file documents the BFD library.
  3. Copyright (C) 1991-2017 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 the
  7. Invariant Sections being "GNU General Public License" and "Funding Free
  8. Software", the Front-Cover texts being (a) (see below), and with the
  9. Back-Cover Texts being (b) (see below). A copy of the license is
  10. included in the section entitled "GNU Free Documentation License".
  11. (a) The FSF's Front-Cover Text is:
  12. A GNU Manual
  13. (b) The FSF's Back-Cover Text is:
  14. You have freedom to copy and modify this GNU Manual, like GNU
  15. software. Copies published by the Free Software Foundation raise funds
  16. for GNU development.
  17. INFO-DIR-SECTION Software development
  18. START-INFO-DIR-ENTRY
  19. * Bfd: (bfd). The Binary File Descriptor library.
  20. END-INFO-DIR-ENTRY
  21. 
  22. File: bfd.info, Node: Top, Next: Overview, Prev: (dir), Up: (dir)
  23. This file documents the binary file descriptor library libbfd.
  24. * Menu:
  25. * Overview:: Overview of BFD
  26. * BFD front end:: BFD front end
  27. * BFD back ends:: BFD back ends
  28. * GNU Free Documentation License:: GNU Free Documentation License
  29. * BFD Index:: BFD Index
  30. 
  31. File: bfd.info, Node: Overview, Next: BFD front end, Prev: Top, Up: Top
  32. 1 Introduction
  33. **************
  34. BFD is a package which allows applications to use the same routines to
  35. operate on object files whatever the object file format. A new object
  36. file format can be supported simply by creating a new BFD back end and
  37. adding it to the library.
  38. BFD is split into two parts: the front end, and the back ends (one
  39. for each object file format).
  40. * The front end of BFD provides the interface to the user. It
  41. manages memory and various canonical data structures. The front
  42. end also decides which back end to use and when to call back end
  43. routines.
  44. * The back ends provide BFD its view of the real world. Each back
  45. end provides a set of calls which the BFD front end can use to
  46. maintain its canonical form. The back ends also may keep around
  47. information for their own use, for greater efficiency.
  48. * Menu:
  49. * History:: History
  50. * How It Works:: How It Works
  51. * What BFD Version 2 Can Do:: What BFD Version 2 Can Do
  52. 
  53. File: bfd.info, Node: History, Next: How It Works, Prev: Overview, Up: Overview
  54. 1.1 History
  55. ===========
  56. One spur behind BFD was the desire, on the part of the GNU 960 team at
  57. Intel Oregon, for interoperability of applications on their COFF and
  58. b.out file formats. Cygnus was providing GNU support for the team, and
  59. was contracted to provide the required functionality.
  60. The name came from a conversation David Wallace was having with
  61. Richard Stallman about the library: RMS said that it would be quite
  62. hard--David said "BFD". Stallman was right, but the name stuck.
  63. At the same time, Ready Systems wanted much the same thing, but for
  64. different object file formats: IEEE-695, Oasys, Srecords, a.out and 68k
  65. coff.
  66. BFD was first implemented by members of Cygnus Support; Steve
  67. Chamberlain ('sac@cygnus.com'), John Gilmore ('gnu@cygnus.com'), K.
  68. Richard Pixley ('rich@cygnus.com') and David Henkel-Wallace
  69. ('gumby@cygnus.com').
  70. 
  71. File: bfd.info, Node: How It Works, Next: What BFD Version 2 Can Do, Prev: History, Up: Overview
  72. 1.2 How To Use BFD
  73. ==================
  74. To use the library, include 'bfd.h' and link with 'libbfd.a'.
  75. BFD provides a common interface to the parts of an object file for a
  76. calling application.
  77. When an application successfully opens a target file (object,
  78. archive, or whatever), a pointer to an internal structure is returned.
  79. This pointer points to a structure called 'bfd', described in 'bfd.h'.
  80. Our convention is to call this pointer a BFD, and instances of it within
  81. code 'abfd'. All operations on the target object file are applied as
  82. methods to the BFD. The mapping is defined within 'bfd.h' in a set of
  83. macros, all beginning with 'bfd_' to reduce namespace pollution.
  84. For example, this sequence does what you would probably expect:
  85. return the number of sections in an object file attached to a BFD
  86. 'abfd'.
  87. #include "bfd.h"
  88. unsigned int number_of_sections (abfd)
  89. bfd *abfd;
  90. {
  91. return bfd_count_sections (abfd);
  92. }
  93. The abstraction used within BFD is that an object file has:
  94. * a header,
  95. * a number of sections containing raw data (*note Sections::),
  96. * a set of relocations (*note Relocations::), and
  97. * some symbol information (*note Symbols::).
  98. Also, BFDs opened for archives have the additional attribute of an index
  99. and contain subordinate BFDs. This approach is fine for a.out and coff,
  100. but loses efficiency when applied to formats such as S-records and
  101. IEEE-695.
  102. 
  103. File: bfd.info, Node: What BFD Version 2 Can Do, Prev: How It Works, Up: Overview
  104. 1.3 What BFD Version 2 Can Do
  105. =============================
  106. When an object file is opened, BFD subroutines automatically determine
  107. the format of the input object file. They then build a descriptor in
  108. memory with pointers to routines that will be used to access elements of
  109. the object file's data structures.
  110. As different information from the object files is required, BFD reads
  111. from different sections of the file and processes them. For example, a
  112. very common operation for the linker is processing symbol tables. Each
  113. BFD back end provides a routine for converting between the object file's
  114. representation of symbols and an internal canonical format. When the
  115. linker asks for the symbol table of an object file, it calls through a
  116. memory pointer to the routine from the relevant BFD back end which reads
  117. and converts the table into a canonical form. The linker then operates
  118. upon the canonical form. When the link is finished and the linker
  119. writes the output file's symbol table, another BFD back end routine is
  120. called to take the newly created symbol table and convert it into the
  121. chosen output format.
  122. * Menu:
  123. * BFD information loss:: Information Loss
  124. * Canonical format:: The BFD canonical object-file format
  125. 
  126. File: bfd.info, Node: BFD information loss, Next: Canonical format, Up: What BFD Version 2 Can Do
  127. 1.3.1 Information Loss
  128. ----------------------
  129. _Information can be lost during output._ The output formats supported
  130. by BFD do not provide identical facilities, and information which can be
  131. described in one form has nowhere to go in another format. One example
  132. of this is alignment information in 'b.out'. There is nowhere in an
  133. 'a.out' format file to store alignment information on the contained
  134. data, so when a file is linked from 'b.out' and an 'a.out' image is
  135. produced, alignment information will not propagate to the output file.
  136. (The linker will still use the alignment information internally, so the
  137. link is performed correctly).
  138. Another example is COFF section names. COFF files may contain an
  139. unlimited number of sections, each one with a textual section name. If
  140. the target of the link is a format which does not have many sections
  141. (e.g., 'a.out') or has sections without names (e.g., the Oasys format),
  142. the link cannot be done simply. You can circumvent this problem by
  143. describing the desired input-to-output section mapping with the linker
  144. command language.
  145. _Information can be lost during canonicalization._ The BFD internal
  146. canonical form of the external formats is not exhaustive; there are
  147. structures in input formats for which there is no direct representation
  148. internally. This means that the BFD back ends cannot maintain all
  149. possible data richness through the transformation between external to
  150. internal and back to external formats.
  151. This limitation is only a problem when an application reads one
  152. format and writes another. Each BFD back end is responsible for
  153. maintaining as much data as possible, and the internal BFD canonical
  154. form has structures which are opaque to the BFD core, and exported only
  155. to the back ends. When a file is read in one format, the canonical form
  156. is generated for BFD and the application. At the same time, the back
  157. end saves away any information which may otherwise be lost. If the data
  158. is then written back in the same format, the back end routine will be
  159. able to use the canonical form provided by the BFD core as well as the
  160. information it prepared earlier. Since there is a great deal of
  161. commonality between back ends, there is no information lost when linking
  162. or copying big endian COFF to little endian COFF, or 'a.out' to 'b.out'.
  163. When a mixture of formats is linked, the information is only lost from
  164. the files whose format differs from the destination.
  165. 
  166. File: bfd.info, Node: Canonical format, Prev: BFD information loss, Up: What BFD Version 2 Can Do
  167. 1.3.2 The BFD canonical object-file format
  168. ------------------------------------------
  169. The greatest potential for loss of information occurs when there is the
  170. least overlap between the information provided by the source format,
  171. that stored by the canonical format, and that needed by the destination
  172. format. A brief description of the canonical form may help you
  173. understand which kinds of data you can count on preserving across
  174. conversions.
  175. _files_
  176. Information stored on a per-file basis includes target machine
  177. architecture, particular implementation format type, a demand
  178. pageable bit, and a write protected bit. Information like Unix
  179. magic numbers is not stored here--only the magic numbers' meaning,
  180. so a 'ZMAGIC' file would have both the demand pageable bit and the
  181. write protected text bit set. The byte order of the target is
  182. stored on a per-file basis, so that big- and little-endian object
  183. files may be used with one another.
  184. _sections_
  185. Each section in the input file contains the name of the section,
  186. the section's original address in the object file, size and
  187. alignment information, various flags, and pointers into other BFD
  188. data structures.
  189. _symbols_
  190. Each symbol contains a pointer to the information for the object
  191. file which originally defined it, its name, its value, and various
  192. flag bits. When a BFD back end reads in a symbol table, it
  193. relocates all symbols to make them relative to the base of the
  194. section where they were defined. Doing this ensures that each
  195. symbol points to its containing section. Each symbol also has a
  196. varying amount of hidden private data for the BFD back end. Since
  197. the symbol points to the original file, the private data format for
  198. that symbol is accessible. 'ld' can operate on a collection of
  199. symbols of wildly different formats without problems.
  200. Normal global and simple local symbols are maintained on output, so
  201. an output file (no matter its format) will retain symbols pointing
  202. to functions and to global, static, and common variables. Some
  203. symbol information is not worth retaining; in 'a.out', type
  204. information is stored in the symbol table as long symbol names.
  205. This information would be useless to most COFF debuggers; the
  206. linker has command line switches to allow users to throw it away.
  207. There is one word of type information within the symbol, so if the
  208. format supports symbol type information within symbols (for
  209. example, COFF, IEEE, Oasys) and the type is simple enough to fit
  210. within one word (nearly everything but aggregates), the information
  211. will be preserved.
  212. _relocation level_
  213. Each canonical BFD relocation record contains a pointer to the
  214. symbol to relocate to, the offset of the data to relocate, the
  215. section the data is in, and a pointer to a relocation type
  216. descriptor. Relocation is performed by passing messages through
  217. the relocation type descriptor and the symbol pointer. Therefore,
  218. relocations can be performed on output data using a relocation
  219. method that is only available in one of the input formats. For
  220. instance, Oasys provides a byte relocation format. A relocation
  221. record requesting this relocation type would point indirectly to a
  222. routine to perform this, so the relocation may be performed on a
  223. byte being written to a 68k COFF file, even though 68k COFF has no
  224. such relocation type.
  225. _line numbers_
  226. Object formats can contain, for debugging purposes, some form of
  227. mapping between symbols, source line numbers, and addresses in the
  228. output file. These addresses have to be relocated along with the
  229. symbol information. Each symbol with an associated list of line
  230. number records points to the first record of the list. The head of
  231. a line number list consists of a pointer to the symbol, which
  232. allows finding out the address of the function whose line number is
  233. being described. The rest of the list is made up of pairs: offsets
  234. into the section and line numbers. Any format which can simply
  235. derive this information can pass it successfully between formats
  236. (COFF, IEEE and Oasys).
  237. 
  238. File: bfd.info, Node: BFD front end, Next: BFD back ends, Prev: Overview, Up: Top
  239. 2 BFD Front End
  240. ***************
  241. * Menu:
  242. * typedef bfd::
  243. * Error reporting::
  244. * Miscellaneous::
  245. * Memory Usage::
  246. * Initialization::
  247. * Sections::
  248. * Symbols::
  249. * Archives::
  250. * Formats::
  251. * Relocations::
  252. * Core Files::
  253. * Targets::
  254. * Architectures::
  255. * Opening and Closing::
  256. * Internal::
  257. * File Caching::
  258. * Linker Functions::
  259. * Hash Tables::
  260. 
  261. File: bfd.info, Node: typedef bfd, Next: Error reporting, Prev: BFD front end, Up: BFD front end
  262. 2.1 'typedef bfd'
  263. =================
  264. A BFD has type 'bfd'; objects of this type are the cornerstone of any
  265. application using BFD. Using BFD consists of making references though
  266. the BFD and to data in the BFD.
  267. Here is the structure that defines the type 'bfd'. It contains the
  268. major data about the file and pointers to the rest of the data.
  269. enum bfd_direction
  270. {
  271. no_direction = 0,
  272. read_direction = 1,
  273. write_direction = 2,
  274. both_direction = 3
  275. };
  276. enum bfd_plugin_format
  277. {
  278. bfd_plugin_unknown = 0,
  279. bfd_plugin_yes = 1,
  280. bfd_plugin_no = 2
  281. };
  282. struct bfd_build_id
  283. {
  284. bfd_size_type size;
  285. bfd_byte data[1];
  286. };
  287. struct bfd
  288. {
  289. /* The filename the application opened the BFD with. */
  290. const char *filename;
  291. /* A pointer to the target jump table. */
  292. const struct bfd_target *xvec;
  293. /* The IOSTREAM, and corresponding IO vector that provide access
  294. to the file backing the BFD. */
  295. void *iostream;
  296. const struct bfd_iovec *iovec;
  297. /* The caching routines use these to maintain a
  298. least-recently-used list of BFDs. */
  299. struct bfd *lru_prev, *lru_next;
  300. /* When a file is closed by the caching routines, BFD retains
  301. state information on the file here... */
  302. ufile_ptr where;
  303. /* File modified time, if mtime_set is TRUE. */
  304. long mtime;
  305. /* A unique identifier of the BFD */
  306. unsigned int id;
  307. /* The format which belongs to the BFD. (object, core, etc.) */
  308. ENUM_BITFIELD (bfd_format) format : 3;
  309. /* The direction with which the BFD was opened. */
  310. ENUM_BITFIELD (bfd_direction) direction : 2;
  311. /* Format_specific flags. */
  312. flagword flags : 20;
  313. /* Values that may appear in the flags field of a BFD. These also
  314. appear in the object_flags field of the bfd_target structure, where
  315. they indicate the set of flags used by that backend (not all flags
  316. are meaningful for all object file formats) (FIXME: at the moment,
  317. the object_flags values have mostly just been copied from backend
  318. to another, and are not necessarily correct). */
  319. #define BFD_NO_FLAGS 0x00
  320. /* BFD contains relocation entries. */
  321. #define HAS_RELOC 0x01
  322. /* BFD is directly executable. */
  323. #define EXEC_P 0x02
  324. /* BFD has line number information (basically used for F_LNNO in a
  325. COFF header). */
  326. #define HAS_LINENO 0x04
  327. /* BFD has debugging information. */
  328. #define HAS_DEBUG 0x08
  329. /* BFD has symbols. */
  330. #define HAS_SYMS 0x10
  331. /* BFD has local symbols (basically used for F_LSYMS in a COFF
  332. header). */
  333. #define HAS_LOCALS 0x20
  334. /* BFD is a dynamic object. */
  335. #define DYNAMIC 0x40
  336. /* Text section is write protected (if D_PAGED is not set, this is
  337. like an a.out NMAGIC file) (the linker sets this by default, but
  338. clears it for -r or -N). */
  339. #define WP_TEXT 0x80
  340. /* BFD is dynamically paged (this is like an a.out ZMAGIC file) (the
  341. linker sets this by default, but clears it for -r or -n or -N). */
  342. #define D_PAGED 0x100
  343. /* BFD is relaxable (this means that bfd_relax_section may be able to
  344. do something) (sometimes bfd_relax_section can do something even if
  345. this is not set). */
  346. #define BFD_IS_RELAXABLE 0x200
  347. /* This may be set before writing out a BFD to request using a
  348. traditional format. For example, this is used to request that when
  349. writing out an a.out object the symbols not be hashed to eliminate
  350. duplicates. */
  351. #define BFD_TRADITIONAL_FORMAT 0x400
  352. /* This flag indicates that the BFD contents are actually cached
  353. in memory. If this is set, iostream points to a bfd_in_memory
  354. struct. */
  355. #define BFD_IN_MEMORY 0x800
  356. /* This BFD has been created by the linker and doesn't correspond
  357. to any input file. */
  358. #define BFD_LINKER_CREATED 0x1000
  359. /* This may be set before writing out a BFD to request that it
  360. be written using values for UIDs, GIDs, timestamps, etc. that
  361. will be consistent from run to run. */
  362. #define BFD_DETERMINISTIC_OUTPUT 0x2000
  363. /* Compress sections in this BFD. */
  364. #define BFD_COMPRESS 0x4000
  365. /* Decompress sections in this BFD. */
  366. #define BFD_DECOMPRESS 0x8000
  367. /* BFD is a dummy, for plugins. */
  368. #define BFD_PLUGIN 0x10000
  369. /* Compress sections in this BFD with SHF_COMPRESSED from gABI. */
  370. #define BFD_COMPRESS_GABI 0x20000
  371. /* Convert ELF common symbol type to STT_COMMON or STT_OBJECT in this
  372. BFD. */
  373. #define BFD_CONVERT_ELF_COMMON 0x40000
  374. /* Use the ELF STT_COMMON type in this BFD. */
  375. #define BFD_USE_ELF_STT_COMMON 0x80000
  376. /* Flags bits to be saved in bfd_preserve_save. */
  377. #define BFD_FLAGS_SAVED \
  378. (BFD_IN_MEMORY | BFD_COMPRESS | BFD_DECOMPRESS | BFD_PLUGIN \
  379. | BFD_COMPRESS_GABI | BFD_CONVERT_ELF_COMMON | BFD_USE_ELF_STT_COMMON)
  380. /* Flags bits which are for BFD use only. */
  381. #define BFD_FLAGS_FOR_BFD_USE_MASK \
  382. (BFD_IN_MEMORY | BFD_COMPRESS | BFD_DECOMPRESS | BFD_LINKER_CREATED \
  383. | BFD_PLUGIN | BFD_TRADITIONAL_FORMAT | BFD_DETERMINISTIC_OUTPUT \
  384. | BFD_COMPRESS_GABI | BFD_CONVERT_ELF_COMMON | BFD_USE_ELF_STT_COMMON)
  385. /* Is the file descriptor being cached? That is, can it be closed as
  386. needed, and re-opened when accessed later? */
  387. unsigned int cacheable : 1;
  388. /* Marks whether there was a default target specified when the
  389. BFD was opened. This is used to select which matching algorithm
  390. to use to choose the back end. */
  391. unsigned int target_defaulted : 1;
  392. /* ... and here: (``once'' means at least once). */
  393. unsigned int opened_once : 1;
  394. /* Set if we have a locally maintained mtime value, rather than
  395. getting it from the file each time. */
  396. unsigned int mtime_set : 1;
  397. /* Flag set if symbols from this BFD should not be exported. */
  398. unsigned int no_export : 1;
  399. /* Remember when output has begun, to stop strange things
  400. from happening. */
  401. unsigned int output_has_begun : 1;
  402. /* Have archive map. */
  403. unsigned int has_armap : 1;
  404. /* Set if this is a thin archive. */
  405. unsigned int is_thin_archive : 1;
  406. /* Set if only required symbols should be added in the link hash table for
  407. this object. Used by VMS linkers. */
  408. unsigned int selective_search : 1;
  409. /* Set if this is the linker output BFD. */
  410. unsigned int is_linker_output : 1;
  411. /* Set if this is the linker input BFD. */
  412. unsigned int is_linker_input : 1;
  413. /* If this is an input for a compiler plug-in library. */
  414. ENUM_BITFIELD (bfd_plugin_format) plugin_format : 2;
  415. /* Set if this is a plugin output file. */
  416. unsigned int lto_output : 1;
  417. /* Set to dummy BFD created when claimed by a compiler plug-in
  418. library. */
  419. bfd *plugin_dummy_bfd;
  420. /* Currently my_archive is tested before adding origin to
  421. anything. I believe that this can become always an add of
  422. origin, with origin set to 0 for non archive files. */
  423. ufile_ptr origin;
  424. /* The origin in the archive of the proxy entry. This will
  425. normally be the same as origin, except for thin archives,
  426. when it will contain the current offset of the proxy in the
  427. thin archive rather than the offset of the bfd in its actual
  428. container. */
  429. ufile_ptr proxy_origin;
  430. /* A hash table for section names. */
  431. struct bfd_hash_table section_htab;
  432. /* Pointer to linked list of sections. */
  433. struct bfd_section *sections;
  434. /* The last section on the section list. */
  435. struct bfd_section *section_last;
  436. /* The number of sections. */
  437. unsigned int section_count;
  438. /* A field used by _bfd_generic_link_add_archive_symbols. This will
  439. be used only for archive elements. */
  440. int archive_pass;
  441. /* Stuff only useful for object files:
  442. The start address. */
  443. bfd_vma start_address;
  444. /* Symbol table for output BFD (with symcount entries).
  445. Also used by the linker to cache input BFD symbols. */
  446. struct bfd_symbol **outsymbols;
  447. /* Used for input and output. */
  448. unsigned int symcount;
  449. /* Used for slurped dynamic symbol tables. */
  450. unsigned int dynsymcount;
  451. /* Pointer to structure which contains architecture information. */
  452. const struct bfd_arch_info *arch_info;
  453. /* Stuff only useful for archives. */
  454. void *arelt_data;
  455. struct bfd *my_archive; /* The containing archive BFD. */
  456. struct bfd *archive_next; /* The next BFD in the archive. */
  457. struct bfd *archive_head; /* The first BFD in the archive. */
  458. struct bfd *nested_archives; /* List of nested archive in a flattened
  459. thin archive. */
  460. union {
  461. /* For input BFDs, a chain of BFDs involved in a link. */
  462. struct bfd *next;
  463. /* For output BFD, the linker hash table. */
  464. struct bfd_link_hash_table *hash;
  465. } link;
  466. /* Used by the back end to hold private data. */
  467. union
  468. {
  469. struct aout_data_struct *aout_data;
  470. struct artdata *aout_ar_data;
  471. struct _oasys_data *oasys_obj_data;
  472. struct _oasys_ar_data *oasys_ar_data;
  473. struct coff_tdata *coff_obj_data;
  474. struct pe_tdata *pe_obj_data;
  475. struct xcoff_tdata *xcoff_obj_data;
  476. struct ecoff_tdata *ecoff_obj_data;
  477. struct ieee_data_struct *ieee_data;
  478. struct ieee_ar_data_struct *ieee_ar_data;
  479. struct srec_data_struct *srec_data;
  480. struct verilog_data_struct *verilog_data;
  481. struct ihex_data_struct *ihex_data;
  482. struct tekhex_data_struct *tekhex_data;
  483. struct elf_obj_tdata *elf_obj_data;
  484. struct nlm_obj_tdata *nlm_obj_data;
  485. struct bout_data_struct *bout_data;
  486. struct mmo_data_struct *mmo_data;
  487. struct sun_core_struct *sun_core_data;
  488. struct sco5_core_struct *sco5_core_data;
  489. struct trad_core_struct *trad_core_data;
  490. struct som_data_struct *som_data;
  491. struct hpux_core_struct *hpux_core_data;
  492. struct hppabsd_core_struct *hppabsd_core_data;
  493. struct sgi_core_struct *sgi_core_data;
  494. struct lynx_core_struct *lynx_core_data;
  495. struct osf_core_struct *osf_core_data;
  496. struct cisco_core_struct *cisco_core_data;
  497. struct versados_data_struct *versados_data;
  498. struct netbsd_core_struct *netbsd_core_data;
  499. struct mach_o_data_struct *mach_o_data;
  500. struct mach_o_fat_data_struct *mach_o_fat_data;
  501. struct plugin_data_struct *plugin_data;
  502. struct bfd_pef_data_struct *pef_data;
  503. struct bfd_pef_xlib_data_struct *pef_xlib_data;
  504. struct bfd_sym_data_struct *sym_data;
  505. void *any;
  506. }
  507. tdata;
  508. /* Used by the application to hold private data. */
  509. void *usrdata;
  510. /* Where all the allocated stuff under this BFD goes. This is a
  511. struct objalloc *, but we use void * to avoid requiring the inclusion
  512. of objalloc.h. */
  513. void *memory;
  514. /* For input BFDs, the build ID, if the object has one. */
  515. const struct bfd_build_id *build_id;
  516. };
  517. /* See note beside bfd_set_section_userdata. */
  518. static inline bfd_boolean
  519. bfd_set_cacheable (bfd * abfd, bfd_boolean val)
  520. {
  521. abfd->cacheable = val;
  522. return TRUE;
  523. }
  524. 
  525. File: bfd.info, Node: Error reporting, Next: Miscellaneous, Prev: typedef bfd, Up: BFD front end
  526. 2.2 Error reporting
  527. ===================
  528. Most BFD functions return nonzero on success (check their individual
  529. documentation for precise semantics). On an error, they call
  530. 'bfd_set_error' to set an error condition that callers can check by
  531. calling 'bfd_get_error'. If that returns 'bfd_error_system_call', then
  532. check 'errno'.
  533. The easiest way to report a BFD error to the user is to use
  534. 'bfd_perror'.
  535. 2.2.1 Type 'bfd_error_type'
  536. ---------------------------
  537. The values returned by 'bfd_get_error' are defined by the enumerated
  538. type 'bfd_error_type'.
  539. typedef enum bfd_error
  540. {
  541. bfd_error_no_error = 0,
  542. bfd_error_system_call,
  543. bfd_error_invalid_target,
  544. bfd_error_wrong_format,
  545. bfd_error_wrong_object_format,
  546. bfd_error_invalid_operation,
  547. bfd_error_no_memory,
  548. bfd_error_no_symbols,
  549. bfd_error_no_armap,
  550. bfd_error_no_more_archived_files,
  551. bfd_error_malformed_archive,
  552. bfd_error_missing_dso,
  553. bfd_error_file_not_recognized,
  554. bfd_error_file_ambiguously_recognized,
  555. bfd_error_no_contents,
  556. bfd_error_nonrepresentable_section,
  557. bfd_error_no_debug_section,
  558. bfd_error_bad_value,
  559. bfd_error_file_truncated,
  560. bfd_error_file_too_big,
  561. bfd_error_on_input,
  562. bfd_error_invalid_error_code
  563. }
  564. bfd_error_type;
  565. 2.2.1.1 'bfd_get_error'
  566. .......................
  567. *Synopsis*
  568. bfd_error_type bfd_get_error (void);
  569. *Description*
  570. Return the current BFD error condition.
  571. 2.2.1.2 'bfd_set_error'
  572. .......................
  573. *Synopsis*
  574. void bfd_set_error (bfd_error_type error_tag, ...);
  575. *Description*
  576. Set the BFD error condition to be ERROR_TAG. If ERROR_TAG is
  577. bfd_error_on_input, then this function takes two more parameters, the
  578. input bfd where the error occurred, and the bfd_error_type error.
  579. 2.2.1.3 'bfd_errmsg'
  580. ....................
  581. *Synopsis*
  582. const char *bfd_errmsg (bfd_error_type error_tag);
  583. *Description*
  584. Return a string describing the error ERROR_TAG, or the system error if
  585. ERROR_TAG is 'bfd_error_system_call'.
  586. 2.2.1.4 'bfd_perror'
  587. ....................
  588. *Synopsis*
  589. void bfd_perror (const char *message);
  590. *Description*
  591. Print to the standard error stream a string describing the last BFD
  592. error that occurred, or the last system error if the last BFD error was
  593. a system call failure. If MESSAGE is non-NULL and non-empty, the error
  594. string printed is preceded by MESSAGE, a colon, and a space. It is
  595. followed by a newline.
  596. 2.2.2 BFD error handler
  597. -----------------------
  598. Some BFD functions want to print messages describing the problem. They
  599. call a BFD error handler function. This function may be overridden by
  600. the program.
  601. The BFD error handler acts like vprintf.
  602. typedef void (*bfd_error_handler_type) (const char *, va_list);
  603. 2.2.2.1 'bfd_set_error_handler'
  604. ...............................
  605. *Synopsis*
  606. bfd_error_handler_type bfd_set_error_handler (bfd_error_handler_type);
  607. *Description*
  608. Set the BFD error handler function. Returns the previous function.
  609. 2.2.2.2 'bfd_set_error_program_name'
  610. ....................................
  611. *Synopsis*
  612. void bfd_set_error_program_name (const char *);
  613. *Description*
  614. Set the program name to use when printing a BFD error. This is printed
  615. before the error message followed by a colon and space. The string must
  616. not be changed after it is passed to this function.
  617. 2.2.3 BFD assert handler
  618. ------------------------
  619. If BFD finds an internal inconsistency, the bfd assert handler is called
  620. with information on the BFD version, BFD source file and line. If this
  621. happens, most programs linked against BFD are expected to want to exit
  622. with an error, or mark the current BFD operation as failed, so it is
  623. recommended to override the default handler, which just calls
  624. _bfd_error_handler and continues.
  625. typedef void (*bfd_assert_handler_type) (const char *bfd_formatmsg,
  626. const char *bfd_version,
  627. const char *bfd_file,
  628. int bfd_line);
  629. 2.2.3.1 'bfd_set_assert_handler'
  630. ................................
  631. *Synopsis*
  632. bfd_assert_handler_type bfd_set_assert_handler (bfd_assert_handler_type);
  633. *Description*
  634. Set the BFD assert handler function. Returns the previous function.
  635. 
  636. File: bfd.info, Node: Miscellaneous, Next: Memory Usage, Prev: Error reporting, Up: BFD front end
  637. 2.3 Miscellaneous
  638. =================
  639. 2.3.1 Miscellaneous functions
  640. -----------------------------
  641. 2.3.1.1 'bfd_get_reloc_upper_bound'
  642. ...................................
  643. *Synopsis*
  644. long bfd_get_reloc_upper_bound (bfd *abfd, asection *sect);
  645. *Description*
  646. Return the number of bytes required to store the relocation information
  647. associated with section SECT attached to bfd ABFD. If an error occurs,
  648. return -1.
  649. 2.3.1.2 'bfd_canonicalize_reloc'
  650. ................................
  651. *Synopsis*
  652. long bfd_canonicalize_reloc
  653. (bfd *abfd, asection *sec, arelent **loc, asymbol **syms);
  654. *Description*
  655. Call the back end associated with the open BFD ABFD and translate the
  656. external form of the relocation information attached to SEC into the
  657. internal canonical form. Place the table into memory at LOC, which has
  658. been preallocated, usually by a call to 'bfd_get_reloc_upper_bound'.
  659. Returns the number of relocs, or -1 on error.
  660. The SYMS table is also needed for horrible internal magic reasons.
  661. 2.3.1.3 'bfd_set_reloc'
  662. .......................
  663. *Synopsis*
  664. void bfd_set_reloc
  665. (bfd *abfd, asection *sec, arelent **rel, unsigned int count);
  666. *Description*
  667. Set the relocation pointer and count within section SEC to the values
  668. REL and COUNT. The argument ABFD is ignored.
  669. 2.3.1.4 'bfd_set_file_flags'
  670. ............................
  671. *Synopsis*
  672. bfd_boolean bfd_set_file_flags (bfd *abfd, flagword flags);
  673. *Description*
  674. Set the flag word in the BFD ABFD to the value FLAGS.
  675. Possible errors are:
  676. * 'bfd_error_wrong_format' - The target bfd was not of object format.
  677. * 'bfd_error_invalid_operation' - The target bfd was open for
  678. reading.
  679. * 'bfd_error_invalid_operation' - The flag word contained a bit which
  680. was not applicable to the type of file. E.g., an attempt was made
  681. to set the 'D_PAGED' bit on a BFD format which does not support
  682. demand paging.
  683. 2.3.1.5 'bfd_get_arch_size'
  684. ...........................
  685. *Synopsis*
  686. int bfd_get_arch_size (bfd *abfd);
  687. *Description*
  688. Returns the normalized architecture address size, in bits, as determined
  689. by the object file's format. By normalized, we mean either 32 or 64.
  690. For ELF, this information is included in the header. Use
  691. bfd_arch_bits_per_address for number of bits in the architecture
  692. address.
  693. *Returns*
  694. Returns the arch size in bits if known, '-1' otherwise.
  695. 2.3.1.6 'bfd_get_sign_extend_vma'
  696. .................................
  697. *Synopsis*
  698. int bfd_get_sign_extend_vma (bfd *abfd);
  699. *Description*
  700. Indicates if the target architecture "naturally" sign extends an
  701. address. Some architectures implicitly sign extend address values when
  702. they are converted to types larger than the size of an address. For
  703. instance, bfd_get_start_address() will return an address sign extended
  704. to fill a bfd_vma when this is the case.
  705. *Returns*
  706. Returns '1' if the target architecture is known to sign extend
  707. addresses, '0' if the target architecture is known to not sign extend
  708. addresses, and '-1' otherwise.
  709. 2.3.1.7 'bfd_set_start_address'
  710. ...............................
  711. *Synopsis*
  712. bfd_boolean bfd_set_start_address (bfd *abfd, bfd_vma vma);
  713. *Description*
  714. Make VMA the entry point of output BFD ABFD.
  715. *Returns*
  716. Returns 'TRUE' on success, 'FALSE' otherwise.
  717. 2.3.1.8 'bfd_get_gp_size'
  718. .........................
  719. *Synopsis*
  720. unsigned int bfd_get_gp_size (bfd *abfd);
  721. *Description*
  722. Return the maximum size of objects to be optimized using the GP register
  723. under MIPS ECOFF. This is typically set by the '-G' argument to the
  724. compiler, assembler or linker.
  725. 2.3.1.9 'bfd_set_gp_size'
  726. .........................
  727. *Synopsis*
  728. void bfd_set_gp_size (bfd *abfd, unsigned int i);
  729. *Description*
  730. Set the maximum size of objects to be optimized using the GP register
  731. under ECOFF or MIPS ELF. This is typically set by the '-G' argument to
  732. the compiler, assembler or linker.
  733. 2.3.1.10 'bfd_scan_vma'
  734. .......................
  735. *Synopsis*
  736. bfd_vma bfd_scan_vma (const char *string, const char **end, int base);
  737. *Description*
  738. Convert, like 'strtoul', a numerical expression STRING into a 'bfd_vma'
  739. integer, and return that integer. (Though without as many bells and
  740. whistles as 'strtoul'.) The expression is assumed to be unsigned (i.e.,
  741. positive). If given a BASE, it is used as the base for conversion. A
  742. base of 0 causes the function to interpret the string in hex if a
  743. leading "0x" or "0X" is found, otherwise in octal if a leading zero is
  744. found, otherwise in decimal.
  745. If the value would overflow, the maximum 'bfd_vma' value is returned.
  746. 2.3.1.11 'bfd_copy_private_header_data'
  747. .......................................
  748. *Synopsis*
  749. bfd_boolean bfd_copy_private_header_data (bfd *ibfd, bfd *obfd);
  750. *Description*
  751. Copy private BFD header information from the BFD IBFD to the the BFD
  752. OBFD. This copies information that may require sections to exist, but
  753. does not require symbol tables. Return 'true' on success, 'false' on
  754. error. Possible error returns are:
  755. * 'bfd_error_no_memory' - Not enough memory exists to create private
  756. data for OBFD.
  757. #define bfd_copy_private_header_data(ibfd, obfd) \
  758. BFD_SEND (obfd, _bfd_copy_private_header_data, \
  759. (ibfd, obfd))
  760. 2.3.1.12 'bfd_copy_private_bfd_data'
  761. ....................................
  762. *Synopsis*
  763. bfd_boolean bfd_copy_private_bfd_data (bfd *ibfd, bfd *obfd);
  764. *Description*
  765. Copy private BFD information from the BFD IBFD to the the BFD OBFD.
  766. Return 'TRUE' on success, 'FALSE' on error. Possible error returns are:
  767. * 'bfd_error_no_memory' - Not enough memory exists to create private
  768. data for OBFD.
  769. #define bfd_copy_private_bfd_data(ibfd, obfd) \
  770. BFD_SEND (obfd, _bfd_copy_private_bfd_data, \
  771. (ibfd, obfd))
  772. 2.3.1.13 'bfd_set_private_flags'
  773. ................................
  774. *Synopsis*
  775. bfd_boolean bfd_set_private_flags (bfd *abfd, flagword flags);
  776. *Description*
  777. Set private BFD flag information in the BFD ABFD. Return 'TRUE' on
  778. success, 'FALSE' on error. Possible error returns are:
  779. * 'bfd_error_no_memory' - Not enough memory exists to create private
  780. data for OBFD.
  781. #define bfd_set_private_flags(abfd, flags) \
  782. BFD_SEND (abfd, _bfd_set_private_flags, (abfd, flags))
  783. 2.3.1.14 'Other functions'
  784. ..........................
  785. *Description*
  786. The following functions exist but have not yet been documented.
  787. #define bfd_sizeof_headers(abfd, info) \
  788. BFD_SEND (abfd, _bfd_sizeof_headers, (abfd, info))
  789. #define bfd_find_nearest_line(abfd, sec, syms, off, file, func, line) \
  790. BFD_SEND (abfd, _bfd_find_nearest_line, \
  791. (abfd, syms, sec, off, file, func, line, NULL))
  792. #define bfd_find_nearest_line_discriminator(abfd, sec, syms, off, file, func, \
  793. line, disc) \
  794. BFD_SEND (abfd, _bfd_find_nearest_line, \
  795. (abfd, syms, sec, off, file, func, line, disc))
  796. #define bfd_find_line(abfd, syms, sym, file, line) \
  797. BFD_SEND (abfd, _bfd_find_line, \
  798. (abfd, syms, sym, file, line))
  799. #define bfd_find_inliner_info(abfd, file, func, line) \
  800. BFD_SEND (abfd, _bfd_find_inliner_info, \
  801. (abfd, file, func, line))
  802. #define bfd_debug_info_start(abfd) \
  803. BFD_SEND (abfd, _bfd_debug_info_start, (abfd))
  804. #define bfd_debug_info_end(abfd) \
  805. BFD_SEND (abfd, _bfd_debug_info_end, (abfd))
  806. #define bfd_debug_info_accumulate(abfd, section) \
  807. BFD_SEND (abfd, _bfd_debug_info_accumulate, (abfd, section))
  808. #define bfd_stat_arch_elt(abfd, stat) \
  809. BFD_SEND (abfd, _bfd_stat_arch_elt,(abfd, stat))
  810. #define bfd_update_armap_timestamp(abfd) \
  811. BFD_SEND (abfd, _bfd_update_armap_timestamp, (abfd))
  812. #define bfd_set_arch_mach(abfd, arch, mach)\
  813. BFD_SEND ( abfd, _bfd_set_arch_mach, (abfd, arch, mach))
  814. #define bfd_relax_section(abfd, section, link_info, again) \
  815. BFD_SEND (abfd, _bfd_relax_section, (abfd, section, link_info, again))
  816. #define bfd_gc_sections(abfd, link_info) \
  817. BFD_SEND (abfd, _bfd_gc_sections, (abfd, link_info))
  818. #define bfd_lookup_section_flags(link_info, flag_info, section) \
  819. BFD_SEND (abfd, _bfd_lookup_section_flags, (link_info, flag_info, section))
  820. #define bfd_merge_sections(abfd, link_info) \
  821. BFD_SEND (abfd, _bfd_merge_sections, (abfd, link_info))
  822. #define bfd_is_group_section(abfd, sec) \
  823. BFD_SEND (abfd, _bfd_is_group_section, (abfd, sec))
  824. #define bfd_discard_group(abfd, sec) \
  825. BFD_SEND (abfd, _bfd_discard_group, (abfd, sec))
  826. #define bfd_link_hash_table_create(abfd) \
  827. BFD_SEND (abfd, _bfd_link_hash_table_create, (abfd))
  828. #define bfd_link_add_symbols(abfd, info) \
  829. BFD_SEND (abfd, _bfd_link_add_symbols, (abfd, info))
  830. #define bfd_link_just_syms(abfd, sec, info) \
  831. BFD_SEND (abfd, _bfd_link_just_syms, (sec, info))
  832. #define bfd_final_link(abfd, info) \
  833. BFD_SEND (abfd, _bfd_final_link, (abfd, info))
  834. #define bfd_free_cached_info(abfd) \
  835. BFD_SEND (abfd, _bfd_free_cached_info, (abfd))
  836. #define bfd_get_dynamic_symtab_upper_bound(abfd) \
  837. BFD_SEND (abfd, _bfd_get_dynamic_symtab_upper_bound, (abfd))
  838. #define bfd_print_private_bfd_data(abfd, file)\
  839. BFD_SEND (abfd, _bfd_print_private_bfd_data, (abfd, file))
  840. #define bfd_canonicalize_dynamic_symtab(abfd, asymbols) \
  841. BFD_SEND (abfd, _bfd_canonicalize_dynamic_symtab, (abfd, asymbols))
  842. #define bfd_get_synthetic_symtab(abfd, count, syms, dyncount, dynsyms, ret) \
  843. BFD_SEND (abfd, _bfd_get_synthetic_symtab, (abfd, count, syms, \
  844. dyncount, dynsyms, ret))
  845. #define bfd_get_dynamic_reloc_upper_bound(abfd) \
  846. BFD_SEND (abfd, _bfd_get_dynamic_reloc_upper_bound, (abfd))
  847. #define bfd_canonicalize_dynamic_reloc(abfd, arels, asyms) \
  848. BFD_SEND (abfd, _bfd_canonicalize_dynamic_reloc, (abfd, arels, asyms))
  849. extern bfd_byte *bfd_get_relocated_section_contents
  850. (bfd *, struct bfd_link_info *, struct bfd_link_order *, bfd_byte *,
  851. bfd_boolean, asymbol **);
  852. 2.3.1.15 'bfd_alt_mach_code'
  853. ............................
  854. *Synopsis*
  855. bfd_boolean bfd_alt_mach_code (bfd *abfd, int alternative);
  856. *Description*
  857. When more than one machine code number is available for the same machine
  858. type, this function can be used to switch between the preferred one
  859. (alternative == 0) and any others. Currently, only ELF supports this
  860. feature, with up to two alternate machine codes.
  861. 2.3.1.16 'bfd_emul_get_maxpagesize'
  862. ...................................
  863. *Synopsis*
  864. bfd_vma bfd_emul_get_maxpagesize (const char *);
  865. *Description*
  866. Returns the maximum page size, in bytes, as determined by emulation.
  867. *Returns*
  868. Returns the maximum page size in bytes for ELF, 0 otherwise.
  869. 2.3.1.17 'bfd_emul_set_maxpagesize'
  870. ...................................
  871. *Synopsis*
  872. void bfd_emul_set_maxpagesize (const char *, bfd_vma);
  873. *Description*
  874. For ELF, set the maximum page size for the emulation. It is a no-op for
  875. other formats.
  876. 2.3.1.18 'bfd_emul_get_commonpagesize'
  877. ......................................
  878. *Synopsis*
  879. bfd_vma bfd_emul_get_commonpagesize (const char *);
  880. *Description*
  881. Returns the common page size, in bytes, as determined by emulation.
  882. *Returns*
  883. Returns the common page size in bytes for ELF, 0 otherwise.
  884. 2.3.1.19 'bfd_emul_set_commonpagesize'
  885. ......................................
  886. *Synopsis*
  887. void bfd_emul_set_commonpagesize (const char *, bfd_vma);
  888. *Description*
  889. For ELF, set the common page size for the emulation. It is a no-op for
  890. other formats.
  891. 2.3.1.20 'bfd_demangle'
  892. .......................
  893. *Synopsis*
  894. char *bfd_demangle (bfd *, const char *, int);
  895. *Description*
  896. Wrapper around cplus_demangle. Strips leading underscores and other
  897. such chars that would otherwise confuse the demangler. If passed a g++
  898. v3 ABI mangled name, returns a buffer allocated with malloc holding the
  899. demangled name. Returns NULL otherwise and on memory alloc failure.
  900. 2.3.1.21 'bfd_update_compression_header'
  901. ........................................
  902. *Synopsis*
  903. void bfd_update_compression_header
  904. (bfd *abfd, bfd_byte *contents, asection *sec);
  905. *Description*
  906. Set the compression header at CONTENTS of SEC in ABFD and update
  907. elf_section_flags for compression.
  908. 2.3.1.22 'bfd_check_compression_header'
  909. .......................................
  910. *Synopsis*
  911. bfd_boolean bfd_check_compression_header
  912. (bfd *abfd, bfd_byte *contents, asection *sec,
  913. bfd_size_type *uncompressed_size);
  914. *Description*
  915. Check the compression header at CONTENTS of SEC in ABFD and store the
  916. uncompressed size in UNCOMPRESSED_SIZE if the compression header is
  917. valid.
  918. *Returns*
  919. Return TRUE if the compression header is valid.
  920. 2.3.1.23 'bfd_get_compression_header_size'
  921. ..........................................
  922. *Synopsis*
  923. int bfd_get_compression_header_size (bfd *abfd, asection *sec);
  924. *Description*
  925. Return the size of the compression header of SEC in ABFD.
  926. *Returns*
  927. Return the size of the compression header in bytes.
  928. 2.3.1.24 'bfd_convert_section_size'
  929. ...................................
  930. *Synopsis*
  931. bfd_size_type bfd_convert_section_size
  932. (bfd *ibfd, asection *isec, bfd *obfd, bfd_size_type size);
  933. *Description*
  934. Convert the size SIZE of the section ISEC in input BFD IBFD to the
  935. section size in output BFD OBFD.
  936. 2.3.1.25 'bfd_convert_section_contents'
  937. .......................................
  938. *Synopsis*
  939. bfd_boolean bfd_convert_section_contents
  940. (bfd *ibfd, asection *isec, bfd *obfd,
  941. bfd_byte **ptr, bfd_size_type *ptr_size);
  942. *Description*
  943. Convert the contents, stored in *PTR, of the section ISEC in input BFD
  944. IBFD to output BFD OBFD if needed. The original buffer pointed to by
  945. *PTR may be freed and *PTR is returned with memory malloc'd by this
  946. function, and the new size written to PTR_SIZE.
  947. 2.3.1.26 'struct bfd_iovec'
  948. ...........................
  949. *Description*
  950. The 'struct bfd_iovec' contains the internal file I/O class. Each 'BFD'
  951. has an instance of this class and all file I/O is routed through it (it
  952. is assumed that the instance implements all methods listed below).
  953. struct bfd_iovec
  954. {
  955. /* To avoid problems with macros, a "b" rather than "f"
  956. prefix is prepended to each method name. */
  957. /* Attempt to read/write NBYTES on ABFD's IOSTREAM storing/fetching
  958. bytes starting at PTR. Return the number of bytes actually
  959. transfered (a read past end-of-file returns less than NBYTES),
  960. or -1 (setting bfd_error) if an error occurs. */
  961. file_ptr (*bread) (struct bfd *abfd, void *ptr, file_ptr nbytes);
  962. file_ptr (*bwrite) (struct bfd *abfd, const void *ptr,
  963. file_ptr nbytes);
  964. /* Return the current IOSTREAM file offset, or -1 (setting bfd_error
  965. if an error occurs. */
  966. file_ptr (*btell) (struct bfd *abfd);
  967. /* For the following, on successful completion a value of 0 is returned.
  968. Otherwise, a value of -1 is returned (and bfd_error is set). */
  969. int (*bseek) (struct bfd *abfd, file_ptr offset, int whence);
  970. int (*bclose) (struct bfd *abfd);
  971. int (*bflush) (struct bfd *abfd);
  972. int (*bstat) (struct bfd *abfd, struct stat *sb);
  973. /* Mmap a part of the files. ADDR, LEN, PROT, FLAGS and OFFSET are the usual
  974. mmap parameter, except that LEN and OFFSET do not need to be page
  975. aligned. Returns (void *)-1 on failure, mmapped address on success.
  976. Also write in MAP_ADDR the address of the page aligned buffer and in
  977. MAP_LEN the size mapped (a page multiple). Use unmap with MAP_ADDR and
  978. MAP_LEN to unmap. */
  979. void *(*bmmap) (struct bfd *abfd, void *addr, bfd_size_type len,
  980. int prot, int flags, file_ptr offset,
  981. void **map_addr, bfd_size_type *map_len);
  982. };
  983. extern const struct bfd_iovec _bfd_memory_iovec;
  984. 2.3.1.27 'bfd_get_mtime'
  985. ........................
  986. *Synopsis*
  987. long bfd_get_mtime (bfd *abfd);
  988. *Description*
  989. Return the file modification time (as read from the file system, or from
  990. the archive header for archive members).
  991. 2.3.1.28 'bfd_get_size'
  992. .......................
  993. *Synopsis*
  994. file_ptr bfd_get_size (bfd *abfd);
  995. *Description*
  996. Return the file size (as read from file system) for the file associated
  997. with BFD ABFD.
  998. The initial motivation for, and use of, this routine is not so we can
  999. get the exact size of the object the BFD applies to, since that might
  1000. not be generally possible (archive members for example). It would be
  1001. ideal if someone could eventually modify it so that such results were
  1002. guaranteed.
  1003. Instead, we want to ask questions like "is this NNN byte sized object
  1004. I'm about to try read from file offset YYY reasonable?" As as example
  1005. of where we might do this, some object formats use string tables for
  1006. which the first 'sizeof (long)' bytes of the table contain the size of
  1007. the table itself, including the size bytes. If an application tries to
  1008. read what it thinks is one of these string tables, without some way to
  1009. validate the size, and for some reason the size is wrong (byte swapping
  1010. error, wrong location for the string table, etc.), the only clue is
  1011. likely to be a read error when it tries to read the table, or a "virtual
  1012. memory exhausted" error when it tries to allocate 15 bazillon bytes of
  1013. space for the 15 bazillon byte table it is about to read. This function
  1014. at least allows us to answer the question, "is the size reasonable?".
  1015. 2.3.1.29 'bfd_mmap'
  1016. ...................
  1017. *Synopsis*
  1018. void *bfd_mmap (bfd *abfd, void *addr, bfd_size_type len,
  1019. int prot, int flags, file_ptr offset,
  1020. void **map_addr, bfd_size_type *map_len);
  1021. *Description*
  1022. Return mmap()ed region of the file, if possible and implemented. LEN
  1023. and OFFSET do not need to be page aligned. The page aligned address and
  1024. length are written to MAP_ADDR and MAP_LEN.
  1025. 
  1026. File: bfd.info, Node: Memory Usage, Next: Initialization, Prev: Miscellaneous, Up: BFD front end
  1027. 2.4 Memory Usage
  1028. ================
  1029. BFD keeps all of its internal structures in obstacks. There is one
  1030. obstack per open BFD file, into which the current state is stored. When
  1031. a BFD is closed, the obstack is deleted, and so everything which has
  1032. been allocated by BFD for the closing file is thrown away.
  1033. BFD does not free anything created by an application, but pointers
  1034. into 'bfd' structures become invalid on a 'bfd_close'; for example,
  1035. after a 'bfd_close' the vector passed to 'bfd_canonicalize_symtab' is
  1036. still around, since it has been allocated by the application, but the
  1037. data that it pointed to are lost.
  1038. The general rule is to not close a BFD until all operations dependent
  1039. upon data from the BFD have been completed, or all the data from within
  1040. the file has been copied. To help with the management of memory, there
  1041. is a function ('bfd_alloc_size') which returns the number of bytes in
  1042. obstacks associated with the supplied BFD. This could be used to select
  1043. the greediest open BFD, close it to reclaim the memory, perform some
  1044. operation and reopen the BFD again, to get a fresh copy of the data
  1045. structures.
  1046. 
  1047. File: bfd.info, Node: Initialization, Next: Sections, Prev: Memory Usage, Up: BFD front end
  1048. 2.5 Initialization
  1049. ==================
  1050. 2.5.1 Initialization functions
  1051. ------------------------------
  1052. These are the functions that handle initializing a BFD.
  1053. 2.5.1.1 'bfd_init'
  1054. ..................
  1055. *Synopsis*
  1056. void bfd_init (void);
  1057. *Description*
  1058. This routine must be called before any other BFD function to initialize
  1059. magical internal data structures.
  1060. 
  1061. File: bfd.info, Node: Sections, Next: Symbols, Prev: Initialization, Up: BFD front end
  1062. 2.6 Sections
  1063. ============
  1064. The raw data contained within a BFD is maintained through the section
  1065. abstraction. A single BFD may have any number of sections. It keeps
  1066. hold of them by pointing to the first; each one points to the next in
  1067. the list.
  1068. Sections are supported in BFD in 'section.c'.
  1069. * Menu:
  1070. * Section Input::
  1071. * Section Output::
  1072. * typedef asection::
  1073. * section prototypes::
  1074. 
  1075. File: bfd.info, Node: Section Input, Next: Section Output, Prev: Sections, Up: Sections
  1076. 2.6.1 Section input
  1077. -------------------
  1078. When a BFD is opened for reading, the section structures are created and
  1079. attached to the BFD.
  1080. Each section has a name which describes the section in the outside
  1081. world--for example, 'a.out' would contain at least three sections,
  1082. called '.text', '.data' and '.bss'.
  1083. Names need not be unique; for example a COFF file may have several
  1084. sections named '.data'.
  1085. Sometimes a BFD will contain more than the "natural" number of
  1086. sections. A back end may attach other sections containing constructor
  1087. data, or an application may add a section (using 'bfd_make_section') to
  1088. the sections attached to an already open BFD. For example, the linker
  1089. creates an extra section 'COMMON' for each input file's BFD to hold
  1090. information about common storage.
  1091. The raw data is not necessarily read in when the section descriptor
  1092. is created. Some targets may leave the data in place until a
  1093. 'bfd_get_section_contents' call is made. Other back ends may read in
  1094. all the data at once. For example, an S-record file has to be read once
  1095. to determine the size of the data. An IEEE-695 file doesn't contain raw
  1096. data in sections, but data and relocation expressions intermixed, so the
  1097. data area has to be parsed to get out the data and relocations.
  1098. 
  1099. File: bfd.info, Node: Section Output, Next: typedef asection, Prev: Section Input, Up: Sections
  1100. 2.6.2 Section output
  1101. --------------------
  1102. To write a new object style BFD, the various sections to be written have
  1103. to be created. They are attached to the BFD in the same way as input
  1104. sections; data is written to the sections using
  1105. 'bfd_set_section_contents'.
  1106. Any program that creates or combines sections (e.g., the assembler
  1107. and linker) must use the 'asection' fields 'output_section' and
  1108. 'output_offset' to indicate the file sections to which each section must
  1109. be written. (If the section is being created from scratch,
  1110. 'output_section' should probably point to the section itself and
  1111. 'output_offset' should probably be zero.)
  1112. The data to be written comes from input sections attached (via
  1113. 'output_section' pointers) to the output sections. The output section
  1114. structure can be considered a filter for the input section: the output
  1115. section determines the vma of the output data and the name, but the
  1116. input section determines the offset into the output section of the data
  1117. to be written.
  1118. E.g., to create a section "O", starting at 0x100, 0x123 long,
  1119. containing two subsections, "A" at offset 0x0 (i.e., at vma 0x100) and
  1120. "B" at offset 0x20 (i.e., at vma 0x120) the 'asection' structures would
  1121. look like:
  1122. section name "A"
  1123. output_offset 0x00
  1124. size 0x20
  1125. output_section -----------> section name "O"
  1126. | vma 0x100
  1127. section name "B" | size 0x123
  1128. output_offset 0x20 |
  1129. size 0x103 |
  1130. output_section --------|
  1131. 2.6.3 Link orders
  1132. -----------------
  1133. The data within a section is stored in a "link_order". These are much
  1134. like the fixups in 'gas'. The link_order abstraction allows a section
  1135. to grow and shrink within itself.
  1136. A link_order knows how big it is, and which is the next link_order
  1137. and where the raw data for it is; it also points to a list of
  1138. relocations which apply to it.
  1139. The link_order is used by the linker to perform relaxing on final
  1140. code. The compiler creates code which is as big as necessary to make it
  1141. work without relaxing, and the user can select whether to relax.
  1142. Sometimes relaxing takes a lot of time. The linker runs around the
  1143. relocations to see if any are attached to data which can be shrunk, if
  1144. so it does it on a link_order by link_order basis.
  1145. 
  1146. File: bfd.info, Node: typedef asection, Next: section prototypes, Prev: Section Output, Up: Sections
  1147. 2.6.4 typedef asection
  1148. ----------------------
  1149. Here is the section structure:
  1150. typedef struct bfd_section
  1151. {
  1152. /* The name of the section; the name isn't a copy, the pointer is
  1153. the same as that passed to bfd_make_section. */
  1154. const char *name;
  1155. /* A unique sequence number. */
  1156. unsigned int id;
  1157. /* Which section in the bfd; 0..n-1 as sections are created in a bfd. */
  1158. unsigned int index;
  1159. /* The next section in the list belonging to the BFD, or NULL. */
  1160. struct bfd_section *next;
  1161. /* The previous section in the list belonging to the BFD, or NULL. */
  1162. struct bfd_section *prev;
  1163. /* The field flags contains attributes of the section. Some
  1164. flags are read in from the object file, and some are
  1165. synthesized from other information. */
  1166. flagword flags;
  1167. #define SEC_NO_FLAGS 0x000
  1168. /* Tells the OS to allocate space for this section when loading.
  1169. This is clear for a section containing debug information only. */
  1170. #define SEC_ALLOC 0x001
  1171. /* Tells the OS to load the section from the file when loading.
  1172. This is clear for a .bss section. */
  1173. #define SEC_LOAD 0x002
  1174. /* The section contains data still to be relocated, so there is
  1175. some relocation information too. */
  1176. #define SEC_RELOC 0x004
  1177. /* A signal to the OS that the section contains read only data. */
  1178. #define SEC_READONLY 0x008
  1179. /* The section contains code only. */
  1180. #define SEC_CODE 0x010
  1181. /* The section contains data only. */
  1182. #define SEC_DATA 0x020
  1183. /* The section will reside in ROM. */
  1184. #define SEC_ROM 0x040
  1185. /* The section contains constructor information. This section
  1186. type is used by the linker to create lists of constructors and
  1187. destructors used by g++. When a back end sees a symbol
  1188. which should be used in a constructor list, it creates a new
  1189. section for the type of name (e.g., __CTOR_LIST__), attaches
  1190. the symbol to it, and builds a relocation. To build the lists
  1191. of constructors, all the linker has to do is catenate all the
  1192. sections called __CTOR_LIST__ and relocate the data
  1193. contained within - exactly the operations it would peform on
  1194. standard data. */
  1195. #define SEC_CONSTRUCTOR 0x080
  1196. /* The section has contents - a data section could be
  1197. SEC_ALLOC | SEC_HAS_CONTENTS; a debug section could be
  1198. SEC_HAS_CONTENTS */
  1199. #define SEC_HAS_CONTENTS 0x100
  1200. /* An instruction to the linker to not output the section
  1201. even if it has information which would normally be written. */
  1202. #define SEC_NEVER_LOAD 0x200
  1203. /* The section contains thread local data. */
  1204. #define SEC_THREAD_LOCAL 0x400
  1205. /* The section has GOT references. This flag is only for the
  1206. linker, and is currently only used by the elf32-hppa back end.
  1207. It will be set if global offset table references were detected
  1208. in this section, which indicate to the linker that the section
  1209. contains PIC code, and must be handled specially when doing a
  1210. static link. */
  1211. #define SEC_HAS_GOT_REF 0x800
  1212. /* The section contains common symbols (symbols may be defined
  1213. multiple times, the value of a symbol is the amount of
  1214. space it requires, and the largest symbol value is the one
  1215. used). Most targets have exactly one of these (which we
  1216. translate to bfd_com_section_ptr), but ECOFF has two. */
  1217. #define SEC_IS_COMMON 0x1000
  1218. /* The section contains only debugging information. For
  1219. example, this is set for ELF .debug and .stab sections.
  1220. strip tests this flag to see if a section can be
  1221. discarded. */
  1222. #define SEC_DEBUGGING 0x2000
  1223. /* The contents of this section are held in memory pointed to
  1224. by the contents field. This is checked by bfd_get_section_contents,
  1225. and the data is retrieved from memory if appropriate. */
  1226. #define SEC_IN_MEMORY 0x4000
  1227. /* The contents of this section are to be excluded by the
  1228. linker for executable and shared objects unless those
  1229. objects are to be further relocated. */
  1230. #define SEC_EXCLUDE 0x8000
  1231. /* The contents of this section are to be sorted based on the sum of
  1232. the symbol and addend values specified by the associated relocation
  1233. entries. Entries without associated relocation entries will be
  1234. appended to the end of the section in an unspecified order. */
  1235. #define SEC_SORT_ENTRIES 0x10000
  1236. /* When linking, duplicate sections of the same name should be
  1237. discarded, rather than being combined into a single section as
  1238. is usually done. This is similar to how common symbols are
  1239. handled. See SEC_LINK_DUPLICATES below. */
  1240. #define SEC_LINK_ONCE 0x20000
  1241. /* If SEC_LINK_ONCE is set, this bitfield describes how the linker
  1242. should handle duplicate sections. */
  1243. #define SEC_LINK_DUPLICATES 0xc0000
  1244. /* This value for SEC_LINK_DUPLICATES means that duplicate
  1245. sections with the same name should simply be discarded. */
  1246. #define SEC_LINK_DUPLICATES_DISCARD 0x0
  1247. /* This value for SEC_LINK_DUPLICATES means that the linker
  1248. should warn if there are any duplicate sections, although
  1249. it should still only link one copy. */
  1250. #define SEC_LINK_DUPLICATES_ONE_ONLY 0x40000
  1251. /* This value for SEC_LINK_DUPLICATES means that the linker
  1252. should warn if any duplicate sections are a different size. */
  1253. #define SEC_LINK_DUPLICATES_SAME_SIZE 0x80000
  1254. /* This value for SEC_LINK_DUPLICATES means that the linker
  1255. should warn if any duplicate sections contain different
  1256. contents. */
  1257. #define SEC_LINK_DUPLICATES_SAME_CONTENTS \
  1258. (SEC_LINK_DUPLICATES_ONE_ONLY | SEC_LINK_DUPLICATES_SAME_SIZE)
  1259. /* This section was created by the linker as part of dynamic
  1260. relocation or other arcane processing. It is skipped when
  1261. going through the first-pass output, trusting that someone
  1262. else up the line will take care of it later. */
  1263. #define SEC_LINKER_CREATED 0x100000
  1264. /* This section should not be subject to garbage collection.
  1265. Also set to inform the linker that this section should not be
  1266. listed in the link map as discarded. */
  1267. #define SEC_KEEP 0x200000
  1268. /* This section contains "short" data, and should be placed
  1269. "near" the GP. */
  1270. #define SEC_SMALL_DATA 0x400000
  1271. /* Attempt to merge identical entities in the section.
  1272. Entity size is given in the entsize field. */
  1273. #define SEC_MERGE 0x800000
  1274. /* If given with SEC_MERGE, entities to merge are zero terminated
  1275. strings where entsize specifies character size instead of fixed
  1276. size entries. */
  1277. #define SEC_STRINGS 0x1000000
  1278. /* This section contains data about section groups. */
  1279. #define SEC_GROUP 0x2000000
  1280. /* The section is a COFF shared library section. This flag is
  1281. only for the linker. If this type of section appears in
  1282. the input file, the linker must copy it to the output file
  1283. without changing the vma or size. FIXME: Although this
  1284. was originally intended to be general, it really is COFF
  1285. specific (and the flag was renamed to indicate this). It
  1286. might be cleaner to have some more general mechanism to
  1287. allow the back end to control what the linker does with
  1288. sections. */
  1289. #define SEC_COFF_SHARED_LIBRARY 0x4000000
  1290. /* This input section should be copied to output in reverse order
  1291. as an array of pointers. This is for ELF linker internal use
  1292. only. */
  1293. #define SEC_ELF_REVERSE_COPY 0x4000000
  1294. /* This section contains data which may be shared with other
  1295. executables or shared objects. This is for COFF only. */
  1296. #define SEC_COFF_SHARED 0x8000000
  1297. /* This section should be compressed. This is for ELF linker
  1298. internal use only. */
  1299. #define SEC_ELF_COMPRESS 0x8000000
  1300. /* When a section with this flag is being linked, then if the size of
  1301. the input section is less than a page, it should not cross a page
  1302. boundary. If the size of the input section is one page or more,
  1303. it should be aligned on a page boundary. This is for TI
  1304. TMS320C54X only. */
  1305. #define SEC_TIC54X_BLOCK 0x10000000
  1306. /* This section should be renamed. This is for ELF linker
  1307. internal use only. */
  1308. #define SEC_ELF_RENAME 0x10000000
  1309. /* Conditionally link this section; do not link if there are no
  1310. references found to any symbol in the section. This is for TI
  1311. TMS320C54X only. */
  1312. #define SEC_TIC54X_CLINK 0x20000000
  1313. /* This section contains vliw code. This is for Toshiba MeP only. */
  1314. #define SEC_MEP_VLIW 0x20000000
  1315. /* Indicate that section has the no read flag set. This happens
  1316. when memory read flag isn't set. */
  1317. #define SEC_COFF_NOREAD 0x40000000
  1318. /* Indicate that section has the purecode flag set. */
  1319. #define SEC_ELF_PURECODE 0x80000000
  1320. /* End of section flags. */
  1321. /* Some internal packed boolean fields. */
  1322. /* See the vma field. */
  1323. unsigned int user_set_vma : 1;
  1324. /* A mark flag used by some of the linker backends. */
  1325. unsigned int linker_mark : 1;
  1326. /* Another mark flag used by some of the linker backends. Set for
  1327. output sections that have an input section. */
  1328. unsigned int linker_has_input : 1;
  1329. /* Mark flag used by some linker backends for garbage collection. */
  1330. unsigned int gc_mark : 1;
  1331. /* Section compression status. */
  1332. unsigned int compress_status : 2;
  1333. #define COMPRESS_SECTION_NONE 0
  1334. #define COMPRESS_SECTION_DONE 1
  1335. #define DECOMPRESS_SECTION_SIZED 2
  1336. /* The following flags are used by the ELF linker. */
  1337. /* Mark sections which have been allocated to segments. */
  1338. unsigned int segment_mark : 1;
  1339. /* Type of sec_info information. */
  1340. unsigned int sec_info_type:3;
  1341. #define SEC_INFO_TYPE_NONE 0
  1342. #define SEC_INFO_TYPE_STABS 1
  1343. #define SEC_INFO_TYPE_MERGE 2
  1344. #define SEC_INFO_TYPE_EH_FRAME 3
  1345. #define SEC_INFO_TYPE_JUST_SYMS 4
  1346. #define SEC_INFO_TYPE_TARGET 5
  1347. #define SEC_INFO_TYPE_EH_FRAME_ENTRY 6
  1348. /* Nonzero if this section uses RELA relocations, rather than REL. */
  1349. unsigned int use_rela_p:1;
  1350. /* Bits used by various backends. The generic code doesn't touch
  1351. these fields. */
  1352. unsigned int sec_flg0:1;
  1353. unsigned int sec_flg1:1;
  1354. unsigned int sec_flg2:1;
  1355. unsigned int sec_flg3:1;
  1356. unsigned int sec_flg4:1;
  1357. unsigned int sec_flg5:1;
  1358. /* End of internal packed boolean fields. */
  1359. /* The virtual memory address of the section - where it will be
  1360. at run time. The symbols are relocated against this. The
  1361. user_set_vma flag is maintained by bfd; if it's not set, the
  1362. backend can assign addresses (for example, in a.out, where
  1363. the default address for .data is dependent on the specific
  1364. target and various flags). */
  1365. bfd_vma vma;
  1366. /* The load address of the section - where it would be in a
  1367. rom image; really only used for writing section header
  1368. information. */
  1369. bfd_vma lma;
  1370. /* The size of the section in *octets*, as it will be output.
  1371. Contains a value even if the section has no contents (e.g., the
  1372. size of .bss). */
  1373. bfd_size_type size;
  1374. /* For input sections, the original size on disk of the section, in
  1375. octets. This field should be set for any section whose size is
  1376. changed by linker relaxation. It is required for sections where
  1377. the linker relaxation scheme doesn't cache altered section and
  1378. reloc contents (stabs, eh_frame, SEC_MERGE, some coff relaxing
  1379. targets), and thus the original size needs to be kept to read the
  1380. section multiple times. For output sections, rawsize holds the
  1381. section size calculated on a previous linker relaxation pass. */
  1382. bfd_size_type rawsize;
  1383. /* The compressed size of the section in octets. */
  1384. bfd_size_type compressed_size;
  1385. /* Relaxation table. */
  1386. struct relax_table *relax;
  1387. /* Count of used relaxation table entries. */
  1388. int relax_count;
  1389. /* If this section is going to be output, then this value is the
  1390. offset in *bytes* into the output section of the first byte in the
  1391. input section (byte ==> smallest addressable unit on the
  1392. target). In most cases, if this was going to start at the
  1393. 100th octet (8-bit quantity) in the output section, this value
  1394. would be 100. However, if the target byte size is 16 bits
  1395. (bfd_octets_per_byte is "2"), this value would be 50. */
  1396. bfd_vma output_offset;
  1397. /* The output section through which to map on output. */
  1398. struct bfd_section *output_section;
  1399. /* The alignment requirement of the section, as an exponent of 2 -
  1400. e.g., 3 aligns to 2^3 (or 8). */
  1401. unsigned int alignment_power;
  1402. /* If an input section, a pointer to a vector of relocation
  1403. records for the data in this section. */
  1404. struct reloc_cache_entry *relocation;
  1405. /* If an output section, a pointer to a vector of pointers to
  1406. relocation records for the data in this section. */
  1407. struct reloc_cache_entry **orelocation;
  1408. /* The number of relocation records in one of the above. */
  1409. unsigned reloc_count;
  1410. /* Information below is back end specific - and not always used
  1411. or updated. */
  1412. /* File position of section data. */
  1413. file_ptr filepos;
  1414. /* File position of relocation info. */
  1415. file_ptr rel_filepos;
  1416. /* File position of line data. */
  1417. file_ptr line_filepos;
  1418. /* Pointer to data for applications. */
  1419. void *userdata;
  1420. /* If the SEC_IN_MEMORY flag is set, this points to the actual
  1421. contents. */
  1422. unsigned char *contents;
  1423. /* Attached line number information. */
  1424. alent *lineno;
  1425. /* Number of line number records. */
  1426. unsigned int lineno_count;
  1427. /* Entity size for merging purposes. */
  1428. unsigned int entsize;
  1429. /* Points to the kept section if this section is a link-once section,
  1430. and is discarded. */
  1431. struct bfd_section *kept_section;
  1432. /* When a section is being output, this value changes as more
  1433. linenumbers are written out. */
  1434. file_ptr moving_line_filepos;
  1435. /* What the section number is in the target world. */
  1436. int target_index;
  1437. void *used_by_bfd;
  1438. /* If this is a constructor section then here is a list of the
  1439. relocations created to relocate items within it. */
  1440. struct relent_chain *constructor_chain;
  1441. /* The BFD which owns the section. */
  1442. bfd *owner;
  1443. /* A symbol which points at this section only. */
  1444. struct bfd_symbol *symbol;
  1445. struct bfd_symbol **symbol_ptr_ptr;
  1446. /* Early in the link process, map_head and map_tail are used to build
  1447. a list of input sections attached to an output section. Later,
  1448. output sections use these fields for a list of bfd_link_order
  1449. structs. */
  1450. union {
  1451. struct bfd_link_order *link_order;
  1452. struct bfd_section *s;
  1453. } map_head, map_tail;
  1454. } asection;
  1455. /* Relax table contains information about instructions which can
  1456. be removed by relaxation -- replacing a long address with a
  1457. short address. */
  1458. struct relax_table {
  1459. /* Address where bytes may be deleted. */
  1460. bfd_vma addr;
  1461. /* Number of bytes to be deleted. */
  1462. int size;
  1463. };
  1464. /* Note: the following are provided as inline functions rather than macros
  1465. because not all callers use the return value. A macro implementation
  1466. would use a comma expression, eg: "((ptr)->foo = val, TRUE)" and some
  1467. compilers will complain about comma expressions that have no effect. */
  1468. static inline bfd_boolean
  1469. bfd_set_section_userdata (bfd * abfd ATTRIBUTE_UNUSED, asection * ptr, void * val)
  1470. {
  1471. ptr->userdata = val;
  1472. return TRUE;
  1473. }
  1474. static inline bfd_boolean
  1475. bfd_set_section_vma (bfd * abfd ATTRIBUTE_UNUSED, asection * ptr, bfd_vma val)
  1476. {
  1477. ptr->vma = ptr->lma = val;
  1478. ptr->user_set_vma = TRUE;
  1479. return TRUE;
  1480. }
  1481. static inline bfd_boolean
  1482. bfd_set_section_alignment (bfd * abfd ATTRIBUTE_UNUSED, asection * ptr, unsigned int val)
  1483. {
  1484. ptr->alignment_power = val;
  1485. return TRUE;
  1486. }
  1487. /* These sections are global, and are managed by BFD. The application
  1488. and target back end are not permitted to change the values in
  1489. these sections. */
  1490. extern asection _bfd_std_section[4];
  1491. #define BFD_ABS_SECTION_NAME "*ABS*"
  1492. #define BFD_UND_SECTION_NAME "*UND*"
  1493. #define BFD_COM_SECTION_NAME "*COM*"
  1494. #define BFD_IND_SECTION_NAME "*IND*"
  1495. /* Pointer to the common section. */
  1496. #define bfd_com_section_ptr (&_bfd_std_section[0])
  1497. /* Pointer to the undefined section. */
  1498. #define bfd_und_section_ptr (&_bfd_std_section[1])
  1499. /* Pointer to the absolute section. */
  1500. #define bfd_abs_section_ptr (&_bfd_std_section[2])
  1501. /* Pointer to the indirect section. */
  1502. #define bfd_ind_section_ptr (&_bfd_std_section[3])
  1503. #define bfd_is_und_section(sec) ((sec) == bfd_und_section_ptr)
  1504. #define bfd_is_abs_section(sec) ((sec) == bfd_abs_section_ptr)
  1505. #define bfd_is_ind_section(sec) ((sec) == bfd_ind_section_ptr)
  1506. #define bfd_is_const_section(SEC) \
  1507. ( ((SEC) == bfd_abs_section_ptr) \
  1508. || ((SEC) == bfd_und_section_ptr) \
  1509. || ((SEC) == bfd_com_section_ptr) \
  1510. || ((SEC) == bfd_ind_section_ptr))
  1511. /* Macros to handle insertion and deletion of a bfd's sections. These
  1512. only handle the list pointers, ie. do not adjust section_count,
  1513. target_index etc. */
  1514. #define bfd_section_list_remove(ABFD, S) \
  1515. do \
  1516. { \
  1517. asection *_s = S; \
  1518. asection *_next = _s->next; \
  1519. asection *_prev = _s->prev; \
  1520. if (_prev) \
  1521. _prev->next = _next; \
  1522. else \
  1523. (ABFD)->sections = _next; \
  1524. if (_next) \
  1525. _next->prev = _prev; \
  1526. else \
  1527. (ABFD)->section_last = _prev; \
  1528. } \
  1529. while (0)
  1530. #define bfd_section_list_append(ABFD, S) \
  1531. do \
  1532. { \
  1533. asection *_s = S; \
  1534. bfd *_abfd = ABFD; \
  1535. _s->next = NULL; \
  1536. if (_abfd->section_last) \
  1537. { \
  1538. _s->prev = _abfd->section_last; \
  1539. _abfd->section_last->next = _s; \
  1540. } \
  1541. else \
  1542. { \
  1543. _s->prev = NULL; \
  1544. _abfd->sections = _s; \
  1545. } \
  1546. _abfd->section_last = _s; \
  1547. } \
  1548. while (0)
  1549. #define bfd_section_list_prepend(ABFD, S) \
  1550. do \
  1551. { \
  1552. asection *_s = S; \
  1553. bfd *_abfd = ABFD; \
  1554. _s->prev = NULL; \
  1555. if (_abfd->sections) \
  1556. { \
  1557. _s->next = _abfd->sections; \
  1558. _abfd->sections->prev = _s; \
  1559. } \
  1560. else \
  1561. { \
  1562. _s->next = NULL; \
  1563. _abfd->section_last = _s; \
  1564. } \
  1565. _abfd->sections = _s; \
  1566. } \
  1567. while (0)
  1568. #define bfd_section_list_insert_after(ABFD, A, S) \
  1569. do \
  1570. { \
  1571. asection *_a = A; \
  1572. asection *_s = S; \
  1573. asection *_next = _a->next; \
  1574. _s->next = _next; \
  1575. _s->prev = _a; \
  1576. _a->next = _s; \
  1577. if (_next) \
  1578. _next->prev = _s; \
  1579. else \
  1580. (ABFD)->section_last = _s; \
  1581. } \
  1582. while (0)
  1583. #define bfd_section_list_insert_before(ABFD, B, S) \
  1584. do \
  1585. { \
  1586. asection *_b = B; \
  1587. asection *_s = S; \
  1588. asection *_prev = _b->prev; \
  1589. _s->prev = _prev; \
  1590. _s->next = _b; \
  1591. _b->prev = _s; \
  1592. if (_prev) \
  1593. _prev->next = _s; \
  1594. else \
  1595. (ABFD)->sections = _s; \
  1596. } \
  1597. while (0)
  1598. #define bfd_section_removed_from_list(ABFD, S) \
  1599. ((S)->next == NULL ? (ABFD)->section_last != (S) : (S)->next->prev != (S))
  1600. #define BFD_FAKE_SECTION(SEC, SYM, NAME, IDX, FLAGS) \
  1601. /* name, id, index, next, prev, flags, user_set_vma, */ \
  1602. { NAME, IDX, 0, NULL, NULL, FLAGS, 0, \
  1603. \
  1604. /* linker_mark, linker_has_input, gc_mark, decompress_status, */ \
  1605. 0, 0, 1, 0, \
  1606. \
  1607. /* segment_mark, sec_info_type, use_rela_p, */ \
  1608. 0, 0, 0, \
  1609. \
  1610. /* sec_flg0, sec_flg1, sec_flg2, sec_flg3, sec_flg4, sec_flg5, */ \
  1611. 0, 0, 0, 0, 0, 0, \
  1612. \
  1613. /* vma, lma, size, rawsize, compressed_size, relax, relax_count, */ \
  1614. 0, 0, 0, 0, 0, 0, 0, \
  1615. \
  1616. /* output_offset, output_section, alignment_power, */ \
  1617. 0, &SEC, 0, \
  1618. \
  1619. /* relocation, orelocation, reloc_count, filepos, rel_filepos, */ \
  1620. NULL, NULL, 0, 0, 0, \
  1621. \
  1622. /* line_filepos, userdata, contents, lineno, lineno_count, */ \
  1623. 0, NULL, NULL, NULL, 0, \
  1624. \
  1625. /* entsize, kept_section, moving_line_filepos, */ \
  1626. 0, NULL, 0, \
  1627. \
  1628. /* target_index, used_by_bfd, constructor_chain, owner, */ \
  1629. 0, NULL, NULL, NULL, \
  1630. \
  1631. /* symbol, symbol_ptr_ptr, */ \
  1632. (struct bfd_symbol *) SYM, &SEC.symbol, \
  1633. \
  1634. /* map_head, map_tail */ \
  1635. { NULL }, { NULL } \
  1636. }
  1637. 
  1638. File: bfd.info, Node: section prototypes, Prev: typedef asection, Up: Sections
  1639. 2.6.5 Section prototypes
  1640. ------------------------
  1641. These are the functions exported by the section handling part of BFD.
  1642. 2.6.5.1 'bfd_section_list_clear'
  1643. ................................
  1644. *Synopsis*
  1645. void bfd_section_list_clear (bfd *);
  1646. *Description*
  1647. Clears the section list, and also resets the section count and hash
  1648. table entries.
  1649. 2.6.5.2 'bfd_get_section_by_name'
  1650. .................................
  1651. *Synopsis*
  1652. asection *bfd_get_section_by_name (bfd *abfd, const char *name);
  1653. *Description*
  1654. Return the most recently created section attached to ABFD named NAME.
  1655. Return NULL if no such section exists.
  1656. 2.6.5.3 'bfd_get_next_section_by_name'
  1657. ......................................
  1658. *Synopsis*
  1659. asection *bfd_get_next_section_by_name (bfd *ibfd, asection *sec);
  1660. *Description*
  1661. Given SEC is a section returned by 'bfd_get_section_by_name', return the
  1662. next most recently created section attached to the same BFD with the
  1663. same name, or if no such section exists in the same BFD and IBFD is
  1664. non-NULL, the next section with the same name in any input BFD following
  1665. IBFD. Return NULL on finding no section.
  1666. 2.6.5.4 'bfd_get_linker_section'
  1667. ................................
  1668. *Synopsis*
  1669. asection *bfd_get_linker_section (bfd *abfd, const char *name);
  1670. *Description*
  1671. Return the linker created section attached to ABFD named NAME. Return
  1672. NULL if no such section exists.
  1673. 2.6.5.5 'bfd_get_section_by_name_if'
  1674. ....................................
  1675. *Synopsis*
  1676. asection *bfd_get_section_by_name_if
  1677. (bfd *abfd,
  1678. const char *name,
  1679. bfd_boolean (*func) (bfd *abfd, asection *sect, void *obj),
  1680. void *obj);
  1681. *Description*
  1682. Call the provided function FUNC for each section attached to the BFD
  1683. ABFD whose name matches NAME, passing OBJ as an argument. The function
  1684. will be called as if by
  1685. func (abfd, the_section, obj);
  1686. It returns the first section for which FUNC returns true, otherwise
  1687. 'NULL'.
  1688. 2.6.5.6 'bfd_get_unique_section_name'
  1689. .....................................
  1690. *Synopsis*
  1691. char *bfd_get_unique_section_name
  1692. (bfd *abfd, const char *templat, int *count);
  1693. *Description*
  1694. Invent a section name that is unique in ABFD by tacking a dot and a
  1695. digit suffix onto the original TEMPLAT. If COUNT is non-NULL, then it
  1696. specifies the first number tried as a suffix to generate a unique name.
  1697. The value pointed to by COUNT will be incremented in this case.
  1698. 2.6.5.7 'bfd_make_section_old_way'
  1699. ..................................
  1700. *Synopsis*
  1701. asection *bfd_make_section_old_way (bfd *abfd, const char *name);
  1702. *Description*
  1703. Create a new empty section called NAME and attach it to the end of the
  1704. chain of sections for the BFD ABFD. An attempt to create a section with
  1705. a name which is already in use returns its pointer without changing the
  1706. section chain.
  1707. It has the funny name since this is the way it used to be before it
  1708. was rewritten....
  1709. Possible errors are:
  1710. * 'bfd_error_invalid_operation' - If output has already started for
  1711. this BFD.
  1712. * 'bfd_error_no_memory' - If memory allocation fails.
  1713. 2.6.5.8 'bfd_make_section_anyway_with_flags'
  1714. ............................................
  1715. *Synopsis*
  1716. asection *bfd_make_section_anyway_with_flags
  1717. (bfd *abfd, const char *name, flagword flags);
  1718. *Description*
  1719. Create a new empty section called NAME and attach it to the end of the
  1720. chain of sections for ABFD. Create a new section even if there is
  1721. already a section with that name. Also set the attributes of the new
  1722. section to the value FLAGS.
  1723. Return 'NULL' and set 'bfd_error' on error; possible errors are:
  1724. * 'bfd_error_invalid_operation' - If output has already started for
  1725. ABFD.
  1726. * 'bfd_error_no_memory' - If memory allocation fails.
  1727. 2.6.5.9 'bfd_make_section_anyway'
  1728. .................................
  1729. *Synopsis*
  1730. asection *bfd_make_section_anyway (bfd *abfd, const char *name);
  1731. *Description*
  1732. Create a new empty section called NAME and attach it to the end of the
  1733. chain of sections for ABFD. Create a new section even if there is
  1734. already a section with that name.
  1735. Return 'NULL' and set 'bfd_error' on error; possible errors are:
  1736. * 'bfd_error_invalid_operation' - If output has already started for
  1737. ABFD.
  1738. * 'bfd_error_no_memory' - If memory allocation fails.
  1739. 2.6.5.10 'bfd_make_section_with_flags'
  1740. ......................................
  1741. *Synopsis*
  1742. asection *bfd_make_section_with_flags
  1743. (bfd *, const char *name, flagword flags);
  1744. *Description*
  1745. Like 'bfd_make_section_anyway', but return 'NULL' (without calling
  1746. bfd_set_error ()) without changing the section chain if there is already
  1747. a section named NAME. Also set the attributes of the new section to the
  1748. value FLAGS. If there is an error, return 'NULL' and set 'bfd_error'.
  1749. 2.6.5.11 'bfd_make_section'
  1750. ...........................
  1751. *Synopsis*
  1752. asection *bfd_make_section (bfd *, const char *name);
  1753. *Description*
  1754. Like 'bfd_make_section_anyway', but return 'NULL' (without calling
  1755. bfd_set_error ()) without changing the section chain if there is already
  1756. a section named NAME. If there is an error, return 'NULL' and set
  1757. 'bfd_error'.
  1758. 2.6.5.12 'bfd_get_next_section_id'
  1759. ..................................
  1760. *Synopsis*
  1761. int bfd_get_next_section_id (void);
  1762. *Description*
  1763. Returns the id that the next section created will have.
  1764. 2.6.5.13 'bfd_set_section_flags'
  1765. ................................
  1766. *Synopsis*
  1767. bfd_boolean bfd_set_section_flags
  1768. (bfd *abfd, asection *sec, flagword flags);
  1769. *Description*
  1770. Set the attributes of the section SEC in the BFD ABFD to the value
  1771. FLAGS. Return 'TRUE' on success, 'FALSE' on error. Possible error
  1772. returns are:
  1773. * 'bfd_error_invalid_operation' - The section cannot have one or more
  1774. of the attributes requested. For example, a .bss section in
  1775. 'a.out' may not have the 'SEC_HAS_CONTENTS' field set.
  1776. 2.6.5.14 'bfd_rename_section'
  1777. .............................
  1778. *Synopsis*
  1779. void bfd_rename_section
  1780. (bfd *abfd, asection *sec, const char *newname);
  1781. *Description*
  1782. Rename section SEC in ABFD to NEWNAME.
  1783. 2.6.5.15 'bfd_map_over_sections'
  1784. ................................
  1785. *Synopsis*
  1786. void bfd_map_over_sections
  1787. (bfd *abfd,
  1788. void (*func) (bfd *abfd, asection *sect, void *obj),
  1789. void *obj);
  1790. *Description*
  1791. Call the provided function FUNC for each section attached to the BFD
  1792. ABFD, passing OBJ as an argument. The function will be called as if by
  1793. func (abfd, the_section, obj);
  1794. This is the preferred method for iterating over sections; an
  1795. alternative would be to use a loop:
  1796. asection *p;
  1797. for (p = abfd->sections; p != NULL; p = p->next)
  1798. func (abfd, p, ...)
  1799. 2.6.5.16 'bfd_sections_find_if'
  1800. ...............................
  1801. *Synopsis*
  1802. asection *bfd_sections_find_if
  1803. (bfd *abfd,
  1804. bfd_boolean (*operation) (bfd *abfd, asection *sect, void *obj),
  1805. void *obj);
  1806. *Description*
  1807. Call the provided function OPERATION for each section attached to the
  1808. BFD ABFD, passing OBJ as an argument. The function will be called as if
  1809. by
  1810. operation (abfd, the_section, obj);
  1811. It returns the first section for which OPERATION returns true.
  1812. 2.6.5.17 'bfd_set_section_size'
  1813. ...............................
  1814. *Synopsis*
  1815. bfd_boolean bfd_set_section_size
  1816. (bfd *abfd, asection *sec, bfd_size_type val);
  1817. *Description*
  1818. Set SEC to the size VAL. If the operation is ok, then 'TRUE' is
  1819. returned, else 'FALSE'.
  1820. Possible error returns:
  1821. * 'bfd_error_invalid_operation' - Writing has started to the BFD, so
  1822. setting the size is invalid.
  1823. 2.6.5.18 'bfd_set_section_contents'
  1824. ...................................
  1825. *Synopsis*
  1826. bfd_boolean bfd_set_section_contents
  1827. (bfd *abfd, asection *section, const void *data,
  1828. file_ptr offset, bfd_size_type count);
  1829. *Description*
  1830. Sets the contents of the section SECTION in BFD ABFD to the data
  1831. starting in memory at DATA. The data is written to the output section
  1832. starting at offset OFFSET for COUNT octets.
  1833. Normally 'TRUE' is returned, else 'FALSE'. Possible error returns
  1834. are:
  1835. * 'bfd_error_no_contents' - The output section does not have the
  1836. 'SEC_HAS_CONTENTS' attribute, so nothing can be written to it.
  1837. * and some more too
  1838. This routine is front end to the back end function
  1839. '_bfd_set_section_contents'.
  1840. 2.6.5.19 'bfd_get_section_contents'
  1841. ...................................
  1842. *Synopsis*
  1843. bfd_boolean bfd_get_section_contents
  1844. (bfd *abfd, asection *section, void *location, file_ptr offset,
  1845. bfd_size_type count);
  1846. *Description*
  1847. Read data from SECTION in BFD ABFD into memory starting at LOCATION.
  1848. The data is read at an offset of OFFSET from the start of the input
  1849. section, and is read for COUNT bytes.
  1850. If the contents of a constructor with the 'SEC_CONSTRUCTOR' flag set
  1851. are requested or if the section does not have the 'SEC_HAS_CONTENTS'
  1852. flag set, then the LOCATION is filled with zeroes. If no errors occur,
  1853. 'TRUE' is returned, else 'FALSE'.
  1854. 2.6.5.20 'bfd_malloc_and_get_section'
  1855. .....................................
  1856. *Synopsis*
  1857. bfd_boolean bfd_malloc_and_get_section
  1858. (bfd *abfd, asection *section, bfd_byte **buf);
  1859. *Description*
  1860. Read all data from SECTION in BFD ABFD into a buffer, *BUF, malloc'd by
  1861. this function.
  1862. 2.6.5.21 'bfd_copy_private_section_data'
  1863. ........................................
  1864. *Synopsis*
  1865. bfd_boolean bfd_copy_private_section_data
  1866. (bfd *ibfd, asection *isec, bfd *obfd, asection *osec);
  1867. *Description*
  1868. Copy private section information from ISEC in the BFD IBFD to the
  1869. section OSEC in the BFD OBFD. Return 'TRUE' on success, 'FALSE' on
  1870. error. Possible error returns are:
  1871. * 'bfd_error_no_memory' - Not enough memory exists to create private
  1872. data for OSEC.
  1873. #define bfd_copy_private_section_data(ibfd, isection, obfd, osection) \
  1874. BFD_SEND (obfd, _bfd_copy_private_section_data, \
  1875. (ibfd, isection, obfd, osection))
  1876. 2.6.5.22 'bfd_generic_is_group_section'
  1877. .......................................
  1878. *Synopsis*
  1879. bfd_boolean bfd_generic_is_group_section (bfd *, const asection *sec);
  1880. *Description*
  1881. Returns TRUE if SEC is a member of a group.
  1882. 2.6.5.23 'bfd_generic_discard_group'
  1883. ....................................
  1884. *Synopsis*
  1885. bfd_boolean bfd_generic_discard_group (bfd *abfd, asection *group);
  1886. *Description*
  1887. Remove all members of GROUP from the output.
  1888. 
  1889. File: bfd.info, Node: Symbols, Next: Archives, Prev: Sections, Up: BFD front end
  1890. 2.7 Symbols
  1891. ===========
  1892. BFD tries to maintain as much symbol information as it can when it moves
  1893. information from file to file. BFD passes information to applications
  1894. though the 'asymbol' structure. When the application requests the
  1895. symbol table, BFD reads the table in the native form and translates
  1896. parts of it into the internal format. To maintain more than the
  1897. information passed to applications, some targets keep some information
  1898. "behind the scenes" in a structure only the particular back end knows
  1899. about. For example, the coff back end keeps the original symbol table
  1900. structure as well as the canonical structure when a BFD is read in. On
  1901. output, the coff back end can reconstruct the output symbol table so
  1902. that no information is lost, even information unique to coff which BFD
  1903. doesn't know or understand. If a coff symbol table were read, but were
  1904. written through an a.out back end, all the coff specific information
  1905. would be lost. The symbol table of a BFD is not necessarily read in
  1906. until a canonicalize request is made. Then the BFD back end fills in a
  1907. table provided by the application with pointers to the canonical
  1908. information. To output symbols, the application provides BFD with a
  1909. table of pointers to pointers to 'asymbol's. This allows applications
  1910. like the linker to output a symbol as it was read, since the "behind the
  1911. scenes" information will be still available.
  1912. * Menu:
  1913. * Reading Symbols::
  1914. * Writing Symbols::
  1915. * Mini Symbols::
  1916. * typedef asymbol::
  1917. * symbol handling functions::
  1918. 
  1919. File: bfd.info, Node: Reading Symbols, Next: Writing Symbols, Prev: Symbols, Up: Symbols
  1920. 2.7.1 Reading symbols
  1921. ---------------------
  1922. There are two stages to reading a symbol table from a BFD: allocating
  1923. storage, and the actual reading process. This is an excerpt from an
  1924. application which reads the symbol table:
  1925. long storage_needed;
  1926. asymbol **symbol_table;
  1927. long number_of_symbols;
  1928. long i;
  1929. storage_needed = bfd_get_symtab_upper_bound (abfd);
  1930. if (storage_needed < 0)
  1931. FAIL
  1932. if (storage_needed == 0)
  1933. return;
  1934. symbol_table = xmalloc (storage_needed);
  1935. ...
  1936. number_of_symbols =
  1937. bfd_canonicalize_symtab (abfd, symbol_table);
  1938. if (number_of_symbols < 0)
  1939. FAIL
  1940. for (i = 0; i < number_of_symbols; i++)
  1941. process_symbol (symbol_table[i]);
  1942. All storage for the symbols themselves is in an objalloc connected to
  1943. the BFD; it is freed when the BFD is closed.
  1944. 
  1945. File: bfd.info, Node: Writing Symbols, Next: Mini Symbols, Prev: Reading Symbols, Up: Symbols
  1946. 2.7.2 Writing symbols
  1947. ---------------------
  1948. Writing of a symbol table is automatic when a BFD open for writing is
  1949. closed. The application attaches a vector of pointers to pointers to
  1950. symbols to the BFD being written, and fills in the symbol count. The
  1951. close and cleanup code reads through the table provided and performs all
  1952. the necessary operations. The BFD output code must always be provided
  1953. with an "owned" symbol: one which has come from another BFD, or one
  1954. which has been created using 'bfd_make_empty_symbol'. Here is an
  1955. example showing the creation of a symbol table with only one element:
  1956. #include "sysdep.h"
  1957. #include "bfd.h"
  1958. int main (void)
  1959. {
  1960. bfd *abfd;
  1961. asymbol *ptrs[2];
  1962. asymbol *new;
  1963. abfd = bfd_openw ("foo","a.out-sunos-big");
  1964. bfd_set_format (abfd, bfd_object);
  1965. new = bfd_make_empty_symbol (abfd);
  1966. new->name = "dummy_symbol";
  1967. new->section = bfd_make_section_old_way (abfd, ".text");
  1968. new->flags = BSF_GLOBAL;
  1969. new->value = 0x12345;
  1970. ptrs[0] = new;
  1971. ptrs[1] = 0;
  1972. bfd_set_symtab (abfd, ptrs, 1);
  1973. bfd_close (abfd);
  1974. return 0;
  1975. }
  1976. ./makesym
  1977. nm foo
  1978. 00012345 A dummy_symbol
  1979. Many formats cannot represent arbitrary symbol information; for
  1980. instance, the 'a.out' object format does not allow an arbitrary number
  1981. of sections. A symbol pointing to a section which is not one of
  1982. '.text', '.data' or '.bss' cannot be described.
  1983. 
  1984. File: bfd.info, Node: Mini Symbols, Next: typedef asymbol, Prev: Writing Symbols, Up: Symbols
  1985. 2.7.3 Mini Symbols
  1986. ------------------
  1987. Mini symbols provide read-only access to the symbol table. They use
  1988. less memory space, but require more time to access. They can be useful
  1989. for tools like nm or objdump, which may have to handle symbol tables of
  1990. extremely large executables.
  1991. The 'bfd_read_minisymbols' function will read the symbols into memory
  1992. in an internal form. It will return a 'void *' pointer to a block of
  1993. memory, a symbol count, and the size of each symbol. The pointer is
  1994. allocated using 'malloc', and should be freed by the caller when it is
  1995. no longer needed.
  1996. The function 'bfd_minisymbol_to_symbol' will take a pointer to a
  1997. minisymbol, and a pointer to a structure returned by
  1998. 'bfd_make_empty_symbol', and return a 'asymbol' structure. The return
  1999. value may or may not be the same as the value from
  2000. 'bfd_make_empty_symbol' which was passed in.
  2001. 
  2002. File: bfd.info, Node: typedef asymbol, Next: symbol handling functions, Prev: Mini Symbols, Up: Symbols
  2003. 2.7.4 typedef asymbol
  2004. ---------------------
  2005. An 'asymbol' has the form:
  2006. typedef struct bfd_symbol
  2007. {
  2008. /* A pointer to the BFD which owns the symbol. This information
  2009. is necessary so that a back end can work out what additional
  2010. information (invisible to the application writer) is carried
  2011. with the symbol.
  2012. This field is *almost* redundant, since you can use section->owner
  2013. instead, except that some symbols point to the global sections
  2014. bfd_{abs,com,und}_section. This could be fixed by making
  2015. these globals be per-bfd (or per-target-flavor). FIXME. */
  2016. struct bfd *the_bfd; /* Use bfd_asymbol_bfd(sym) to access this field. */
  2017. /* The text of the symbol. The name is left alone, and not copied; the
  2018. application may not alter it. */
  2019. const char *name;
  2020. /* The value of the symbol. This really should be a union of a
  2021. numeric value with a pointer, since some flags indicate that
  2022. a pointer to another symbol is stored here. */
  2023. symvalue value;
  2024. /* Attributes of a symbol. */
  2025. #define BSF_NO_FLAGS 0x00
  2026. /* The symbol has local scope; static in C. The value
  2027. is the offset into the section of the data. */
  2028. #define BSF_LOCAL (1 << 0)
  2029. /* The symbol has global scope; initialized data in C. The
  2030. value is the offset into the section of the data. */
  2031. #define BSF_GLOBAL (1 << 1)
  2032. /* The symbol has global scope and is exported. The value is
  2033. the offset into the section of the data. */
  2034. #define BSF_EXPORT BSF_GLOBAL /* No real difference. */
  2035. /* A normal C symbol would be one of:
  2036. BSF_LOCAL, BSF_UNDEFINED or BSF_GLOBAL. */
  2037. /* The symbol is a debugging record. The value has an arbitrary
  2038. meaning, unless BSF_DEBUGGING_RELOC is also set. */
  2039. #define BSF_DEBUGGING (1 << 2)
  2040. /* The symbol denotes a function entry point. Used in ELF,
  2041. perhaps others someday. */
  2042. #define BSF_FUNCTION (1 << 3)
  2043. /* Used by the linker. */
  2044. #define BSF_KEEP (1 << 5)
  2045. /* An ELF common symbol. */
  2046. #define BSF_ELF_COMMON (1 << 6)
  2047. /* A weak global symbol, overridable without warnings by
  2048. a regular global symbol of the same name. */
  2049. #define BSF_WEAK (1 << 7)
  2050. /* This symbol was created to point to a section, e.g. ELF's
  2051. STT_SECTION symbols. */
  2052. #define BSF_SECTION_SYM (1 << 8)
  2053. /* The symbol used to be a common symbol, but now it is
  2054. allocated. */
  2055. #define BSF_OLD_COMMON (1 << 9)
  2056. /* In some files the type of a symbol sometimes alters its
  2057. location in an output file - ie in coff a ISFCN symbol
  2058. which is also C_EXT symbol appears where it was
  2059. declared and not at the end of a section. This bit is set
  2060. by the target BFD part to convey this information. */
  2061. #define BSF_NOT_AT_END (1 << 10)
  2062. /* Signal that the symbol is the label of constructor section. */
  2063. #define BSF_CONSTRUCTOR (1 << 11)
  2064. /* Signal that the symbol is a warning symbol. The name is a
  2065. warning. The name of the next symbol is the one to warn about;
  2066. if a reference is made to a symbol with the same name as the next
  2067. symbol, a warning is issued by the linker. */
  2068. #define BSF_WARNING (1 << 12)
  2069. /* Signal that the symbol is indirect. This symbol is an indirect
  2070. pointer to the symbol with the same name as the next symbol. */
  2071. #define BSF_INDIRECT (1 << 13)
  2072. /* BSF_FILE marks symbols that contain a file name. This is used
  2073. for ELF STT_FILE symbols. */
  2074. #define BSF_FILE (1 << 14)
  2075. /* Symbol is from dynamic linking information. */
  2076. #define BSF_DYNAMIC (1 << 15)
  2077. /* The symbol denotes a data object. Used in ELF, and perhaps
  2078. others someday. */
  2079. #define BSF_OBJECT (1 << 16)
  2080. /* This symbol is a debugging symbol. The value is the offset
  2081. into the section of the data. BSF_DEBUGGING should be set
  2082. as well. */
  2083. #define BSF_DEBUGGING_RELOC (1 << 17)
  2084. /* This symbol is thread local. Used in ELF. */
  2085. #define BSF_THREAD_LOCAL (1 << 18)
  2086. /* This symbol represents a complex relocation expression,
  2087. with the expression tree serialized in the symbol name. */
  2088. #define BSF_RELC (1 << 19)
  2089. /* This symbol represents a signed complex relocation expression,
  2090. with the expression tree serialized in the symbol name. */
  2091. #define BSF_SRELC (1 << 20)
  2092. /* This symbol was created by bfd_get_synthetic_symtab. */
  2093. #define BSF_SYNTHETIC (1 << 21)
  2094. /* This symbol is an indirect code object. Unrelated to BSF_INDIRECT.
  2095. The dynamic linker will compute the value of this symbol by
  2096. calling the function that it points to. BSF_FUNCTION must
  2097. also be also set. */
  2098. #define BSF_GNU_INDIRECT_FUNCTION (1 << 22)
  2099. /* This symbol is a globally unique data object. The dynamic linker
  2100. will make sure that in the entire process there is just one symbol
  2101. with this name and type in use. BSF_OBJECT must also be set. */
  2102. #define BSF_GNU_UNIQUE (1 << 23)
  2103. flagword flags;
  2104. /* A pointer to the section to which this symbol is
  2105. relative. This will always be non NULL, there are special
  2106. sections for undefined and absolute symbols. */
  2107. struct bfd_section *section;
  2108. /* Back end special data. */
  2109. union
  2110. {
  2111. void *p;
  2112. bfd_vma i;
  2113. }
  2114. udata;
  2115. }
  2116. asymbol;
  2117. 
  2118. File: bfd.info, Node: symbol handling functions, Prev: typedef asymbol, Up: Symbols
  2119. 2.7.5 Symbol handling functions
  2120. -------------------------------
  2121. 2.7.5.1 'bfd_get_symtab_upper_bound'
  2122. ....................................
  2123. *Description*
  2124. Return the number of bytes required to store a vector of pointers to
  2125. 'asymbols' for all the symbols in the BFD ABFD, including a terminal
  2126. NULL pointer. If there are no symbols in the BFD, then return 0. If an
  2127. error occurs, return -1.
  2128. #define bfd_get_symtab_upper_bound(abfd) \
  2129. BFD_SEND (abfd, _bfd_get_symtab_upper_bound, (abfd))
  2130. 2.7.5.2 'bfd_is_local_label'
  2131. ............................
  2132. *Synopsis*
  2133. bfd_boolean bfd_is_local_label (bfd *abfd, asymbol *sym);
  2134. *Description*
  2135. Return TRUE if the given symbol SYM in the BFD ABFD is a compiler
  2136. generated local label, else return FALSE.
  2137. 2.7.5.3 'bfd_is_local_label_name'
  2138. .................................
  2139. *Synopsis*
  2140. bfd_boolean bfd_is_local_label_name (bfd *abfd, const char *name);
  2141. *Description*
  2142. Return TRUE if a symbol with the name NAME in the BFD ABFD is a compiler
  2143. generated local label, else return FALSE. This just checks whether the
  2144. name has the form of a local label.
  2145. #define bfd_is_local_label_name(abfd, name) \
  2146. BFD_SEND (abfd, _bfd_is_local_label_name, (abfd, name))
  2147. 2.7.5.4 'bfd_is_target_special_symbol'
  2148. ......................................
  2149. *Synopsis*
  2150. bfd_boolean bfd_is_target_special_symbol (bfd *abfd, asymbol *sym);
  2151. *Description*
  2152. Return TRUE iff a symbol SYM in the BFD ABFD is something special to the
  2153. particular target represented by the BFD. Such symbols should normally
  2154. not be mentioned to the user.
  2155. #define bfd_is_target_special_symbol(abfd, sym) \
  2156. BFD_SEND (abfd, _bfd_is_target_special_symbol, (abfd, sym))
  2157. 2.7.5.5 'bfd_canonicalize_symtab'
  2158. .................................
  2159. *Description*
  2160. Read the symbols from the BFD ABFD, and fills in the vector LOCATION
  2161. with pointers to the symbols and a trailing NULL. Return the actual
  2162. number of symbol pointers, not including the NULL.
  2163. #define bfd_canonicalize_symtab(abfd, location) \
  2164. BFD_SEND (abfd, _bfd_canonicalize_symtab, (abfd, location))
  2165. 2.7.5.6 'bfd_set_symtab'
  2166. ........................
  2167. *Synopsis*
  2168. bfd_boolean bfd_set_symtab
  2169. (bfd *abfd, asymbol **location, unsigned int count);
  2170. *Description*
  2171. Arrange that when the output BFD ABFD is closed, the table LOCATION of
  2172. COUNT pointers to symbols will be written.
  2173. 2.7.5.7 'bfd_print_symbol_vandf'
  2174. ................................
  2175. *Synopsis*
  2176. void bfd_print_symbol_vandf (bfd *abfd, void *file, asymbol *symbol);
  2177. *Description*
  2178. Print the value and flags of the SYMBOL supplied to the stream FILE.
  2179. 2.7.5.8 'bfd_make_empty_symbol'
  2180. ...............................
  2181. *Description*
  2182. Create a new 'asymbol' structure for the BFD ABFD and return a pointer
  2183. to it.
  2184. This routine is necessary because each back end has private
  2185. information surrounding the 'asymbol'. Building your own 'asymbol' and
  2186. pointing to it will not create the private information, and will cause
  2187. problems later on.
  2188. #define bfd_make_empty_symbol(abfd) \
  2189. BFD_SEND (abfd, _bfd_make_empty_symbol, (abfd))
  2190. 2.7.5.9 '_bfd_generic_make_empty_symbol'
  2191. ........................................
  2192. *Synopsis*
  2193. asymbol *_bfd_generic_make_empty_symbol (bfd *);
  2194. *Description*
  2195. Create a new 'asymbol' structure for the BFD ABFD and return a pointer
  2196. to it. Used by core file routines, binary back-end and anywhere else
  2197. where no private info is needed.
  2198. 2.7.5.10 'bfd_make_debug_symbol'
  2199. ................................
  2200. *Description*
  2201. Create a new 'asymbol' structure for the BFD ABFD, to be used as a
  2202. debugging symbol. Further details of its use have yet to be worked out.
  2203. #define bfd_make_debug_symbol(abfd,ptr,size) \
  2204. BFD_SEND (abfd, _bfd_make_debug_symbol, (abfd, ptr, size))
  2205. 2.7.5.11 'bfd_decode_symclass'
  2206. ..............................
  2207. *Description*
  2208. Return a character corresponding to the symbol class of SYMBOL, or '?'
  2209. for an unknown class.
  2210. *Synopsis*
  2211. int bfd_decode_symclass (asymbol *symbol);
  2212. 2.7.5.12 'bfd_is_undefined_symclass'
  2213. ....................................
  2214. *Description*
  2215. Returns non-zero if the class symbol returned by bfd_decode_symclass
  2216. represents an undefined symbol. Returns zero otherwise.
  2217. *Synopsis*
  2218. bfd_boolean bfd_is_undefined_symclass (int symclass);
  2219. 2.7.5.13 'bfd_symbol_info'
  2220. ..........................
  2221. *Description*
  2222. Fill in the basic info about symbol that nm needs. Additional info may
  2223. be added by the back-ends after calling this function.
  2224. *Synopsis*
  2225. void bfd_symbol_info (asymbol *symbol, symbol_info *ret);
  2226. 2.7.5.14 'bfd_copy_private_symbol_data'
  2227. .......................................
  2228. *Synopsis*
  2229. bfd_boolean bfd_copy_private_symbol_data
  2230. (bfd *ibfd, asymbol *isym, bfd *obfd, asymbol *osym);
  2231. *Description*
  2232. Copy private symbol information from ISYM in the BFD IBFD to the symbol
  2233. OSYM in the BFD OBFD. Return 'TRUE' on success, 'FALSE' on error.
  2234. Possible error returns are:
  2235. * 'bfd_error_no_memory' - Not enough memory exists to create private
  2236. data for OSEC.
  2237. #define bfd_copy_private_symbol_data(ibfd, isymbol, obfd, osymbol) \
  2238. BFD_SEND (obfd, _bfd_copy_private_symbol_data, \
  2239. (ibfd, isymbol, obfd, osymbol))
  2240. 
  2241. File: bfd.info, Node: Archives, Next: Formats, Prev: Symbols, Up: BFD front end
  2242. 2.8 Archives
  2243. ============
  2244. *Description*
  2245. An archive (or library) is just another BFD. It has a symbol table,
  2246. although there's not much a user program will do with it.
  2247. The big difference between an archive BFD and an ordinary BFD is that
  2248. the archive doesn't have sections. Instead it has a chain of BFDs that
  2249. are considered its contents. These BFDs can be manipulated like any
  2250. other. The BFDs contained in an archive opened for reading will all be
  2251. opened for reading. You may put either input or output BFDs into an
  2252. archive opened for output; they will be handled correctly when the
  2253. archive is closed.
  2254. Use 'bfd_openr_next_archived_file' to step through the contents of an
  2255. archive opened for input. You don't have to read the entire archive if
  2256. you don't want to! Read it until you find what you want.
  2257. A BFD returned by 'bfd_openr_next_archived_file' can be closed
  2258. manually with 'bfd_close'. If you do not close it, then a second
  2259. iteration through the members of an archive may return the same BFD. If
  2260. you close the archive BFD, then all the member BFDs will automatically
  2261. be closed as well.
  2262. Archive contents of output BFDs are chained through the
  2263. 'archive_next' pointer in a BFD. The first one is findable through the
  2264. 'archive_head' slot of the archive. Set it with 'bfd_set_archive_head'
  2265. (q.v.). A given BFD may be in only one open output archive at a time.
  2266. As expected, the BFD archive code is more general than the archive
  2267. code of any given environment. BFD archives may contain files of
  2268. different formats (e.g., a.out and coff) and even different
  2269. architectures. You may even place archives recursively into archives!
  2270. This can cause unexpected confusion, since some archive formats are
  2271. more expressive than others. For instance, Intel COFF archives can
  2272. preserve long filenames; SunOS a.out archives cannot. If you move a
  2273. file from the first to the second format and back again, the filename
  2274. may be truncated. Likewise, different a.out environments have different
  2275. conventions as to how they truncate filenames, whether they preserve
  2276. directory names in filenames, etc. When interoperating with native
  2277. tools, be sure your files are homogeneous.
  2278. Beware: most of these formats do not react well to the presence of
  2279. spaces in filenames. We do the best we can, but can't always handle
  2280. this case due to restrictions in the format of archives. Many Unix
  2281. utilities are braindead in regards to spaces and such in filenames
  2282. anyway, so this shouldn't be much of a restriction.
  2283. Archives are supported in BFD in 'archive.c'.
  2284. 2.8.1 Archive functions
  2285. -----------------------
  2286. 2.8.1.1 'bfd_get_next_mapent'
  2287. .............................
  2288. *Synopsis*
  2289. symindex bfd_get_next_mapent
  2290. (bfd *abfd, symindex previous, carsym **sym);
  2291. *Description*
  2292. Step through archive ABFD's symbol table (if it has one). Successively
  2293. update SYM with the next symbol's information, returning that symbol's
  2294. (internal) index into the symbol table.
  2295. Supply 'BFD_NO_MORE_SYMBOLS' as the PREVIOUS entry to get the first
  2296. one; returns 'BFD_NO_MORE_SYMBOLS' when you've already got the last one.
  2297. A 'carsym' is a canonical archive symbol. The only user-visible
  2298. element is its name, a null-terminated string.
  2299. 2.8.1.2 'bfd_set_archive_head'
  2300. ..............................
  2301. *Synopsis*
  2302. bfd_boolean bfd_set_archive_head (bfd *output, bfd *new_head);
  2303. *Description*
  2304. Set the head of the chain of BFDs contained in the archive OUTPUT to
  2305. NEW_HEAD.
  2306. 2.8.1.3 'bfd_openr_next_archived_file'
  2307. ......................................
  2308. *Synopsis*
  2309. bfd *bfd_openr_next_archived_file (bfd *archive, bfd *previous);
  2310. *Description*
  2311. Provided a BFD, ARCHIVE, containing an archive and NULL, open an input
  2312. BFD on the first contained element and returns that. Subsequent calls
  2313. should pass the archive and the previous return value to return a
  2314. created BFD to the next contained element. NULL is returned when there
  2315. are no more.
  2316. 
  2317. File: bfd.info, Node: Formats, Next: Relocations, Prev: Archives, Up: BFD front end
  2318. 2.9 File formats
  2319. ================
  2320. A format is a BFD concept of high level file contents type. The formats
  2321. supported by BFD are:
  2322. * 'bfd_object'
  2323. The BFD may contain data, symbols, relocations and debug info.
  2324. * 'bfd_archive'
  2325. The BFD contains other BFDs and an optional index.
  2326. * 'bfd_core'
  2327. The BFD contains the result of an executable core dump.
  2328. 2.9.1 File format functions
  2329. ---------------------------
  2330. 2.9.1.1 'bfd_check_format'
  2331. ..........................
  2332. *Synopsis*
  2333. bfd_boolean bfd_check_format (bfd *abfd, bfd_format format);
  2334. *Description*
  2335. Verify if the file attached to the BFD ABFD is compatible with the
  2336. format FORMAT (i.e., one of 'bfd_object', 'bfd_archive' or 'bfd_core').
  2337. If the BFD has been set to a specific target before the call, only
  2338. the named target and format combination is checked. If the target has
  2339. not been set, or has been set to 'default', then all the known target
  2340. backends is interrogated to determine a match. If the default target
  2341. matches, it is used. If not, exactly one target must recognize the
  2342. file, or an error results.
  2343. The function returns 'TRUE' on success, otherwise 'FALSE' with one of
  2344. the following error codes:
  2345. * 'bfd_error_invalid_operation' - if 'format' is not one of
  2346. 'bfd_object', 'bfd_archive' or 'bfd_core'.
  2347. * 'bfd_error_system_call' - if an error occured during a read - even
  2348. some file mismatches can cause bfd_error_system_calls.
  2349. * 'file_not_recognised' - none of the backends recognised the file
  2350. format.
  2351. * 'bfd_error_file_ambiguously_recognized' - more than one backend
  2352. recognised the file format.
  2353. 2.9.1.2 'bfd_check_format_matches'
  2354. ..................................
  2355. *Synopsis*
  2356. bfd_boolean bfd_check_format_matches
  2357. (bfd *abfd, bfd_format format, char ***matching);
  2358. *Description*
  2359. Like 'bfd_check_format', except when it returns FALSE with 'bfd_errno'
  2360. set to 'bfd_error_file_ambiguously_recognized'. In that case, if
  2361. MATCHING is not NULL, it will be filled in with a NULL-terminated list
  2362. of the names of the formats that matched, allocated with 'malloc'. Then
  2363. the user may choose a format and try again.
  2364. When done with the list that MATCHING points to, the caller should
  2365. free it.
  2366. 2.9.1.3 'bfd_set_format'
  2367. ........................
  2368. *Synopsis*
  2369. bfd_boolean bfd_set_format (bfd *abfd, bfd_format format);
  2370. *Description*
  2371. This function sets the file format of the BFD ABFD to the format FORMAT.
  2372. If the target set in the BFD does not support the format requested, the
  2373. format is invalid, or the BFD is not open for writing, then an error
  2374. occurs.
  2375. 2.9.1.4 'bfd_format_string'
  2376. ...........................
  2377. *Synopsis*
  2378. const char *bfd_format_string (bfd_format format);
  2379. *Description*
  2380. Return a pointer to a const string 'invalid', 'object', 'archive',
  2381. 'core', or 'unknown', depending upon the value of FORMAT.
  2382. 
  2383. File: bfd.info, Node: Relocations, Next: Core Files, Prev: Formats, Up: BFD front end
  2384. 2.10 Relocations
  2385. ================
  2386. BFD maintains relocations in much the same way it maintains symbols:
  2387. they are left alone until required, then read in en-masse and translated
  2388. into an internal form. A common routine 'bfd_perform_relocation' acts
  2389. upon the canonical form to do the fixup.
  2390. Relocations are maintained on a per section basis, while symbols are
  2391. maintained on a per BFD basis.
  2392. All that a back end has to do to fit the BFD interface is to create a
  2393. 'struct reloc_cache_entry' for each relocation in a particular section,
  2394. and fill in the right bits of the structures.
  2395. * Menu:
  2396. * typedef arelent::
  2397. * howto manager::
  2398. 
  2399. File: bfd.info, Node: typedef arelent, Next: howto manager, Prev: Relocations, Up: Relocations
  2400. 2.10.1 typedef arelent
  2401. ----------------------
  2402. This is the structure of a relocation entry:
  2403. typedef enum bfd_reloc_status
  2404. {
  2405. /* No errors detected. */
  2406. bfd_reloc_ok,
  2407. /* The relocation was performed, but there was an overflow. */
  2408. bfd_reloc_overflow,
  2409. /* The address to relocate was not within the section supplied. */
  2410. bfd_reloc_outofrange,
  2411. /* Used by special functions. */
  2412. bfd_reloc_continue,
  2413. /* Unsupported relocation size requested. */
  2414. bfd_reloc_notsupported,
  2415. /* Unused. */
  2416. bfd_reloc_other,
  2417. /* The symbol to relocate against was undefined. */
  2418. bfd_reloc_undefined,
  2419. /* The relocation was performed, but may not be ok - presently
  2420. generated only when linking i960 coff files with i960 b.out
  2421. symbols. If this type is returned, the error_message argument
  2422. to bfd_perform_relocation will be set. */
  2423. bfd_reloc_dangerous
  2424. }
  2425. bfd_reloc_status_type;
  2426. typedef struct reloc_cache_entry
  2427. {
  2428. /* A pointer into the canonical table of pointers. */
  2429. struct bfd_symbol **sym_ptr_ptr;
  2430. /* offset in section. */
  2431. bfd_size_type address;
  2432. /* addend for relocation value. */
  2433. bfd_vma addend;
  2434. /* Pointer to how to perform the required relocation. */
  2435. reloc_howto_type *howto;
  2436. }
  2437. arelent;
  2438. *Description*
  2439. Here is a description of each of the fields within an 'arelent':
  2440. * 'sym_ptr_ptr'
  2441. The symbol table pointer points to a pointer to the symbol associated
  2442. with the relocation request. It is the pointer into the table returned
  2443. by the back end's 'canonicalize_symtab' action. *Note Symbols::. The
  2444. symbol is referenced through a pointer to a pointer so that tools like
  2445. the linker can fix up all the symbols of the same name by modifying only
  2446. one pointer. The relocation routine looks in the symbol and uses the
  2447. base of the section the symbol is attached to and the value of the
  2448. symbol as the initial relocation offset. If the symbol pointer is zero,
  2449. then the section provided is looked up.
  2450. * 'address'
  2451. The 'address' field gives the offset in bytes from the base of the
  2452. section data which owns the relocation record to the first byte of
  2453. relocatable information. The actual data relocated will be relative to
  2454. this point; for example, a relocation type which modifies the bottom two
  2455. bytes of a four byte word would not touch the first byte pointed to in a
  2456. big endian world.
  2457. * 'addend'
  2458. The 'addend' is a value provided by the back end to be added (!) to
  2459. the relocation offset. Its interpretation is dependent upon the howto.
  2460. For example, on the 68k the code:
  2461. char foo[];
  2462. main()
  2463. {
  2464. return foo[0x12345678];
  2465. }
  2466. Could be compiled into:
  2467. linkw fp,#-4
  2468. moveb @#12345678,d0
  2469. extbl d0
  2470. unlk fp
  2471. rts
  2472. This could create a reloc pointing to 'foo', but leave the offset in
  2473. the data, something like:
  2474. RELOCATION RECORDS FOR [.text]:
  2475. offset type value
  2476. 00000006 32 _foo
  2477. 00000000 4e56 fffc ; linkw fp,#-4
  2478. 00000004 1039 1234 5678 ; moveb @#12345678,d0
  2479. 0000000a 49c0 ; extbl d0
  2480. 0000000c 4e5e ; unlk fp
  2481. 0000000e 4e75 ; rts
  2482. Using coff and an 88k, some instructions don't have enough space in
  2483. them to represent the full address range, and pointers have to be loaded
  2484. in two parts. So you'd get something like:
  2485. or.u r13,r0,hi16(_foo+0x12345678)
  2486. ld.b r2,r13,lo16(_foo+0x12345678)
  2487. jmp r1
  2488. This should create two relocs, both pointing to '_foo', and with
  2489. 0x12340000 in their addend field. The data would consist of:
  2490. RELOCATION RECORDS FOR [.text]:
  2491. offset type value
  2492. 00000002 HVRT16 _foo+0x12340000
  2493. 00000006 LVRT16 _foo+0x12340000
  2494. 00000000 5da05678 ; or.u r13,r0,0x5678
  2495. 00000004 1c4d5678 ; ld.b r2,r13,0x5678
  2496. 00000008 f400c001 ; jmp r1
  2497. The relocation routine digs out the value from the data, adds it to
  2498. the addend to get the original offset, and then adds the value of
  2499. '_foo'. Note that all 32 bits have to be kept around somewhere, to cope
  2500. with carry from bit 15 to bit 16.
  2501. One further example is the sparc and the a.out format. The sparc has
  2502. a similar problem to the 88k, in that some instructions don't have room
  2503. for an entire offset, but on the sparc the parts are created in odd
  2504. sized lumps. The designers of the a.out format chose to not use the
  2505. data within the section for storing part of the offset; all the offset
  2506. is kept within the reloc. Anything in the data should be ignored.
  2507. save %sp,-112,%sp
  2508. sethi %hi(_foo+0x12345678),%g2
  2509. ldsb [%g2+%lo(_foo+0x12345678)],%i0
  2510. ret
  2511. restore
  2512. Both relocs contain a pointer to 'foo', and the offsets contain junk.
  2513. RELOCATION RECORDS FOR [.text]:
  2514. offset type value
  2515. 00000004 HI22 _foo+0x12345678
  2516. 00000008 LO10 _foo+0x12345678
  2517. 00000000 9de3bf90 ; save %sp,-112,%sp
  2518. 00000004 05000000 ; sethi %hi(_foo+0),%g2
  2519. 00000008 f048a000 ; ldsb [%g2+%lo(_foo+0)],%i0
  2520. 0000000c 81c7e008 ; ret
  2521. 00000010 81e80000 ; restore
  2522. * 'howto'
  2523. The 'howto' field can be imagined as a relocation instruction. It is
  2524. a pointer to a structure which contains information on what to do with
  2525. all of the other information in the reloc record and data section. A
  2526. back end would normally have a relocation instruction set and turn
  2527. relocations into pointers to the correct structure on input - but it
  2528. would be possible to create each howto field on demand.
  2529. 2.10.1.1 'enum complain_overflow'
  2530. .................................
  2531. Indicates what sort of overflow checking should be done when performing
  2532. a relocation.
  2533. enum complain_overflow
  2534. {
  2535. /* Do not complain on overflow. */
  2536. complain_overflow_dont,
  2537. /* Complain if the value overflows when considered as a signed
  2538. number one bit larger than the field. ie. A bitfield of N bits
  2539. is allowed to represent -2**n to 2**n-1. */
  2540. complain_overflow_bitfield,
  2541. /* Complain if the value overflows when considered as a signed
  2542. number. */
  2543. complain_overflow_signed,
  2544. /* Complain if the value overflows when considered as an
  2545. unsigned number. */
  2546. complain_overflow_unsigned
  2547. };
  2548. 2.10.1.2 'reloc_howto_type'
  2549. ...........................
  2550. The 'reloc_howto_type' is a structure which contains all the information
  2551. that libbfd needs to know to tie up a back end's data.
  2552. struct bfd_symbol; /* Forward declaration. */
  2553. struct reloc_howto_struct
  2554. {
  2555. /* The type field has mainly a documentary use - the back end can
  2556. do what it wants with it, though normally the back end's
  2557. external idea of what a reloc number is stored
  2558. in this field. For example, a PC relative word relocation
  2559. in a coff environment has the type 023 - because that's
  2560. what the outside world calls a R_PCRWORD reloc. */
  2561. unsigned int type;
  2562. /* The value the final relocation is shifted right by. This drops
  2563. unwanted data from the relocation. */
  2564. unsigned int rightshift;
  2565. /* The size of the item to be relocated. This is *not* a
  2566. power-of-two measure. To get the number of bytes operated
  2567. on by a type of relocation, use bfd_get_reloc_size. */
  2568. int size;
  2569. /* The number of bits in the item to be relocated. This is used
  2570. when doing overflow checking. */
  2571. unsigned int bitsize;
  2572. /* The relocation is relative to the field being relocated. */
  2573. bfd_boolean pc_relative;
  2574. /* The bit position of the reloc value in the destination.
  2575. The relocated value is left shifted by this amount. */
  2576. unsigned int bitpos;
  2577. /* What type of overflow error should be checked for when
  2578. relocating. */
  2579. enum complain_overflow complain_on_overflow;
  2580. /* If this field is non null, then the supplied function is
  2581. called rather than the normal function. This allows really
  2582. strange relocation methods to be accommodated (e.g., i960 callj
  2583. instructions). */
  2584. bfd_reloc_status_type (*special_function)
  2585. (bfd *, arelent *, struct bfd_symbol *, void *, asection *,
  2586. bfd *, char **);
  2587. /* The textual name of the relocation type. */
  2588. char *name;
  2589. /* Some formats record a relocation addend in the section contents
  2590. rather than with the relocation. For ELF formats this is the
  2591. distinction between USE_REL and USE_RELA (though the code checks
  2592. for USE_REL == 1/0). The value of this field is TRUE if the
  2593. addend is recorded with the section contents; when performing a
  2594. partial link (ld -r) the section contents (the data) will be
  2595. modified. The value of this field is FALSE if addends are
  2596. recorded with the relocation (in arelent.addend); when performing
  2597. a partial link the relocation will be modified.
  2598. All relocations for all ELF USE_RELA targets should set this field
  2599. to FALSE (values of TRUE should be looked on with suspicion).
  2600. However, the converse is not true: not all relocations of all ELF
  2601. USE_REL targets set this field to TRUE. Why this is so is peculiar
  2602. to each particular target. For relocs that aren't used in partial
  2603. links (e.g. GOT stuff) it doesn't matter what this is set to. */
  2604. bfd_boolean partial_inplace;
  2605. /* src_mask selects the part of the instruction (or data) to be used
  2606. in the relocation sum. If the target relocations don't have an
  2607. addend in the reloc, eg. ELF USE_REL, src_mask will normally equal
  2608. dst_mask to extract the addend from the section contents. If
  2609. relocations do have an addend in the reloc, eg. ELF USE_RELA, this
  2610. field should be zero. Non-zero values for ELF USE_RELA targets are
  2611. bogus as in those cases the value in the dst_mask part of the
  2612. section contents should be treated as garbage. */
  2613. bfd_vma src_mask;
  2614. /* dst_mask selects which parts of the instruction (or data) are
  2615. replaced with a relocated value. */
  2616. bfd_vma dst_mask;
  2617. /* When some formats create PC relative instructions, they leave
  2618. the value of the pc of the place being relocated in the offset
  2619. slot of the instruction, so that a PC relative relocation can
  2620. be made just by adding in an ordinary offset (e.g., sun3 a.out).
  2621. Some formats leave the displacement part of an instruction
  2622. empty (e.g., m88k bcs); this flag signals the fact. */
  2623. bfd_boolean pcrel_offset;
  2624. };
  2625. 2.10.1.3 'The HOWTO Macro'
  2626. ..........................
  2627. *Description*
  2628. The HOWTO define is horrible and will go away.
  2629. #define HOWTO(C, R, S, B, P, BI, O, SF, NAME, INPLACE, MASKSRC, MASKDST, PC) \
  2630. { (unsigned) C, R, S, B, P, BI, O, SF, NAME, INPLACE, MASKSRC, MASKDST, PC }
  2631. *Description*
  2632. And will be replaced with the totally magic way. But for the moment, we
  2633. are compatible, so do it this way.
  2634. #define NEWHOWTO(FUNCTION, NAME, SIZE, REL, IN) \
  2635. HOWTO (0, 0, SIZE, 0, REL, 0, complain_overflow_dont, FUNCTION, \
  2636. NAME, FALSE, 0, 0, IN)
  2637. *Description*
  2638. This is used to fill in an empty howto entry in an array.
  2639. #define EMPTY_HOWTO(C) \
  2640. HOWTO ((C), 0, 0, 0, FALSE, 0, complain_overflow_dont, NULL, \
  2641. NULL, FALSE, 0, 0, FALSE)
  2642. *Description*
  2643. Helper routine to turn a symbol into a relocation value.
  2644. #define HOWTO_PREPARE(relocation, symbol) \
  2645. { \
  2646. if (symbol != NULL) \
  2647. { \
  2648. if (bfd_is_com_section (symbol->section)) \
  2649. { \
  2650. relocation = 0; \
  2651. } \
  2652. else \
  2653. { \
  2654. relocation = symbol->value; \
  2655. } \
  2656. } \
  2657. }
  2658. 2.10.1.4 'bfd_get_reloc_size'
  2659. .............................
  2660. *Synopsis*
  2661. unsigned int bfd_get_reloc_size (reloc_howto_type *);
  2662. *Description*
  2663. For a reloc_howto_type that operates on a fixed number of bytes, this
  2664. returns the number of bytes operated on.
  2665. 2.10.1.5 'arelent_chain'
  2666. ........................
  2667. *Description*
  2668. How relocs are tied together in an 'asection':
  2669. typedef struct relent_chain
  2670. {
  2671. arelent relent;
  2672. struct relent_chain *next;
  2673. }
  2674. arelent_chain;
  2675. 2.10.1.6 'bfd_check_overflow'
  2676. .............................
  2677. *Synopsis*
  2678. bfd_reloc_status_type bfd_check_overflow
  2679. (enum complain_overflow how,
  2680. unsigned int bitsize,
  2681. unsigned int rightshift,
  2682. unsigned int addrsize,
  2683. bfd_vma relocation);
  2684. *Description*
  2685. Perform overflow checking on RELOCATION which has BITSIZE significant
  2686. bits and will be shifted right by RIGHTSHIFT bits, on a machine with
  2687. addresses containing ADDRSIZE significant bits. The result is either of
  2688. 'bfd_reloc_ok' or 'bfd_reloc_overflow'.
  2689. 2.10.1.7 'bfd_perform_relocation'
  2690. .................................
  2691. *Synopsis*
  2692. bfd_reloc_status_type bfd_perform_relocation
  2693. (bfd *abfd,
  2694. arelent *reloc_entry,
  2695. void *data,
  2696. asection *input_section,
  2697. bfd *output_bfd,
  2698. char **error_message);
  2699. *Description*
  2700. If OUTPUT_BFD is supplied to this function, the generated image will be
  2701. relocatable; the relocations are copied to the output file after they
  2702. have been changed to reflect the new state of the world. There are two
  2703. ways of reflecting the results of partial linkage in an output file: by
  2704. modifying the output data in place, and by modifying the relocation
  2705. record. Some native formats (e.g., basic a.out and basic coff) have no
  2706. way of specifying an addend in the relocation type, so the addend has to
  2707. go in the output data. This is no big deal since in these formats the
  2708. output data slot will always be big enough for the addend. Complex
  2709. reloc types with addends were invented to solve just this problem. The
  2710. ERROR_MESSAGE argument is set to an error message if this return
  2711. 'bfd_reloc_dangerous'.
  2712. 2.10.1.8 'bfd_install_relocation'
  2713. .................................
  2714. *Synopsis*
  2715. bfd_reloc_status_type bfd_install_relocation
  2716. (bfd *abfd,
  2717. arelent *reloc_entry,
  2718. void *data, bfd_vma data_start,
  2719. asection *input_section,
  2720. char **error_message);
  2721. *Description*
  2722. This looks remarkably like 'bfd_perform_relocation', except it does not
  2723. expect that the section contents have been filled in. I.e., it's
  2724. suitable for use when creating, rather than applying a relocation.
  2725. For now, this function should be considered reserved for the
  2726. assembler.
  2727. 
  2728. File: bfd.info, Node: howto manager, Prev: typedef arelent, Up: Relocations
  2729. 2.10.2 The howto manager
  2730. ------------------------
  2731. When an application wants to create a relocation, but doesn't know what
  2732. the target machine might call it, it can find out by using this bit of
  2733. code.
  2734. 2.10.2.1 'bfd_reloc_code_type'
  2735. ..............................
  2736. *Description*
  2737. The insides of a reloc code. The idea is that, eventually, there will
  2738. be one enumerator for every type of relocation we ever do. Pass one of
  2739. these values to 'bfd_reloc_type_lookup', and it'll return a howto
  2740. pointer.
  2741. This does mean that the application must determine the correct
  2742. enumerator value; you can't get a howto pointer from a random set of
  2743. attributes.
  2744. Here are the possible values for 'enum bfd_reloc_code_real':
  2745. -- : BFD_RELOC_64
  2746. -- : BFD_RELOC_32
  2747. -- : BFD_RELOC_26
  2748. -- : BFD_RELOC_24
  2749. -- : BFD_RELOC_16
  2750. -- : BFD_RELOC_14
  2751. -- : BFD_RELOC_8
  2752. Basic absolute relocations of N bits.
  2753. -- : BFD_RELOC_64_PCREL
  2754. -- : BFD_RELOC_32_PCREL
  2755. -- : BFD_RELOC_24_PCREL
  2756. -- : BFD_RELOC_16_PCREL
  2757. -- : BFD_RELOC_12_PCREL
  2758. -- : BFD_RELOC_8_PCREL
  2759. PC-relative relocations. Sometimes these are relative to the
  2760. address of the relocation itself; sometimes they are relative to
  2761. the start of the section containing the relocation. It depends on
  2762. the specific target.
  2763. The 24-bit relocation is used in some Intel 960 configurations.
  2764. -- : BFD_RELOC_32_SECREL
  2765. Section relative relocations. Some targets need this for DWARF2.
  2766. -- : BFD_RELOC_32_GOT_PCREL
  2767. -- : BFD_RELOC_16_GOT_PCREL
  2768. -- : BFD_RELOC_8_GOT_PCREL
  2769. -- : BFD_RELOC_32_GOTOFF
  2770. -- : BFD_RELOC_16_GOTOFF
  2771. -- : BFD_RELOC_LO16_GOTOFF
  2772. -- : BFD_RELOC_HI16_GOTOFF
  2773. -- : BFD_RELOC_HI16_S_GOTOFF
  2774. -- : BFD_RELOC_8_GOTOFF
  2775. -- : BFD_RELOC_64_PLT_PCREL
  2776. -- : BFD_RELOC_32_PLT_PCREL
  2777. -- : BFD_RELOC_24_PLT_PCREL
  2778. -- : BFD_RELOC_16_PLT_PCREL
  2779. -- : BFD_RELOC_8_PLT_PCREL
  2780. -- : BFD_RELOC_64_PLTOFF
  2781. -- : BFD_RELOC_32_PLTOFF
  2782. -- : BFD_RELOC_16_PLTOFF
  2783. -- : BFD_RELOC_LO16_PLTOFF
  2784. -- : BFD_RELOC_HI16_PLTOFF
  2785. -- : BFD_RELOC_HI16_S_PLTOFF
  2786. -- : BFD_RELOC_8_PLTOFF
  2787. For ELF.
  2788. -- : BFD_RELOC_SIZE32
  2789. -- : BFD_RELOC_SIZE64
  2790. Size relocations.
  2791. -- : BFD_RELOC_68K_GLOB_DAT
  2792. -- : BFD_RELOC_68K_JMP_SLOT
  2793. -- : BFD_RELOC_68K_RELATIVE
  2794. -- : BFD_RELOC_68K_TLS_GD32
  2795. -- : BFD_RELOC_68K_TLS_GD16
  2796. -- : BFD_RELOC_68K_TLS_GD8
  2797. -- : BFD_RELOC_68K_TLS_LDM32
  2798. -- : BFD_RELOC_68K_TLS_LDM16
  2799. -- : BFD_RELOC_68K_TLS_LDM8
  2800. -- : BFD_RELOC_68K_TLS_LDO32
  2801. -- : BFD_RELOC_68K_TLS_LDO16
  2802. -- : BFD_RELOC_68K_TLS_LDO8
  2803. -- : BFD_RELOC_68K_TLS_IE32
  2804. -- : BFD_RELOC_68K_TLS_IE16
  2805. -- : BFD_RELOC_68K_TLS_IE8
  2806. -- : BFD_RELOC_68K_TLS_LE32
  2807. -- : BFD_RELOC_68K_TLS_LE16
  2808. -- : BFD_RELOC_68K_TLS_LE8
  2809. Relocations used by 68K ELF.
  2810. -- : BFD_RELOC_32_BASEREL
  2811. -- : BFD_RELOC_16_BASEREL
  2812. -- : BFD_RELOC_LO16_BASEREL
  2813. -- : BFD_RELOC_HI16_BASEREL
  2814. -- : BFD_RELOC_HI16_S_BASEREL
  2815. -- : BFD_RELOC_8_BASEREL
  2816. -- : BFD_RELOC_RVA
  2817. Linkage-table relative.
  2818. -- : BFD_RELOC_8_FFnn
  2819. Absolute 8-bit relocation, but used to form an address like 0xFFnn.
  2820. -- : BFD_RELOC_32_PCREL_S2
  2821. -- : BFD_RELOC_16_PCREL_S2
  2822. -- : BFD_RELOC_23_PCREL_S2
  2823. These PC-relative relocations are stored as word displacements -
  2824. i.e., byte displacements shifted right two bits. The 30-bit word
  2825. displacement (<<32_PCREL_S2>> - 32 bits, shifted 2) is used on the
  2826. SPARC. (SPARC tools generally refer to this as <<WDISP30>>.) The
  2827. signed 16-bit displacement is used on the MIPS, and the 23-bit
  2828. displacement is used on the Alpha.
  2829. -- : BFD_RELOC_HI22
  2830. -- : BFD_RELOC_LO10
  2831. High 22 bits and low 10 bits of 32-bit value, placed into lower
  2832. bits of the target word. These are used on the SPARC.
  2833. -- : BFD_RELOC_GPREL16
  2834. -- : BFD_RELOC_GPREL32
  2835. For systems that allocate a Global Pointer register, these are
  2836. displacements off that register. These relocation types are
  2837. handled specially, because the value the register will have is
  2838. decided relatively late.
  2839. -- : BFD_RELOC_I960_CALLJ
  2840. Reloc types used for i960/b.out.
  2841. -- : BFD_RELOC_NONE
  2842. -- : BFD_RELOC_SPARC_WDISP22
  2843. -- : BFD_RELOC_SPARC22
  2844. -- : BFD_RELOC_SPARC13
  2845. -- : BFD_RELOC_SPARC_GOT10
  2846. -- : BFD_RELOC_SPARC_GOT13
  2847. -- : BFD_RELOC_SPARC_GOT22
  2848. -- : BFD_RELOC_SPARC_PC10
  2849. -- : BFD_RELOC_SPARC_PC22
  2850. -- : BFD_RELOC_SPARC_WPLT30
  2851. -- : BFD_RELOC_SPARC_COPY
  2852. -- : BFD_RELOC_SPARC_GLOB_DAT
  2853. -- : BFD_RELOC_SPARC_JMP_SLOT
  2854. -- : BFD_RELOC_SPARC_RELATIVE
  2855. -- : BFD_RELOC_SPARC_UA16
  2856. -- : BFD_RELOC_SPARC_UA32
  2857. -- : BFD_RELOC_SPARC_UA64
  2858. -- : BFD_RELOC_SPARC_GOTDATA_HIX22
  2859. -- : BFD_RELOC_SPARC_GOTDATA_LOX10
  2860. -- : BFD_RELOC_SPARC_GOTDATA_OP_HIX22
  2861. -- : BFD_RELOC_SPARC_GOTDATA_OP_LOX10
  2862. -- : BFD_RELOC_SPARC_GOTDATA_OP
  2863. -- : BFD_RELOC_SPARC_JMP_IREL
  2864. -- : BFD_RELOC_SPARC_IRELATIVE
  2865. SPARC ELF relocations. There is probably some overlap with other
  2866. relocation types already defined.
  2867. -- : BFD_RELOC_SPARC_BASE13
  2868. -- : BFD_RELOC_SPARC_BASE22
  2869. I think these are specific to SPARC a.out (e.g., Sun 4).
  2870. -- : BFD_RELOC_SPARC_64
  2871. -- : BFD_RELOC_SPARC_10
  2872. -- : BFD_RELOC_SPARC_11
  2873. -- : BFD_RELOC_SPARC_OLO10
  2874. -- : BFD_RELOC_SPARC_HH22
  2875. -- : BFD_RELOC_SPARC_HM10
  2876. -- : BFD_RELOC_SPARC_LM22
  2877. -- : BFD_RELOC_SPARC_PC_HH22
  2878. -- : BFD_RELOC_SPARC_PC_HM10
  2879. -- : BFD_RELOC_SPARC_PC_LM22
  2880. -- : BFD_RELOC_SPARC_WDISP16
  2881. -- : BFD_RELOC_SPARC_WDISP19
  2882. -- : BFD_RELOC_SPARC_7
  2883. -- : BFD_RELOC_SPARC_6
  2884. -- : BFD_RELOC_SPARC_5
  2885. -- : BFD_RELOC_SPARC_DISP64
  2886. -- : BFD_RELOC_SPARC_PLT32
  2887. -- : BFD_RELOC_SPARC_PLT64
  2888. -- : BFD_RELOC_SPARC_HIX22
  2889. -- : BFD_RELOC_SPARC_LOX10
  2890. -- : BFD_RELOC_SPARC_H44
  2891. -- : BFD_RELOC_SPARC_M44
  2892. -- : BFD_RELOC_SPARC_L44
  2893. -- : BFD_RELOC_SPARC_REGISTER
  2894. -- : BFD_RELOC_SPARC_H34
  2895. -- : BFD_RELOC_SPARC_SIZE32
  2896. -- : BFD_RELOC_SPARC_SIZE64
  2897. -- : BFD_RELOC_SPARC_WDISP10
  2898. SPARC64 relocations
  2899. -- : BFD_RELOC_SPARC_REV32
  2900. SPARC little endian relocation
  2901. -- : BFD_RELOC_SPARC_TLS_GD_HI22
  2902. -- : BFD_RELOC_SPARC_TLS_GD_LO10
  2903. -- : BFD_RELOC_SPARC_TLS_GD_ADD
  2904. -- : BFD_RELOC_SPARC_TLS_GD_CALL
  2905. -- : BFD_RELOC_SPARC_TLS_LDM_HI22
  2906. -- : BFD_RELOC_SPARC_TLS_LDM_LO10
  2907. -- : BFD_RELOC_SPARC_TLS_LDM_ADD
  2908. -- : BFD_RELOC_SPARC_TLS_LDM_CALL
  2909. -- : BFD_RELOC_SPARC_TLS_LDO_HIX22
  2910. -- : BFD_RELOC_SPARC_TLS_LDO_LOX10
  2911. -- : BFD_RELOC_SPARC_TLS_LDO_ADD
  2912. -- : BFD_RELOC_SPARC_TLS_IE_HI22
  2913. -- : BFD_RELOC_SPARC_TLS_IE_LO10
  2914. -- : BFD_RELOC_SPARC_TLS_IE_LD
  2915. -- : BFD_RELOC_SPARC_TLS_IE_LDX
  2916. -- : BFD_RELOC_SPARC_TLS_IE_ADD
  2917. -- : BFD_RELOC_SPARC_TLS_LE_HIX22
  2918. -- : BFD_RELOC_SPARC_TLS_LE_LOX10
  2919. -- : BFD_RELOC_SPARC_TLS_DTPMOD32
  2920. -- : BFD_RELOC_SPARC_TLS_DTPMOD64
  2921. -- : BFD_RELOC_SPARC_TLS_DTPOFF32
  2922. -- : BFD_RELOC_SPARC_TLS_DTPOFF64
  2923. -- : BFD_RELOC_SPARC_TLS_TPOFF32
  2924. -- : BFD_RELOC_SPARC_TLS_TPOFF64
  2925. SPARC TLS relocations
  2926. -- : BFD_RELOC_SPU_IMM7
  2927. -- : BFD_RELOC_SPU_IMM8
  2928. -- : BFD_RELOC_SPU_IMM10
  2929. -- : BFD_RELOC_SPU_IMM10W
  2930. -- : BFD_RELOC_SPU_IMM16
  2931. -- : BFD_RELOC_SPU_IMM16W
  2932. -- : BFD_RELOC_SPU_IMM18
  2933. -- : BFD_RELOC_SPU_PCREL9a
  2934. -- : BFD_RELOC_SPU_PCREL9b
  2935. -- : BFD_RELOC_SPU_PCREL16
  2936. -- : BFD_RELOC_SPU_LO16
  2937. -- : BFD_RELOC_SPU_HI16
  2938. -- : BFD_RELOC_SPU_PPU32
  2939. -- : BFD_RELOC_SPU_PPU64
  2940. -- : BFD_RELOC_SPU_ADD_PIC
  2941. SPU Relocations.
  2942. -- : BFD_RELOC_ALPHA_GPDISP_HI16
  2943. Alpha ECOFF and ELF relocations. Some of these treat the symbol or
  2944. "addend" in some special way. For GPDISP_HI16 ("gpdisp")
  2945. relocations, the symbol is ignored when writing; when reading, it
  2946. will be the absolute section symbol. The addend is the
  2947. displacement in bytes of the "lda" instruction from the "ldah"
  2948. instruction (which is at the address of this reloc).
  2949. -- : BFD_RELOC_ALPHA_GPDISP_LO16
  2950. For GPDISP_LO16 ("ignore") relocations, the symbol is handled as
  2951. with GPDISP_HI16 relocs. The addend is ignored when writing the
  2952. relocations out, and is filled in with the file's GP value on
  2953. reading, for convenience.
  2954. -- : BFD_RELOC_ALPHA_GPDISP
  2955. The ELF GPDISP relocation is exactly the same as the GPDISP_HI16
  2956. relocation except that there is no accompanying GPDISP_LO16
  2957. relocation.
  2958. -- : BFD_RELOC_ALPHA_LITERAL
  2959. -- : BFD_RELOC_ALPHA_ELF_LITERAL
  2960. -- : BFD_RELOC_ALPHA_LITUSE
  2961. The Alpha LITERAL/LITUSE relocs are produced by a symbol reference;
  2962. the assembler turns it into a LDQ instruction to load the address
  2963. of the symbol, and then fills in a register in the real
  2964. instruction.
  2965. The LITERAL reloc, at the LDQ instruction, refers to the .lita
  2966. section symbol. The addend is ignored when writing, but is filled
  2967. in with the file's GP value on reading, for convenience, as with
  2968. the GPDISP_LO16 reloc.
  2969. The ELF_LITERAL reloc is somewhere between 16_GOTOFF and
  2970. GPDISP_LO16. It should refer to the symbol to be referenced, as
  2971. with 16_GOTOFF, but it generates output not based on the position
  2972. within the .got section, but relative to the GP value chosen for
  2973. the file during the final link stage.
  2974. The LITUSE reloc, on the instruction using the loaded address,
  2975. gives information to the linker that it might be able to use to
  2976. optimize away some literal section references. The symbol is
  2977. ignored (read as the absolute section symbol), and the "addend"
  2978. indicates the type of instruction using the register: 1 - "memory"
  2979. fmt insn 2 - byte-manipulation (byte offset reg) 3 - jsr (target of
  2980. branch)
  2981. -- : BFD_RELOC_ALPHA_HINT
  2982. The HINT relocation indicates a value that should be filled into
  2983. the "hint" field of a jmp/jsr/ret instruction, for possible branch-
  2984. prediction logic which may be provided on some processors.
  2985. -- : BFD_RELOC_ALPHA_LINKAGE
  2986. The LINKAGE relocation outputs a linkage pair in the object file,
  2987. which is filled by the linker.
  2988. -- : BFD_RELOC_ALPHA_CODEADDR
  2989. The CODEADDR relocation outputs a STO_CA in the object file, which
  2990. is filled by the linker.
  2991. -- : BFD_RELOC_ALPHA_GPREL_HI16
  2992. -- : BFD_RELOC_ALPHA_GPREL_LO16
  2993. The GPREL_HI/LO relocations together form a 32-bit offset from the
  2994. GP register.
  2995. -- : BFD_RELOC_ALPHA_BRSGP
  2996. Like BFD_RELOC_23_PCREL_S2, except that the source and target must
  2997. share a common GP, and the target address is adjusted for
  2998. STO_ALPHA_STD_GPLOAD.
  2999. -- : BFD_RELOC_ALPHA_NOP
  3000. The NOP relocation outputs a NOP if the longword displacement
  3001. between two procedure entry points is < 2^21.
  3002. -- : BFD_RELOC_ALPHA_BSR
  3003. The BSR relocation outputs a BSR if the longword displacement
  3004. between two procedure entry points is < 2^21.
  3005. -- : BFD_RELOC_ALPHA_LDA
  3006. The LDA relocation outputs a LDA if the longword displacement
  3007. between two procedure entry points is < 2^16.
  3008. -- : BFD_RELOC_ALPHA_BOH
  3009. The BOH relocation outputs a BSR if the longword displacement
  3010. between two procedure entry points is < 2^21, or else a hint.
  3011. -- : BFD_RELOC_ALPHA_TLSGD
  3012. -- : BFD_RELOC_ALPHA_TLSLDM
  3013. -- : BFD_RELOC_ALPHA_DTPMOD64
  3014. -- : BFD_RELOC_ALPHA_GOTDTPREL16
  3015. -- : BFD_RELOC_ALPHA_DTPREL64
  3016. -- : BFD_RELOC_ALPHA_DTPREL_HI16
  3017. -- : BFD_RELOC_ALPHA_DTPREL_LO16
  3018. -- : BFD_RELOC_ALPHA_DTPREL16
  3019. -- : BFD_RELOC_ALPHA_GOTTPREL16
  3020. -- : BFD_RELOC_ALPHA_TPREL64
  3021. -- : BFD_RELOC_ALPHA_TPREL_HI16
  3022. -- : BFD_RELOC_ALPHA_TPREL_LO16
  3023. -- : BFD_RELOC_ALPHA_TPREL16
  3024. Alpha thread-local storage relocations.
  3025. -- : BFD_RELOC_MIPS_JMP
  3026. -- : BFD_RELOC_MICROMIPS_JMP
  3027. The MIPS jump instruction.
  3028. -- : BFD_RELOC_MIPS16_JMP
  3029. The MIPS16 jump instruction.
  3030. -- : BFD_RELOC_MIPS16_GPREL
  3031. MIPS16 GP relative reloc.
  3032. -- : BFD_RELOC_HI16
  3033. High 16 bits of 32-bit value; simple reloc.
  3034. -- : BFD_RELOC_HI16_S
  3035. High 16 bits of 32-bit value but the low 16 bits will be sign
  3036. extended and added to form the final result. If the low 16 bits
  3037. form a negative number, we need to add one to the high value to
  3038. compensate for the borrow when the low bits are added.
  3039. -- : BFD_RELOC_LO16
  3040. Low 16 bits.
  3041. -- : BFD_RELOC_HI16_PCREL
  3042. High 16 bits of 32-bit pc-relative value
  3043. -- : BFD_RELOC_HI16_S_PCREL
  3044. High 16 bits of 32-bit pc-relative value, adjusted
  3045. -- : BFD_RELOC_LO16_PCREL
  3046. Low 16 bits of pc-relative value
  3047. -- : BFD_RELOC_MIPS16_GOT16
  3048. -- : BFD_RELOC_MIPS16_CALL16
  3049. Equivalent of BFD_RELOC_MIPS_*, but with the MIPS16 layout of
  3050. 16-bit immediate fields
  3051. -- : BFD_RELOC_MIPS16_HI16
  3052. MIPS16 high 16 bits of 32-bit value.
  3053. -- : BFD_RELOC_MIPS16_HI16_S
  3054. MIPS16 high 16 bits of 32-bit value but the low 16 bits will be
  3055. sign extended and added to form the final result. If the low 16
  3056. bits form a negative number, we need to add one to the high value
  3057. to compensate for the borrow when the low bits are added.
  3058. -- : BFD_RELOC_MIPS16_LO16
  3059. MIPS16 low 16 bits.
  3060. -- : BFD_RELOC_MIPS16_TLS_GD
  3061. -- : BFD_RELOC_MIPS16_TLS_LDM
  3062. -- : BFD_RELOC_MIPS16_TLS_DTPREL_HI16
  3063. -- : BFD_RELOC_MIPS16_TLS_DTPREL_LO16
  3064. -- : BFD_RELOC_MIPS16_TLS_GOTTPREL
  3065. -- : BFD_RELOC_MIPS16_TLS_TPREL_HI16
  3066. -- : BFD_RELOC_MIPS16_TLS_TPREL_LO16
  3067. MIPS16 TLS relocations
  3068. -- : BFD_RELOC_MIPS_LITERAL
  3069. -- : BFD_RELOC_MICROMIPS_LITERAL
  3070. Relocation against a MIPS literal section.
  3071. -- : BFD_RELOC_MICROMIPS_7_PCREL_S1
  3072. -- : BFD_RELOC_MICROMIPS_10_PCREL_S1
  3073. -- : BFD_RELOC_MICROMIPS_16_PCREL_S1
  3074. microMIPS PC-relative relocations.
  3075. -- : BFD_RELOC_MIPS16_16_PCREL_S1
  3076. MIPS16 PC-relative relocation.
  3077. -- : BFD_RELOC_MIPS_21_PCREL_S2
  3078. -- : BFD_RELOC_MIPS_26_PCREL_S2
  3079. -- : BFD_RELOC_MIPS_18_PCREL_S3
  3080. -- : BFD_RELOC_MIPS_19_PCREL_S2
  3081. MIPS PC-relative relocations.
  3082. -- : BFD_RELOC_MICROMIPS_GPREL16
  3083. -- : BFD_RELOC_MICROMIPS_HI16
  3084. -- : BFD_RELOC_MICROMIPS_HI16_S
  3085. -- : BFD_RELOC_MICROMIPS_LO16
  3086. microMIPS versions of generic BFD relocs.
  3087. -- : BFD_RELOC_MIPS_GOT16
  3088. -- : BFD_RELOC_MICROMIPS_GOT16
  3089. -- : BFD_RELOC_MIPS_CALL16
  3090. -- : BFD_RELOC_MICROMIPS_CALL16
  3091. -- : BFD_RELOC_MIPS_GOT_HI16
  3092. -- : BFD_RELOC_MICROMIPS_GOT_HI16
  3093. -- : BFD_RELOC_MIPS_GOT_LO16
  3094. -- : BFD_RELOC_MICROMIPS_GOT_LO16
  3095. -- : BFD_RELOC_MIPS_CALL_HI16
  3096. -- : BFD_RELOC_MICROMIPS_CALL_HI16
  3097. -- : BFD_RELOC_MIPS_CALL_LO16
  3098. -- : BFD_RELOC_MICROMIPS_CALL_LO16
  3099. -- : BFD_RELOC_MIPS_SUB
  3100. -- : BFD_RELOC_MICROMIPS_SUB
  3101. -- : BFD_RELOC_MIPS_GOT_PAGE
  3102. -- : BFD_RELOC_MICROMIPS_GOT_PAGE
  3103. -- : BFD_RELOC_MIPS_GOT_OFST
  3104. -- : BFD_RELOC_MICROMIPS_GOT_OFST
  3105. -- : BFD_RELOC_MIPS_GOT_DISP
  3106. -- : BFD_RELOC_MICROMIPS_GOT_DISP
  3107. -- : BFD_RELOC_MIPS_SHIFT5
  3108. -- : BFD_RELOC_MIPS_SHIFT6
  3109. -- : BFD_RELOC_MIPS_INSERT_A
  3110. -- : BFD_RELOC_MIPS_INSERT_B
  3111. -- : BFD_RELOC_MIPS_DELETE
  3112. -- : BFD_RELOC_MIPS_HIGHEST
  3113. -- : BFD_RELOC_MICROMIPS_HIGHEST
  3114. -- : BFD_RELOC_MIPS_HIGHER
  3115. -- : BFD_RELOC_MICROMIPS_HIGHER
  3116. -- : BFD_RELOC_MIPS_SCN_DISP
  3117. -- : BFD_RELOC_MICROMIPS_SCN_DISP
  3118. -- : BFD_RELOC_MIPS_REL16
  3119. -- : BFD_RELOC_MIPS_RELGOT
  3120. -- : BFD_RELOC_MIPS_JALR
  3121. -- : BFD_RELOC_MICROMIPS_JALR
  3122. -- : BFD_RELOC_MIPS_TLS_DTPMOD32
  3123. -- : BFD_RELOC_MIPS_TLS_DTPREL32
  3124. -- : BFD_RELOC_MIPS_TLS_DTPMOD64
  3125. -- : BFD_RELOC_MIPS_TLS_DTPREL64
  3126. -- : BFD_RELOC_MIPS_TLS_GD
  3127. -- : BFD_RELOC_MICROMIPS_TLS_GD
  3128. -- : BFD_RELOC_MIPS_TLS_LDM
  3129. -- : BFD_RELOC_MICROMIPS_TLS_LDM
  3130. -- : BFD_RELOC_MIPS_TLS_DTPREL_HI16
  3131. -- : BFD_RELOC_MICROMIPS_TLS_DTPREL_HI16
  3132. -- : BFD_RELOC_MIPS_TLS_DTPREL_LO16
  3133. -- : BFD_RELOC_MICROMIPS_TLS_DTPREL_LO16
  3134. -- : BFD_RELOC_MIPS_TLS_GOTTPREL
  3135. -- : BFD_RELOC_MICROMIPS_TLS_GOTTPREL
  3136. -- : BFD_RELOC_MIPS_TLS_TPREL32
  3137. -- : BFD_RELOC_MIPS_TLS_TPREL64
  3138. -- : BFD_RELOC_MIPS_TLS_TPREL_HI16
  3139. -- : BFD_RELOC_MICROMIPS_TLS_TPREL_HI16
  3140. -- : BFD_RELOC_MIPS_TLS_TPREL_LO16
  3141. -- : BFD_RELOC_MICROMIPS_TLS_TPREL_LO16
  3142. -- : BFD_RELOC_MIPS_EH
  3143. MIPS ELF relocations.
  3144. -- : BFD_RELOC_MIPS_COPY
  3145. -- : BFD_RELOC_MIPS_JUMP_SLOT
  3146. MIPS ELF relocations (VxWorks and PLT extensions).
  3147. -- : BFD_RELOC_MOXIE_10_PCREL
  3148. Moxie ELF relocations.
  3149. -- : BFD_RELOC_FT32_10
  3150. -- : BFD_RELOC_FT32_20
  3151. -- : BFD_RELOC_FT32_17
  3152. -- : BFD_RELOC_FT32_18
  3153. FT32 ELF relocations.
  3154. -- : BFD_RELOC_FRV_LABEL16
  3155. -- : BFD_RELOC_FRV_LABEL24
  3156. -- : BFD_RELOC_FRV_LO16
  3157. -- : BFD_RELOC_FRV_HI16
  3158. -- : BFD_RELOC_FRV_GPREL12
  3159. -- : BFD_RELOC_FRV_GPRELU12
  3160. -- : BFD_RELOC_FRV_GPREL32
  3161. -- : BFD_RELOC_FRV_GPRELHI
  3162. -- : BFD_RELOC_FRV_GPRELLO
  3163. -- : BFD_RELOC_FRV_GOT12
  3164. -- : BFD_RELOC_FRV_GOTHI
  3165. -- : BFD_RELOC_FRV_GOTLO
  3166. -- : BFD_RELOC_FRV_FUNCDESC
  3167. -- : BFD_RELOC_FRV_FUNCDESC_GOT12
  3168. -- : BFD_RELOC_FRV_FUNCDESC_GOTHI
  3169. -- : BFD_RELOC_FRV_FUNCDESC_GOTLO
  3170. -- : BFD_RELOC_FRV_FUNCDESC_VALUE
  3171. -- : BFD_RELOC_FRV_FUNCDESC_GOTOFF12
  3172. -- : BFD_RELOC_FRV_FUNCDESC_GOTOFFHI
  3173. -- : BFD_RELOC_FRV_FUNCDESC_GOTOFFLO
  3174. -- : BFD_RELOC_FRV_GOTOFF12
  3175. -- : BFD_RELOC_FRV_GOTOFFHI
  3176. -- : BFD_RELOC_FRV_GOTOFFLO
  3177. -- : BFD_RELOC_FRV_GETTLSOFF
  3178. -- : BFD_RELOC_FRV_TLSDESC_VALUE
  3179. -- : BFD_RELOC_FRV_GOTTLSDESC12
  3180. -- : BFD_RELOC_FRV_GOTTLSDESCHI
  3181. -- : BFD_RELOC_FRV_GOTTLSDESCLO
  3182. -- : BFD_RELOC_FRV_TLSMOFF12
  3183. -- : BFD_RELOC_FRV_TLSMOFFHI
  3184. -- : BFD_RELOC_FRV_TLSMOFFLO
  3185. -- : BFD_RELOC_FRV_GOTTLSOFF12
  3186. -- : BFD_RELOC_FRV_GOTTLSOFFHI
  3187. -- : BFD_RELOC_FRV_GOTTLSOFFLO
  3188. -- : BFD_RELOC_FRV_TLSOFF
  3189. -- : BFD_RELOC_FRV_TLSDESC_RELAX
  3190. -- : BFD_RELOC_FRV_GETTLSOFF_RELAX
  3191. -- : BFD_RELOC_FRV_TLSOFF_RELAX
  3192. -- : BFD_RELOC_FRV_TLSMOFF
  3193. Fujitsu Frv Relocations.
  3194. -- : BFD_RELOC_MN10300_GOTOFF24
  3195. This is a 24bit GOT-relative reloc for the mn10300.
  3196. -- : BFD_RELOC_MN10300_GOT32
  3197. This is a 32bit GOT-relative reloc for the mn10300, offset by two
  3198. bytes in the instruction.
  3199. -- : BFD_RELOC_MN10300_GOT24
  3200. This is a 24bit GOT-relative reloc for the mn10300, offset by two
  3201. bytes in the instruction.
  3202. -- : BFD_RELOC_MN10300_GOT16
  3203. This is a 16bit GOT-relative reloc for the mn10300, offset by two
  3204. bytes in the instruction.
  3205. -- : BFD_RELOC_MN10300_COPY
  3206. Copy symbol at runtime.
  3207. -- : BFD_RELOC_MN10300_GLOB_DAT
  3208. Create GOT entry.
  3209. -- : BFD_RELOC_MN10300_JMP_SLOT
  3210. Create PLT entry.
  3211. -- : BFD_RELOC_MN10300_RELATIVE
  3212. Adjust by program base.
  3213. -- : BFD_RELOC_MN10300_SYM_DIFF
  3214. Together with another reloc targeted at the same location, allows
  3215. for a value that is the difference of two symbols in the same
  3216. section.
  3217. -- : BFD_RELOC_MN10300_ALIGN
  3218. The addend of this reloc is an alignment power that must be
  3219. honoured at the offset's location, regardless of linker relaxation.
  3220. -- : BFD_RELOC_MN10300_TLS_GD
  3221. -- : BFD_RELOC_MN10300_TLS_LD
  3222. -- : BFD_RELOC_MN10300_TLS_LDO
  3223. -- : BFD_RELOC_MN10300_TLS_GOTIE
  3224. -- : BFD_RELOC_MN10300_TLS_IE
  3225. -- : BFD_RELOC_MN10300_TLS_LE
  3226. -- : BFD_RELOC_MN10300_TLS_DTPMOD
  3227. -- : BFD_RELOC_MN10300_TLS_DTPOFF
  3228. -- : BFD_RELOC_MN10300_TLS_TPOFF
  3229. Various TLS-related relocations.
  3230. -- : BFD_RELOC_MN10300_32_PCREL
  3231. This is a 32bit pcrel reloc for the mn10300, offset by two bytes in
  3232. the instruction.
  3233. -- : BFD_RELOC_MN10300_16_PCREL
  3234. This is a 16bit pcrel reloc for the mn10300, offset by two bytes in
  3235. the instruction.
  3236. -- : BFD_RELOC_386_GOT32
  3237. -- : BFD_RELOC_386_PLT32
  3238. -- : BFD_RELOC_386_COPY
  3239. -- : BFD_RELOC_386_GLOB_DAT
  3240. -- : BFD_RELOC_386_JUMP_SLOT
  3241. -- : BFD_RELOC_386_RELATIVE
  3242. -- : BFD_RELOC_386_GOTOFF
  3243. -- : BFD_RELOC_386_GOTPC
  3244. -- : BFD_RELOC_386_TLS_TPOFF
  3245. -- : BFD_RELOC_386_TLS_IE
  3246. -- : BFD_RELOC_386_TLS_GOTIE
  3247. -- : BFD_RELOC_386_TLS_LE
  3248. -- : BFD_RELOC_386_TLS_GD
  3249. -- : BFD_RELOC_386_TLS_LDM
  3250. -- : BFD_RELOC_386_TLS_LDO_32
  3251. -- : BFD_RELOC_386_TLS_IE_32
  3252. -- : BFD_RELOC_386_TLS_LE_32
  3253. -- : BFD_RELOC_386_TLS_DTPMOD32
  3254. -- : BFD_RELOC_386_TLS_DTPOFF32
  3255. -- : BFD_RELOC_386_TLS_TPOFF32
  3256. -- : BFD_RELOC_386_TLS_GOTDESC
  3257. -- : BFD_RELOC_386_TLS_DESC_CALL
  3258. -- : BFD_RELOC_386_TLS_DESC
  3259. -- : BFD_RELOC_386_IRELATIVE
  3260. -- : BFD_RELOC_386_GOT32X
  3261. i386/elf relocations
  3262. -- : BFD_RELOC_X86_64_GOT32
  3263. -- : BFD_RELOC_X86_64_PLT32
  3264. -- : BFD_RELOC_X86_64_COPY
  3265. -- : BFD_RELOC_X86_64_GLOB_DAT
  3266. -- : BFD_RELOC_X86_64_JUMP_SLOT
  3267. -- : BFD_RELOC_X86_64_RELATIVE
  3268. -- : BFD_RELOC_X86_64_GOTPCREL
  3269. -- : BFD_RELOC_X86_64_32S
  3270. -- : BFD_RELOC_X86_64_DTPMOD64
  3271. -- : BFD_RELOC_X86_64_DTPOFF64
  3272. -- : BFD_RELOC_X86_64_TPOFF64
  3273. -- : BFD_RELOC_X86_64_TLSGD
  3274. -- : BFD_RELOC_X86_64_TLSLD
  3275. -- : BFD_RELOC_X86_64_DTPOFF32
  3276. -- : BFD_RELOC_X86_64_GOTTPOFF
  3277. -- : BFD_RELOC_X86_64_TPOFF32
  3278. -- : BFD_RELOC_X86_64_GOTOFF64
  3279. -- : BFD_RELOC_X86_64_GOTPC32
  3280. -- : BFD_RELOC_X86_64_GOT64
  3281. -- : BFD_RELOC_X86_64_GOTPCREL64
  3282. -- : BFD_RELOC_X86_64_GOTPC64
  3283. -- : BFD_RELOC_X86_64_GOTPLT64
  3284. -- : BFD_RELOC_X86_64_PLTOFF64
  3285. -- : BFD_RELOC_X86_64_GOTPC32_TLSDESC
  3286. -- : BFD_RELOC_X86_64_TLSDESC_CALL
  3287. -- : BFD_RELOC_X86_64_TLSDESC
  3288. -- : BFD_RELOC_X86_64_IRELATIVE
  3289. -- : BFD_RELOC_X86_64_PC32_BND
  3290. -- : BFD_RELOC_X86_64_PLT32_BND
  3291. -- : BFD_RELOC_X86_64_GOTPCRELX
  3292. -- : BFD_RELOC_X86_64_REX_GOTPCRELX
  3293. x86-64/elf relocations
  3294. -- : BFD_RELOC_NS32K_IMM_8
  3295. -- : BFD_RELOC_NS32K_IMM_16
  3296. -- : BFD_RELOC_NS32K_IMM_32
  3297. -- : BFD_RELOC_NS32K_IMM_8_PCREL
  3298. -- : BFD_RELOC_NS32K_IMM_16_PCREL
  3299. -- : BFD_RELOC_NS32K_IMM_32_PCREL
  3300. -- : BFD_RELOC_NS32K_DISP_8
  3301. -- : BFD_RELOC_NS32K_DISP_16
  3302. -- : BFD_RELOC_NS32K_DISP_32
  3303. -- : BFD_RELOC_NS32K_DISP_8_PCREL
  3304. -- : BFD_RELOC_NS32K_DISP_16_PCREL
  3305. -- : BFD_RELOC_NS32K_DISP_32_PCREL
  3306. ns32k relocations
  3307. -- : BFD_RELOC_PDP11_DISP_8_PCREL
  3308. -- : BFD_RELOC_PDP11_DISP_6_PCREL
  3309. PDP11 relocations
  3310. -- : BFD_RELOC_PJ_CODE_HI16
  3311. -- : BFD_RELOC_PJ_CODE_LO16
  3312. -- : BFD_RELOC_PJ_CODE_DIR16
  3313. -- : BFD_RELOC_PJ_CODE_DIR32
  3314. -- : BFD_RELOC_PJ_CODE_REL16
  3315. -- : BFD_RELOC_PJ_CODE_REL32
  3316. Picojava relocs. Not all of these appear in object files.
  3317. -- : BFD_RELOC_PPC_B26
  3318. -- : BFD_RELOC_PPC_BA26
  3319. -- : BFD_RELOC_PPC_TOC16
  3320. -- : BFD_RELOC_PPC_B16
  3321. -- : BFD_RELOC_PPC_B16_BRTAKEN
  3322. -- : BFD_RELOC_PPC_B16_BRNTAKEN
  3323. -- : BFD_RELOC_PPC_BA16
  3324. -- : BFD_RELOC_PPC_BA16_BRTAKEN
  3325. -- : BFD_RELOC_PPC_BA16_BRNTAKEN
  3326. -- : BFD_RELOC_PPC_COPY
  3327. -- : BFD_RELOC_PPC_GLOB_DAT
  3328. -- : BFD_RELOC_PPC_JMP_SLOT
  3329. -- : BFD_RELOC_PPC_RELATIVE
  3330. -- : BFD_RELOC_PPC_LOCAL24PC
  3331. -- : BFD_RELOC_PPC_EMB_NADDR32
  3332. -- : BFD_RELOC_PPC_EMB_NADDR16
  3333. -- : BFD_RELOC_PPC_EMB_NADDR16_LO
  3334. -- : BFD_RELOC_PPC_EMB_NADDR16_HI
  3335. -- : BFD_RELOC_PPC_EMB_NADDR16_HA
  3336. -- : BFD_RELOC_PPC_EMB_SDAI16
  3337. -- : BFD_RELOC_PPC_EMB_SDA2I16
  3338. -- : BFD_RELOC_PPC_EMB_SDA2REL
  3339. -- : BFD_RELOC_PPC_EMB_SDA21
  3340. -- : BFD_RELOC_PPC_EMB_MRKREF
  3341. -- : BFD_RELOC_PPC_EMB_RELSEC16
  3342. -- : BFD_RELOC_PPC_EMB_RELST_LO
  3343. -- : BFD_RELOC_PPC_EMB_RELST_HI
  3344. -- : BFD_RELOC_PPC_EMB_RELST_HA
  3345. -- : BFD_RELOC_PPC_EMB_BIT_FLD
  3346. -- : BFD_RELOC_PPC_EMB_RELSDA
  3347. -- : BFD_RELOC_PPC_VLE_REL8
  3348. -- : BFD_RELOC_PPC_VLE_REL15
  3349. -- : BFD_RELOC_PPC_VLE_REL24
  3350. -- : BFD_RELOC_PPC_VLE_LO16A
  3351. -- : BFD_RELOC_PPC_VLE_LO16D
  3352. -- : BFD_RELOC_PPC_VLE_HI16A
  3353. -- : BFD_RELOC_PPC_VLE_HI16D
  3354. -- : BFD_RELOC_PPC_VLE_HA16A
  3355. -- : BFD_RELOC_PPC_VLE_HA16D
  3356. -- : BFD_RELOC_PPC_VLE_SDA21
  3357. -- : BFD_RELOC_PPC_VLE_SDA21_LO
  3358. -- : BFD_RELOC_PPC_VLE_SDAREL_LO16A
  3359. -- : BFD_RELOC_PPC_VLE_SDAREL_LO16D
  3360. -- : BFD_RELOC_PPC_VLE_SDAREL_HI16A
  3361. -- : BFD_RELOC_PPC_VLE_SDAREL_HI16D
  3362. -- : BFD_RELOC_PPC_VLE_SDAREL_HA16A
  3363. -- : BFD_RELOC_PPC_VLE_SDAREL_HA16D
  3364. -- : BFD_RELOC_PPC_16DX_HA
  3365. -- : BFD_RELOC_PPC_REL16DX_HA
  3366. -- : BFD_RELOC_PPC64_HIGHER
  3367. -- : BFD_RELOC_PPC64_HIGHER_S
  3368. -- : BFD_RELOC_PPC64_HIGHEST
  3369. -- : BFD_RELOC_PPC64_HIGHEST_S
  3370. -- : BFD_RELOC_PPC64_TOC16_LO
  3371. -- : BFD_RELOC_PPC64_TOC16_HI
  3372. -- : BFD_RELOC_PPC64_TOC16_HA
  3373. -- : BFD_RELOC_PPC64_TOC
  3374. -- : BFD_RELOC_PPC64_PLTGOT16
  3375. -- : BFD_RELOC_PPC64_PLTGOT16_LO
  3376. -- : BFD_RELOC_PPC64_PLTGOT16_HI
  3377. -- : BFD_RELOC_PPC64_PLTGOT16_HA
  3378. -- : BFD_RELOC_PPC64_ADDR16_DS
  3379. -- : BFD_RELOC_PPC64_ADDR16_LO_DS
  3380. -- : BFD_RELOC_PPC64_GOT16_DS
  3381. -- : BFD_RELOC_PPC64_GOT16_LO_DS
  3382. -- : BFD_RELOC_PPC64_PLT16_LO_DS
  3383. -- : BFD_RELOC_PPC64_SECTOFF_DS
  3384. -- : BFD_RELOC_PPC64_SECTOFF_LO_DS
  3385. -- : BFD_RELOC_PPC64_TOC16_DS
  3386. -- : BFD_RELOC_PPC64_TOC16_LO_DS
  3387. -- : BFD_RELOC_PPC64_PLTGOT16_DS
  3388. -- : BFD_RELOC_PPC64_PLTGOT16_LO_DS
  3389. -- : BFD_RELOC_PPC64_ADDR16_HIGH
  3390. -- : BFD_RELOC_PPC64_ADDR16_HIGHA
  3391. -- : BFD_RELOC_PPC64_ADDR64_LOCAL
  3392. -- : BFD_RELOC_PPC64_ENTRY
  3393. Power(rs6000) and PowerPC relocations.
  3394. -- : BFD_RELOC_PPC_TLS
  3395. -- : BFD_RELOC_PPC_TLSGD
  3396. -- : BFD_RELOC_PPC_TLSLD
  3397. -- : BFD_RELOC_PPC_DTPMOD
  3398. -- : BFD_RELOC_PPC_TPREL16
  3399. -- : BFD_RELOC_PPC_TPREL16_LO
  3400. -- : BFD_RELOC_PPC_TPREL16_HI
  3401. -- : BFD_RELOC_PPC_TPREL16_HA
  3402. -- : BFD_RELOC_PPC_TPREL
  3403. -- : BFD_RELOC_PPC_DTPREL16
  3404. -- : BFD_RELOC_PPC_DTPREL16_LO
  3405. -- : BFD_RELOC_PPC_DTPREL16_HI
  3406. -- : BFD_RELOC_PPC_DTPREL16_HA
  3407. -- : BFD_RELOC_PPC_DTPREL
  3408. -- : BFD_RELOC_PPC_GOT_TLSGD16
  3409. -- : BFD_RELOC_PPC_GOT_TLSGD16_LO
  3410. -- : BFD_RELOC_PPC_GOT_TLSGD16_HI
  3411. -- : BFD_RELOC_PPC_GOT_TLSGD16_HA
  3412. -- : BFD_RELOC_PPC_GOT_TLSLD16
  3413. -- : BFD_RELOC_PPC_GOT_TLSLD16_LO
  3414. -- : BFD_RELOC_PPC_GOT_TLSLD16_HI
  3415. -- : BFD_RELOC_PPC_GOT_TLSLD16_HA
  3416. -- : BFD_RELOC_PPC_GOT_TPREL16
  3417. -- : BFD_RELOC_PPC_GOT_TPREL16_LO
  3418. -- : BFD_RELOC_PPC_GOT_TPREL16_HI
  3419. -- : BFD_RELOC_PPC_GOT_TPREL16_HA
  3420. -- : BFD_RELOC_PPC_GOT_DTPREL16
  3421. -- : BFD_RELOC_PPC_GOT_DTPREL16_LO
  3422. -- : BFD_RELOC_PPC_GOT_DTPREL16_HI
  3423. -- : BFD_RELOC_PPC_GOT_DTPREL16_HA
  3424. -- : BFD_RELOC_PPC64_TPREL16_DS
  3425. -- : BFD_RELOC_PPC64_TPREL16_LO_DS
  3426. -- : BFD_RELOC_PPC64_TPREL16_HIGHER
  3427. -- : BFD_RELOC_PPC64_TPREL16_HIGHERA
  3428. -- : BFD_RELOC_PPC64_TPREL16_HIGHEST
  3429. -- : BFD_RELOC_PPC64_TPREL16_HIGHESTA
  3430. -- : BFD_RELOC_PPC64_DTPREL16_DS
  3431. -- : BFD_RELOC_PPC64_DTPREL16_LO_DS
  3432. -- : BFD_RELOC_PPC64_DTPREL16_HIGHER
  3433. -- : BFD_RELOC_PPC64_DTPREL16_HIGHERA
  3434. -- : BFD_RELOC_PPC64_DTPREL16_HIGHEST
  3435. -- : BFD_RELOC_PPC64_DTPREL16_HIGHESTA
  3436. -- : BFD_RELOC_PPC64_TPREL16_HIGH
  3437. -- : BFD_RELOC_PPC64_TPREL16_HIGHA
  3438. -- : BFD_RELOC_PPC64_DTPREL16_HIGH
  3439. -- : BFD_RELOC_PPC64_DTPREL16_HIGHA
  3440. PowerPC and PowerPC64 thread-local storage relocations.
  3441. -- : BFD_RELOC_I370_D12
  3442. IBM 370/390 relocations
  3443. -- : BFD_RELOC_CTOR
  3444. The type of reloc used to build a constructor table - at the moment
  3445. probably a 32 bit wide absolute relocation, but the target can
  3446. choose. It generally does map to one of the other relocation
  3447. types.
  3448. -- : BFD_RELOC_ARM_PCREL_BRANCH
  3449. ARM 26 bit pc-relative branch. The lowest two bits must be zero
  3450. and are not stored in the instruction.
  3451. -- : BFD_RELOC_ARM_PCREL_BLX
  3452. ARM 26 bit pc-relative branch. The lowest bit must be zero and is
  3453. not stored in the instruction. The 2nd lowest bit comes from a 1
  3454. bit field in the instruction.
  3455. -- : BFD_RELOC_THUMB_PCREL_BLX
  3456. Thumb 22 bit pc-relative branch. The lowest bit must be zero and
  3457. is not stored in the instruction. The 2nd lowest bit comes from a
  3458. 1 bit field in the instruction.
  3459. -- : BFD_RELOC_ARM_PCREL_CALL
  3460. ARM 26-bit pc-relative branch for an unconditional BL or BLX
  3461. instruction.
  3462. -- : BFD_RELOC_ARM_PCREL_JUMP
  3463. ARM 26-bit pc-relative branch for B or conditional BL instruction.
  3464. -- : BFD_RELOC_THUMB_PCREL_BRANCH7
  3465. -- : BFD_RELOC_THUMB_PCREL_BRANCH9
  3466. -- : BFD_RELOC_THUMB_PCREL_BRANCH12
  3467. -- : BFD_RELOC_THUMB_PCREL_BRANCH20
  3468. -- : BFD_RELOC_THUMB_PCREL_BRANCH23
  3469. -- : BFD_RELOC_THUMB_PCREL_BRANCH25
  3470. Thumb 7-, 9-, 12-, 20-, 23-, and 25-bit pc-relative branches. The
  3471. lowest bit must be zero and is not stored in the instruction. Note
  3472. that the corresponding ELF R_ARM_THM_JUMPnn constant has an "nn"
  3473. one smaller in all cases. Note further that BRANCH23 corresponds
  3474. to R_ARM_THM_CALL.
  3475. -- : BFD_RELOC_ARM_OFFSET_IMM
  3476. 12-bit immediate offset, used in ARM-format ldr and str
  3477. instructions.
  3478. -- : BFD_RELOC_ARM_THUMB_OFFSET
  3479. 5-bit immediate offset, used in Thumb-format ldr and str
  3480. instructions.
  3481. -- : BFD_RELOC_ARM_TARGET1
  3482. Pc-relative or absolute relocation depending on target. Used for
  3483. entries in .init_array sections.
  3484. -- : BFD_RELOC_ARM_ROSEGREL32
  3485. Read-only segment base relative address.
  3486. -- : BFD_RELOC_ARM_SBREL32
  3487. Data segment base relative address.
  3488. -- : BFD_RELOC_ARM_TARGET2
  3489. This reloc is used for references to RTTI data from exception
  3490. handling tables. The actual definition depends on the target. It
  3491. may be a pc-relative or some form of GOT-indirect relocation.
  3492. -- : BFD_RELOC_ARM_PREL31
  3493. 31-bit PC relative address.
  3494. -- : BFD_RELOC_ARM_MOVW
  3495. -- : BFD_RELOC_ARM_MOVT
  3496. -- : BFD_RELOC_ARM_MOVW_PCREL
  3497. -- : BFD_RELOC_ARM_MOVT_PCREL
  3498. -- : BFD_RELOC_ARM_THUMB_MOVW
  3499. -- : BFD_RELOC_ARM_THUMB_MOVT
  3500. -- : BFD_RELOC_ARM_THUMB_MOVW_PCREL
  3501. -- : BFD_RELOC_ARM_THUMB_MOVT_PCREL
  3502. Low and High halfword relocations for MOVW and MOVT instructions.
  3503. -- : BFD_RELOC_ARM_JUMP_SLOT
  3504. -- : BFD_RELOC_ARM_GLOB_DAT
  3505. -- : BFD_RELOC_ARM_GOT32
  3506. -- : BFD_RELOC_ARM_PLT32
  3507. -- : BFD_RELOC_ARM_RELATIVE
  3508. -- : BFD_RELOC_ARM_GOTOFF
  3509. -- : BFD_RELOC_ARM_GOTPC
  3510. -- : BFD_RELOC_ARM_GOT_PREL
  3511. Relocations for setting up GOTs and PLTs for shared libraries.
  3512. -- : BFD_RELOC_ARM_TLS_GD32
  3513. -- : BFD_RELOC_ARM_TLS_LDO32
  3514. -- : BFD_RELOC_ARM_TLS_LDM32
  3515. -- : BFD_RELOC_ARM_TLS_DTPOFF32
  3516. -- : BFD_RELOC_ARM_TLS_DTPMOD32
  3517. -- : BFD_RELOC_ARM_TLS_TPOFF32
  3518. -- : BFD_RELOC_ARM_TLS_IE32
  3519. -- : BFD_RELOC_ARM_TLS_LE32
  3520. -- : BFD_RELOC_ARM_TLS_GOTDESC
  3521. -- : BFD_RELOC_ARM_TLS_CALL
  3522. -- : BFD_RELOC_ARM_THM_TLS_CALL
  3523. -- : BFD_RELOC_ARM_TLS_DESCSEQ
  3524. -- : BFD_RELOC_ARM_THM_TLS_DESCSEQ
  3525. -- : BFD_RELOC_ARM_TLS_DESC
  3526. ARM thread-local storage relocations.
  3527. -- : BFD_RELOC_ARM_ALU_PC_G0_NC
  3528. -- : BFD_RELOC_ARM_ALU_PC_G0
  3529. -- : BFD_RELOC_ARM_ALU_PC_G1_NC
  3530. -- : BFD_RELOC_ARM_ALU_PC_G1
  3531. -- : BFD_RELOC_ARM_ALU_PC_G2
  3532. -- : BFD_RELOC_ARM_LDR_PC_G0
  3533. -- : BFD_RELOC_ARM_LDR_PC_G1
  3534. -- : BFD_RELOC_ARM_LDR_PC_G2
  3535. -- : BFD_RELOC_ARM_LDRS_PC_G0
  3536. -- : BFD_RELOC_ARM_LDRS_PC_G1
  3537. -- : BFD_RELOC_ARM_LDRS_PC_G2
  3538. -- : BFD_RELOC_ARM_LDC_PC_G0
  3539. -- : BFD_RELOC_ARM_LDC_PC_G1
  3540. -- : BFD_RELOC_ARM_LDC_PC_G2
  3541. -- : BFD_RELOC_ARM_ALU_SB_G0_NC
  3542. -- : BFD_RELOC_ARM_ALU_SB_G0
  3543. -- : BFD_RELOC_ARM_ALU_SB_G1_NC
  3544. -- : BFD_RELOC_ARM_ALU_SB_G1
  3545. -- : BFD_RELOC_ARM_ALU_SB_G2
  3546. -- : BFD_RELOC_ARM_LDR_SB_G0
  3547. -- : BFD_RELOC_ARM_LDR_SB_G1
  3548. -- : BFD_RELOC_ARM_LDR_SB_G2
  3549. -- : BFD_RELOC_ARM_LDRS_SB_G0
  3550. -- : BFD_RELOC_ARM_LDRS_SB_G1
  3551. -- : BFD_RELOC_ARM_LDRS_SB_G2
  3552. -- : BFD_RELOC_ARM_LDC_SB_G0
  3553. -- : BFD_RELOC_ARM_LDC_SB_G1
  3554. -- : BFD_RELOC_ARM_LDC_SB_G2
  3555. ARM group relocations.
  3556. -- : BFD_RELOC_ARM_V4BX
  3557. Annotation of BX instructions.
  3558. -- : BFD_RELOC_ARM_IRELATIVE
  3559. ARM support for STT_GNU_IFUNC.
  3560. -- : BFD_RELOC_ARM_THUMB_ALU_ABS_G0_NC
  3561. -- : BFD_RELOC_ARM_THUMB_ALU_ABS_G1_NC
  3562. -- : BFD_RELOC_ARM_THUMB_ALU_ABS_G2_NC
  3563. -- : BFD_RELOC_ARM_THUMB_ALU_ABS_G3_NC
  3564. Thumb1 relocations to support execute-only code.
  3565. -- : BFD_RELOC_ARM_IMMEDIATE
  3566. -- : BFD_RELOC_ARM_ADRL_IMMEDIATE
  3567. -- : BFD_RELOC_ARM_T32_IMMEDIATE
  3568. -- : BFD_RELOC_ARM_T32_ADD_IMM
  3569. -- : BFD_RELOC_ARM_T32_IMM12
  3570. -- : BFD_RELOC_ARM_T32_ADD_PC12
  3571. -- : BFD_RELOC_ARM_SHIFT_IMM
  3572. -- : BFD_RELOC_ARM_SMC
  3573. -- : BFD_RELOC_ARM_HVC
  3574. -- : BFD_RELOC_ARM_SWI
  3575. -- : BFD_RELOC_ARM_MULTI
  3576. -- : BFD_RELOC_ARM_CP_OFF_IMM
  3577. -- : BFD_RELOC_ARM_CP_OFF_IMM_S2
  3578. -- : BFD_RELOC_ARM_T32_CP_OFF_IMM
  3579. -- : BFD_RELOC_ARM_T32_CP_OFF_IMM_S2
  3580. -- : BFD_RELOC_ARM_ADR_IMM
  3581. -- : BFD_RELOC_ARM_LDR_IMM
  3582. -- : BFD_RELOC_ARM_LITERAL
  3583. -- : BFD_RELOC_ARM_IN_POOL
  3584. -- : BFD_RELOC_ARM_OFFSET_IMM8
  3585. -- : BFD_RELOC_ARM_T32_OFFSET_U8
  3586. -- : BFD_RELOC_ARM_T32_OFFSET_IMM
  3587. -- : BFD_RELOC_ARM_HWLITERAL
  3588. -- : BFD_RELOC_ARM_THUMB_ADD
  3589. -- : BFD_RELOC_ARM_THUMB_IMM
  3590. -- : BFD_RELOC_ARM_THUMB_SHIFT
  3591. These relocs are only used within the ARM assembler. They are not
  3592. (at present) written to any object files.
  3593. -- : BFD_RELOC_SH_PCDISP8BY2
  3594. -- : BFD_RELOC_SH_PCDISP12BY2
  3595. -- : BFD_RELOC_SH_IMM3
  3596. -- : BFD_RELOC_SH_IMM3U
  3597. -- : BFD_RELOC_SH_DISP12
  3598. -- : BFD_RELOC_SH_DISP12BY2
  3599. -- : BFD_RELOC_SH_DISP12BY4
  3600. -- : BFD_RELOC_SH_DISP12BY8
  3601. -- : BFD_RELOC_SH_DISP20
  3602. -- : BFD_RELOC_SH_DISP20BY8
  3603. -- : BFD_RELOC_SH_IMM4
  3604. -- : BFD_RELOC_SH_IMM4BY2
  3605. -- : BFD_RELOC_SH_IMM4BY4
  3606. -- : BFD_RELOC_SH_IMM8
  3607. -- : BFD_RELOC_SH_IMM8BY2
  3608. -- : BFD_RELOC_SH_IMM8BY4
  3609. -- : BFD_RELOC_SH_PCRELIMM8BY2
  3610. -- : BFD_RELOC_SH_PCRELIMM8BY4
  3611. -- : BFD_RELOC_SH_SWITCH16
  3612. -- : BFD_RELOC_SH_SWITCH32
  3613. -- : BFD_RELOC_SH_USES
  3614. -- : BFD_RELOC_SH_COUNT
  3615. -- : BFD_RELOC_SH_ALIGN
  3616. -- : BFD_RELOC_SH_CODE
  3617. -- : BFD_RELOC_SH_DATA
  3618. -- : BFD_RELOC_SH_LABEL
  3619. -- : BFD_RELOC_SH_LOOP_START
  3620. -- : BFD_RELOC_SH_LOOP_END
  3621. -- : BFD_RELOC_SH_COPY
  3622. -- : BFD_RELOC_SH_GLOB_DAT
  3623. -- : BFD_RELOC_SH_JMP_SLOT
  3624. -- : BFD_RELOC_SH_RELATIVE
  3625. -- : BFD_RELOC_SH_GOTPC
  3626. -- : BFD_RELOC_SH_GOT_LOW16
  3627. -- : BFD_RELOC_SH_GOT_MEDLOW16
  3628. -- : BFD_RELOC_SH_GOT_MEDHI16
  3629. -- : BFD_RELOC_SH_GOT_HI16
  3630. -- : BFD_RELOC_SH_GOTPLT_LOW16
  3631. -- : BFD_RELOC_SH_GOTPLT_MEDLOW16
  3632. -- : BFD_RELOC_SH_GOTPLT_MEDHI16
  3633. -- : BFD_RELOC_SH_GOTPLT_HI16
  3634. -- : BFD_RELOC_SH_PLT_LOW16
  3635. -- : BFD_RELOC_SH_PLT_MEDLOW16
  3636. -- : BFD_RELOC_SH_PLT_MEDHI16
  3637. -- : BFD_RELOC_SH_PLT_HI16
  3638. -- : BFD_RELOC_SH_GOTOFF_LOW16
  3639. -- : BFD_RELOC_SH_GOTOFF_MEDLOW16
  3640. -- : BFD_RELOC_SH_GOTOFF_MEDHI16
  3641. -- : BFD_RELOC_SH_GOTOFF_HI16
  3642. -- : BFD_RELOC_SH_GOTPC_LOW16
  3643. -- : BFD_RELOC_SH_GOTPC_MEDLOW16
  3644. -- : BFD_RELOC_SH_GOTPC_MEDHI16
  3645. -- : BFD_RELOC_SH_GOTPC_HI16
  3646. -- : BFD_RELOC_SH_COPY64
  3647. -- : BFD_RELOC_SH_GLOB_DAT64
  3648. -- : BFD_RELOC_SH_JMP_SLOT64
  3649. -- : BFD_RELOC_SH_RELATIVE64
  3650. -- : BFD_RELOC_SH_GOT10BY4
  3651. -- : BFD_RELOC_SH_GOT10BY8
  3652. -- : BFD_RELOC_SH_GOTPLT10BY4
  3653. -- : BFD_RELOC_SH_GOTPLT10BY8
  3654. -- : BFD_RELOC_SH_GOTPLT32
  3655. -- : BFD_RELOC_SH_SHMEDIA_CODE
  3656. -- : BFD_RELOC_SH_IMMU5
  3657. -- : BFD_RELOC_SH_IMMS6
  3658. -- : BFD_RELOC_SH_IMMS6BY32
  3659. -- : BFD_RELOC_SH_IMMU6
  3660. -- : BFD_RELOC_SH_IMMS10
  3661. -- : BFD_RELOC_SH_IMMS10BY2
  3662. -- : BFD_RELOC_SH_IMMS10BY4
  3663. -- : BFD_RELOC_SH_IMMS10BY8
  3664. -- : BFD_RELOC_SH_IMMS16
  3665. -- : BFD_RELOC_SH_IMMU16
  3666. -- : BFD_RELOC_SH_IMM_LOW16
  3667. -- : BFD_RELOC_SH_IMM_LOW16_PCREL
  3668. -- : BFD_RELOC_SH_IMM_MEDLOW16
  3669. -- : BFD_RELOC_SH_IMM_MEDLOW16_PCREL
  3670. -- : BFD_RELOC_SH_IMM_MEDHI16
  3671. -- : BFD_RELOC_SH_IMM_MEDHI16_PCREL
  3672. -- : BFD_RELOC_SH_IMM_HI16
  3673. -- : BFD_RELOC_SH_IMM_HI16_PCREL
  3674. -- : BFD_RELOC_SH_PT_16
  3675. -- : BFD_RELOC_SH_TLS_GD_32
  3676. -- : BFD_RELOC_SH_TLS_LD_32
  3677. -- : BFD_RELOC_SH_TLS_LDO_32
  3678. -- : BFD_RELOC_SH_TLS_IE_32
  3679. -- : BFD_RELOC_SH_TLS_LE_32
  3680. -- : BFD_RELOC_SH_TLS_DTPMOD32
  3681. -- : BFD_RELOC_SH_TLS_DTPOFF32
  3682. -- : BFD_RELOC_SH_TLS_TPOFF32
  3683. -- : BFD_RELOC_SH_GOT20
  3684. -- : BFD_RELOC_SH_GOTOFF20
  3685. -- : BFD_RELOC_SH_GOTFUNCDESC
  3686. -- : BFD_RELOC_SH_GOTFUNCDESC20
  3687. -- : BFD_RELOC_SH_GOTOFFFUNCDESC
  3688. -- : BFD_RELOC_SH_GOTOFFFUNCDESC20
  3689. -- : BFD_RELOC_SH_FUNCDESC
  3690. Renesas / SuperH SH relocs. Not all of these appear in object
  3691. files.
  3692. -- : BFD_RELOC_ARC_NONE
  3693. -- : BFD_RELOC_ARC_8
  3694. -- : BFD_RELOC_ARC_16
  3695. -- : BFD_RELOC_ARC_24
  3696. -- : BFD_RELOC_ARC_32
  3697. -- : BFD_RELOC_ARC_N8
  3698. -- : BFD_RELOC_ARC_N16
  3699. -- : BFD_RELOC_ARC_N24
  3700. -- : BFD_RELOC_ARC_N32
  3701. -- : BFD_RELOC_ARC_SDA
  3702. -- : BFD_RELOC_ARC_SECTOFF
  3703. -- : BFD_RELOC_ARC_S21H_PCREL
  3704. -- : BFD_RELOC_ARC_S21W_PCREL
  3705. -- : BFD_RELOC_ARC_S25H_PCREL
  3706. -- : BFD_RELOC_ARC_S25W_PCREL
  3707. -- : BFD_RELOC_ARC_SDA32
  3708. -- : BFD_RELOC_ARC_SDA_LDST
  3709. -- : BFD_RELOC_ARC_SDA_LDST1
  3710. -- : BFD_RELOC_ARC_SDA_LDST2
  3711. -- : BFD_RELOC_ARC_SDA16_LD
  3712. -- : BFD_RELOC_ARC_SDA16_LD1
  3713. -- : BFD_RELOC_ARC_SDA16_LD2
  3714. -- : BFD_RELOC_ARC_S13_PCREL
  3715. -- : BFD_RELOC_ARC_W
  3716. -- : BFD_RELOC_ARC_32_ME
  3717. -- : BFD_RELOC_ARC_32_ME_S
  3718. -- : BFD_RELOC_ARC_N32_ME
  3719. -- : BFD_RELOC_ARC_SECTOFF_ME
  3720. -- : BFD_RELOC_ARC_SDA32_ME
  3721. -- : BFD_RELOC_ARC_W_ME
  3722. -- : BFD_RELOC_AC_SECTOFF_U8
  3723. -- : BFD_RELOC_AC_SECTOFF_U8_1
  3724. -- : BFD_RELOC_AC_SECTOFF_U8_2
  3725. -- : BFD_RELOC_AC_SECTOFF_S9
  3726. -- : BFD_RELOC_AC_SECTOFF_S9_1
  3727. -- : BFD_RELOC_AC_SECTOFF_S9_2
  3728. -- : BFD_RELOC_ARC_SECTOFF_ME_1
  3729. -- : BFD_RELOC_ARC_SECTOFF_ME_2
  3730. -- : BFD_RELOC_ARC_SECTOFF_1
  3731. -- : BFD_RELOC_ARC_SECTOFF_2
  3732. -- : BFD_RELOC_ARC_SDA_12
  3733. -- : BFD_RELOC_ARC_SDA16_ST2
  3734. -- : BFD_RELOC_ARC_32_PCREL
  3735. -- : BFD_RELOC_ARC_PC32
  3736. -- : BFD_RELOC_ARC_GOT32
  3737. -- : BFD_RELOC_ARC_GOTPC32
  3738. -- : BFD_RELOC_ARC_PLT32
  3739. -- : BFD_RELOC_ARC_COPY
  3740. -- : BFD_RELOC_ARC_GLOB_DAT
  3741. -- : BFD_RELOC_ARC_JMP_SLOT
  3742. -- : BFD_RELOC_ARC_RELATIVE
  3743. -- : BFD_RELOC_ARC_GOTOFF
  3744. -- : BFD_RELOC_ARC_GOTPC
  3745. -- : BFD_RELOC_ARC_S21W_PCREL_PLT
  3746. -- : BFD_RELOC_ARC_S25H_PCREL_PLT
  3747. -- : BFD_RELOC_ARC_TLS_DTPMOD
  3748. -- : BFD_RELOC_ARC_TLS_TPOFF
  3749. -- : BFD_RELOC_ARC_TLS_GD_GOT
  3750. -- : BFD_RELOC_ARC_TLS_GD_LD
  3751. -- : BFD_RELOC_ARC_TLS_GD_CALL
  3752. -- : BFD_RELOC_ARC_TLS_IE_GOT
  3753. -- : BFD_RELOC_ARC_TLS_DTPOFF
  3754. -- : BFD_RELOC_ARC_TLS_DTPOFF_S9
  3755. -- : BFD_RELOC_ARC_TLS_LE_S9
  3756. -- : BFD_RELOC_ARC_TLS_LE_32
  3757. -- : BFD_RELOC_ARC_S25W_PCREL_PLT
  3758. -- : BFD_RELOC_ARC_S21H_PCREL_PLT
  3759. -- : BFD_RELOC_ARC_NPS_CMEM16
  3760. ARC relocs.
  3761. -- : BFD_RELOC_BFIN_16_IMM
  3762. ADI Blackfin 16 bit immediate absolute reloc.
  3763. -- : BFD_RELOC_BFIN_16_HIGH
  3764. ADI Blackfin 16 bit immediate absolute reloc higher 16 bits.
  3765. -- : BFD_RELOC_BFIN_4_PCREL
  3766. ADI Blackfin 'a' part of LSETUP.
  3767. -- : BFD_RELOC_BFIN_5_PCREL
  3768. ADI Blackfin.
  3769. -- : BFD_RELOC_BFIN_16_LOW
  3770. ADI Blackfin 16 bit immediate absolute reloc lower 16 bits.
  3771. -- : BFD_RELOC_BFIN_10_PCREL
  3772. ADI Blackfin.
  3773. -- : BFD_RELOC_BFIN_11_PCREL
  3774. ADI Blackfin 'b' part of LSETUP.
  3775. -- : BFD_RELOC_BFIN_12_PCREL_JUMP
  3776. ADI Blackfin.
  3777. -- : BFD_RELOC_BFIN_12_PCREL_JUMP_S
  3778. ADI Blackfin Short jump, pcrel.
  3779. -- : BFD_RELOC_BFIN_24_PCREL_CALL_X
  3780. ADI Blackfin Call.x not implemented.
  3781. -- : BFD_RELOC_BFIN_24_PCREL_JUMP_L
  3782. ADI Blackfin Long Jump pcrel.
  3783. -- : BFD_RELOC_BFIN_GOT17M4
  3784. -- : BFD_RELOC_BFIN_GOTHI
  3785. -- : BFD_RELOC_BFIN_GOTLO
  3786. -- : BFD_RELOC_BFIN_FUNCDESC
  3787. -- : BFD_RELOC_BFIN_FUNCDESC_GOT17M4
  3788. -- : BFD_RELOC_BFIN_FUNCDESC_GOTHI
  3789. -- : BFD_RELOC_BFIN_FUNCDESC_GOTLO
  3790. -- : BFD_RELOC_BFIN_FUNCDESC_VALUE
  3791. -- : BFD_RELOC_BFIN_FUNCDESC_GOTOFF17M4
  3792. -- : BFD_RELOC_BFIN_FUNCDESC_GOTOFFHI
  3793. -- : BFD_RELOC_BFIN_FUNCDESC_GOTOFFLO
  3794. -- : BFD_RELOC_BFIN_GOTOFF17M4
  3795. -- : BFD_RELOC_BFIN_GOTOFFHI
  3796. -- : BFD_RELOC_BFIN_GOTOFFLO
  3797. ADI Blackfin FD-PIC relocations.
  3798. -- : BFD_RELOC_BFIN_GOT
  3799. ADI Blackfin GOT relocation.
  3800. -- : BFD_RELOC_BFIN_PLTPC
  3801. ADI Blackfin PLTPC relocation.
  3802. -- : BFD_ARELOC_BFIN_PUSH
  3803. ADI Blackfin arithmetic relocation.
  3804. -- : BFD_ARELOC_BFIN_CONST
  3805. ADI Blackfin arithmetic relocation.
  3806. -- : BFD_ARELOC_BFIN_ADD
  3807. ADI Blackfin arithmetic relocation.
  3808. -- : BFD_ARELOC_BFIN_SUB
  3809. ADI Blackfin arithmetic relocation.
  3810. -- : BFD_ARELOC_BFIN_MULT
  3811. ADI Blackfin arithmetic relocation.
  3812. -- : BFD_ARELOC_BFIN_DIV
  3813. ADI Blackfin arithmetic relocation.
  3814. -- : BFD_ARELOC_BFIN_MOD
  3815. ADI Blackfin arithmetic relocation.
  3816. -- : BFD_ARELOC_BFIN_LSHIFT
  3817. ADI Blackfin arithmetic relocation.
  3818. -- : BFD_ARELOC_BFIN_RSHIFT
  3819. ADI Blackfin arithmetic relocation.
  3820. -- : BFD_ARELOC_BFIN_AND
  3821. ADI Blackfin arithmetic relocation.
  3822. -- : BFD_ARELOC_BFIN_OR
  3823. ADI Blackfin arithmetic relocation.
  3824. -- : BFD_ARELOC_BFIN_XOR
  3825. ADI Blackfin arithmetic relocation.
  3826. -- : BFD_ARELOC_BFIN_LAND
  3827. ADI Blackfin arithmetic relocation.
  3828. -- : BFD_ARELOC_BFIN_LOR
  3829. ADI Blackfin arithmetic relocation.
  3830. -- : BFD_ARELOC_BFIN_LEN
  3831. ADI Blackfin arithmetic relocation.
  3832. -- : BFD_ARELOC_BFIN_NEG
  3833. ADI Blackfin arithmetic relocation.
  3834. -- : BFD_ARELOC_BFIN_COMP
  3835. ADI Blackfin arithmetic relocation.
  3836. -- : BFD_ARELOC_BFIN_PAGE
  3837. ADI Blackfin arithmetic relocation.
  3838. -- : BFD_ARELOC_BFIN_HWPAGE
  3839. ADI Blackfin arithmetic relocation.
  3840. -- : BFD_ARELOC_BFIN_ADDR
  3841. ADI Blackfin arithmetic relocation.
  3842. -- : BFD_RELOC_D10V_10_PCREL_R
  3843. Mitsubishi D10V relocs. This is a 10-bit reloc with the right 2
  3844. bits assumed to be 0.
  3845. -- : BFD_RELOC_D10V_10_PCREL_L
  3846. Mitsubishi D10V relocs. This is a 10-bit reloc with the right 2
  3847. bits assumed to be 0. This is the same as the previous reloc
  3848. except it is in the left container, i.e., shifted left 15 bits.
  3849. -- : BFD_RELOC_D10V_18
  3850. This is an 18-bit reloc with the right 2 bits assumed to be 0.
  3851. -- : BFD_RELOC_D10V_18_PCREL
  3852. This is an 18-bit reloc with the right 2 bits assumed to be 0.
  3853. -- : BFD_RELOC_D30V_6
  3854. Mitsubishi D30V relocs. This is a 6-bit absolute reloc.
  3855. -- : BFD_RELOC_D30V_9_PCREL
  3856. This is a 6-bit pc-relative reloc with the right 3 bits assumed to
  3857. be 0.
  3858. -- : BFD_RELOC_D30V_9_PCREL_R
  3859. This is a 6-bit pc-relative reloc with the right 3 bits assumed to
  3860. be 0. Same as the previous reloc but on the right side of the
  3861. container.
  3862. -- : BFD_RELOC_D30V_15
  3863. This is a 12-bit absolute reloc with the right 3 bitsassumed to be
  3864. 0.
  3865. -- : BFD_RELOC_D30V_15_PCREL
  3866. This is a 12-bit pc-relative reloc with the right 3 bits assumed to
  3867. be 0.
  3868. -- : BFD_RELOC_D30V_15_PCREL_R
  3869. This is a 12-bit pc-relative reloc with the right 3 bits assumed to
  3870. be 0. Same as the previous reloc but on the right side of the
  3871. container.
  3872. -- : BFD_RELOC_D30V_21
  3873. This is an 18-bit absolute reloc with the right 3 bits assumed to
  3874. be 0.
  3875. -- : BFD_RELOC_D30V_21_PCREL
  3876. This is an 18-bit pc-relative reloc with the right 3 bits assumed
  3877. to be 0.
  3878. -- : BFD_RELOC_D30V_21_PCREL_R
  3879. This is an 18-bit pc-relative reloc with the right 3 bits assumed
  3880. to be 0. Same as the previous reloc but on the right side of the
  3881. container.
  3882. -- : BFD_RELOC_D30V_32
  3883. This is a 32-bit absolute reloc.
  3884. -- : BFD_RELOC_D30V_32_PCREL
  3885. This is a 32-bit pc-relative reloc.
  3886. -- : BFD_RELOC_DLX_HI16_S
  3887. DLX relocs
  3888. -- : BFD_RELOC_DLX_LO16
  3889. DLX relocs
  3890. -- : BFD_RELOC_DLX_JMP26
  3891. DLX relocs
  3892. -- : BFD_RELOC_M32C_HI8
  3893. -- : BFD_RELOC_M32C_RL_JUMP
  3894. -- : BFD_RELOC_M32C_RL_1ADDR
  3895. -- : BFD_RELOC_M32C_RL_2ADDR
  3896. Renesas M16C/M32C Relocations.
  3897. -- : BFD_RELOC_M32R_24
  3898. Renesas M32R (formerly Mitsubishi M32R) relocs. This is a 24 bit
  3899. absolute address.
  3900. -- : BFD_RELOC_M32R_10_PCREL
  3901. This is a 10-bit pc-relative reloc with the right 2 bits assumed to
  3902. be 0.
  3903. -- : BFD_RELOC_M32R_18_PCREL
  3904. This is an 18-bit reloc with the right 2 bits assumed to be 0.
  3905. -- : BFD_RELOC_M32R_26_PCREL
  3906. This is a 26-bit reloc with the right 2 bits assumed to be 0.
  3907. -- : BFD_RELOC_M32R_HI16_ULO
  3908. This is a 16-bit reloc containing the high 16 bits of an address
  3909. used when the lower 16 bits are treated as unsigned.
  3910. -- : BFD_RELOC_M32R_HI16_SLO
  3911. This is a 16-bit reloc containing the high 16 bits of an address
  3912. used when the lower 16 bits are treated as signed.
  3913. -- : BFD_RELOC_M32R_LO16
  3914. This is a 16-bit reloc containing the lower 16 bits of an address.
  3915. -- : BFD_RELOC_M32R_SDA16
  3916. This is a 16-bit reloc containing the small data area offset for
  3917. use in add3, load, and store instructions.
  3918. -- : BFD_RELOC_M32R_GOT24
  3919. -- : BFD_RELOC_M32R_26_PLTREL
  3920. -- : BFD_RELOC_M32R_COPY
  3921. -- : BFD_RELOC_M32R_GLOB_DAT
  3922. -- : BFD_RELOC_M32R_JMP_SLOT
  3923. -- : BFD_RELOC_M32R_RELATIVE
  3924. -- : BFD_RELOC_M32R_GOTOFF
  3925. -- : BFD_RELOC_M32R_GOTOFF_HI_ULO
  3926. -- : BFD_RELOC_M32R_GOTOFF_HI_SLO
  3927. -- : BFD_RELOC_M32R_GOTOFF_LO
  3928. -- : BFD_RELOC_M32R_GOTPC24
  3929. -- : BFD_RELOC_M32R_GOT16_HI_ULO
  3930. -- : BFD_RELOC_M32R_GOT16_HI_SLO
  3931. -- : BFD_RELOC_M32R_GOT16_LO
  3932. -- : BFD_RELOC_M32R_GOTPC_HI_ULO
  3933. -- : BFD_RELOC_M32R_GOTPC_HI_SLO
  3934. -- : BFD_RELOC_M32R_GOTPC_LO
  3935. For PIC.
  3936. -- : BFD_RELOC_NDS32_20
  3937. NDS32 relocs. This is a 20 bit absolute address.
  3938. -- : BFD_RELOC_NDS32_9_PCREL
  3939. This is a 9-bit pc-relative reloc with the right 1 bit assumed to
  3940. be 0.
  3941. -- : BFD_RELOC_NDS32_WORD_9_PCREL
  3942. This is a 9-bit pc-relative reloc with the right 1 bit assumed to
  3943. be 0.
  3944. -- : BFD_RELOC_NDS32_15_PCREL
  3945. This is an 15-bit reloc with the right 1 bit assumed to be 0.
  3946. -- : BFD_RELOC_NDS32_17_PCREL
  3947. This is an 17-bit reloc with the right 1 bit assumed to be 0.
  3948. -- : BFD_RELOC_NDS32_25_PCREL
  3949. This is a 25-bit reloc with the right 1 bit assumed to be 0.
  3950. -- : BFD_RELOC_NDS32_HI20
  3951. This is a 20-bit reloc containing the high 20 bits of an address
  3952. used with the lower 12 bits
  3953. -- : BFD_RELOC_NDS32_LO12S3
  3954. This is a 12-bit reloc containing the lower 12 bits of an address
  3955. then shift right by 3. This is used with ldi,sdi...
  3956. -- : BFD_RELOC_NDS32_LO12S2
  3957. This is a 12-bit reloc containing the lower 12 bits of an address
  3958. then shift left by 2. This is used with lwi,swi...
  3959. -- : BFD_RELOC_NDS32_LO12S1
  3960. This is a 12-bit reloc containing the lower 12 bits of an address
  3961. then shift left by 1. This is used with lhi,shi...
  3962. -- : BFD_RELOC_NDS32_LO12S0
  3963. This is a 12-bit reloc containing the lower 12 bits of an address
  3964. then shift left by 0. This is used with lbisbi...
  3965. -- : BFD_RELOC_NDS32_LO12S0_ORI
  3966. This is a 12-bit reloc containing the lower 12 bits of an address
  3967. then shift left by 0. This is only used with branch relaxations
  3968. -- : BFD_RELOC_NDS32_SDA15S3
  3969. This is a 15-bit reloc containing the small data area 18-bit signed
  3970. offset and shift left by 3 for use in ldi, sdi...
  3971. -- : BFD_RELOC_NDS32_SDA15S2
  3972. This is a 15-bit reloc containing the small data area 17-bit signed
  3973. offset and shift left by 2 for use in lwi, swi...
  3974. -- : BFD_RELOC_NDS32_SDA15S1
  3975. This is a 15-bit reloc containing the small data area 16-bit signed
  3976. offset and shift left by 1 for use in lhi, shi...
  3977. -- : BFD_RELOC_NDS32_SDA15S0
  3978. This is a 15-bit reloc containing the small data area 15-bit signed
  3979. offset and shift left by 0 for use in lbi, sbi...
  3980. -- : BFD_RELOC_NDS32_SDA16S3
  3981. This is a 16-bit reloc containing the small data area 16-bit signed
  3982. offset and shift left by 3
  3983. -- : BFD_RELOC_NDS32_SDA17S2
  3984. This is a 17-bit reloc containing the small data area 17-bit signed
  3985. offset and shift left by 2 for use in lwi.gp, swi.gp...
  3986. -- : BFD_RELOC_NDS32_SDA18S1
  3987. This is a 18-bit reloc containing the small data area 18-bit signed
  3988. offset and shift left by 1 for use in lhi.gp, shi.gp...
  3989. -- : BFD_RELOC_NDS32_SDA19S0
  3990. This is a 19-bit reloc containing the small data area 19-bit signed
  3991. offset and shift left by 0 for use in lbi.gp, sbi.gp...
  3992. -- : BFD_RELOC_NDS32_GOT20
  3993. -- : BFD_RELOC_NDS32_9_PLTREL
  3994. -- : BFD_RELOC_NDS32_25_PLTREL
  3995. -- : BFD_RELOC_NDS32_COPY
  3996. -- : BFD_RELOC_NDS32_GLOB_DAT
  3997. -- : BFD_RELOC_NDS32_JMP_SLOT
  3998. -- : BFD_RELOC_NDS32_RELATIVE
  3999. -- : BFD_RELOC_NDS32_GOTOFF
  4000. -- : BFD_RELOC_NDS32_GOTOFF_HI20
  4001. -- : BFD_RELOC_NDS32_GOTOFF_LO12
  4002. -- : BFD_RELOC_NDS32_GOTPC20
  4003. -- : BFD_RELOC_NDS32_GOT_HI20
  4004. -- : BFD_RELOC_NDS32_GOT_LO12
  4005. -- : BFD_RELOC_NDS32_GOTPC_HI20
  4006. -- : BFD_RELOC_NDS32_GOTPC_LO12
  4007. for PIC
  4008. -- : BFD_RELOC_NDS32_INSN16
  4009. -- : BFD_RELOC_NDS32_LABEL
  4010. -- : BFD_RELOC_NDS32_LONGCALL1
  4011. -- : BFD_RELOC_NDS32_LONGCALL2
  4012. -- : BFD_RELOC_NDS32_LONGCALL3
  4013. -- : BFD_RELOC_NDS32_LONGJUMP1
  4014. -- : BFD_RELOC_NDS32_LONGJUMP2
  4015. -- : BFD_RELOC_NDS32_LONGJUMP3
  4016. -- : BFD_RELOC_NDS32_LOADSTORE
  4017. -- : BFD_RELOC_NDS32_9_FIXED
  4018. -- : BFD_RELOC_NDS32_15_FIXED
  4019. -- : BFD_RELOC_NDS32_17_FIXED
  4020. -- : BFD_RELOC_NDS32_25_FIXED
  4021. -- : BFD_RELOC_NDS32_LONGCALL4
  4022. -- : BFD_RELOC_NDS32_LONGCALL5
  4023. -- : BFD_RELOC_NDS32_LONGCALL6
  4024. -- : BFD_RELOC_NDS32_LONGJUMP4
  4025. -- : BFD_RELOC_NDS32_LONGJUMP5
  4026. -- : BFD_RELOC_NDS32_LONGJUMP6
  4027. -- : BFD_RELOC_NDS32_LONGJUMP7
  4028. for relax
  4029. -- : BFD_RELOC_NDS32_PLTREL_HI20
  4030. -- : BFD_RELOC_NDS32_PLTREL_LO12
  4031. -- : BFD_RELOC_NDS32_PLT_GOTREL_HI20
  4032. -- : BFD_RELOC_NDS32_PLT_GOTREL_LO12
  4033. for PIC
  4034. -- : BFD_RELOC_NDS32_SDA12S2_DP
  4035. -- : BFD_RELOC_NDS32_SDA12S2_SP
  4036. -- : BFD_RELOC_NDS32_LO12S2_DP
  4037. -- : BFD_RELOC_NDS32_LO12S2_SP
  4038. for floating point
  4039. -- : BFD_RELOC_NDS32_DWARF2_OP1
  4040. -- : BFD_RELOC_NDS32_DWARF2_OP2
  4041. -- : BFD_RELOC_NDS32_DWARF2_LEB
  4042. for dwarf2 debug_line.
  4043. -- : BFD_RELOC_NDS32_UPDATE_TA
  4044. for eliminate 16-bit instructions
  4045. -- : BFD_RELOC_NDS32_PLT_GOTREL_LO20
  4046. -- : BFD_RELOC_NDS32_PLT_GOTREL_LO15
  4047. -- : BFD_RELOC_NDS32_PLT_GOTREL_LO19
  4048. -- : BFD_RELOC_NDS32_GOT_LO15
  4049. -- : BFD_RELOC_NDS32_GOT_LO19
  4050. -- : BFD_RELOC_NDS32_GOTOFF_LO15
  4051. -- : BFD_RELOC_NDS32_GOTOFF_LO19
  4052. -- : BFD_RELOC_NDS32_GOT15S2
  4053. -- : BFD_RELOC_NDS32_GOT17S2
  4054. for PIC object relaxation
  4055. -- : BFD_RELOC_NDS32_5
  4056. NDS32 relocs. This is a 5 bit absolute address.
  4057. -- : BFD_RELOC_NDS32_10_UPCREL
  4058. This is a 10-bit unsigned pc-relative reloc with the right 1 bit
  4059. assumed to be 0.
  4060. -- : BFD_RELOC_NDS32_SDA_FP7U2_RELA
  4061. If fp were omitted, fp can used as another gp.
  4062. -- : BFD_RELOC_NDS32_RELAX_ENTRY
  4063. -- : BFD_RELOC_NDS32_GOT_SUFF
  4064. -- : BFD_RELOC_NDS32_GOTOFF_SUFF
  4065. -- : BFD_RELOC_NDS32_PLT_GOT_SUFF
  4066. -- : BFD_RELOC_NDS32_MULCALL_SUFF
  4067. -- : BFD_RELOC_NDS32_PTR
  4068. -- : BFD_RELOC_NDS32_PTR_COUNT
  4069. -- : BFD_RELOC_NDS32_PTR_RESOLVED
  4070. -- : BFD_RELOC_NDS32_PLTBLOCK
  4071. -- : BFD_RELOC_NDS32_RELAX_REGION_BEGIN
  4072. -- : BFD_RELOC_NDS32_RELAX_REGION_END
  4073. -- : BFD_RELOC_NDS32_MINUEND
  4074. -- : BFD_RELOC_NDS32_SUBTRAHEND
  4075. -- : BFD_RELOC_NDS32_DIFF8
  4076. -- : BFD_RELOC_NDS32_DIFF16
  4077. -- : BFD_RELOC_NDS32_DIFF32
  4078. -- : BFD_RELOC_NDS32_DIFF_ULEB128
  4079. -- : BFD_RELOC_NDS32_EMPTY
  4080. relaxation relative relocation types
  4081. -- : BFD_RELOC_NDS32_25_ABS
  4082. This is a 25 bit absolute address.
  4083. -- : BFD_RELOC_NDS32_DATA
  4084. -- : BFD_RELOC_NDS32_TRAN
  4085. -- : BFD_RELOC_NDS32_17IFC_PCREL
  4086. -- : BFD_RELOC_NDS32_10IFCU_PCREL
  4087. For ex9 and ifc using.
  4088. -- : BFD_RELOC_NDS32_TPOFF
  4089. -- : BFD_RELOC_NDS32_TLS_LE_HI20
  4090. -- : BFD_RELOC_NDS32_TLS_LE_LO12
  4091. -- : BFD_RELOC_NDS32_TLS_LE_ADD
  4092. -- : BFD_RELOC_NDS32_TLS_LE_LS
  4093. -- : BFD_RELOC_NDS32_GOTTPOFF
  4094. -- : BFD_RELOC_NDS32_TLS_IE_HI20
  4095. -- : BFD_RELOC_NDS32_TLS_IE_LO12S2
  4096. -- : BFD_RELOC_NDS32_TLS_TPOFF
  4097. -- : BFD_RELOC_NDS32_TLS_LE_20
  4098. -- : BFD_RELOC_NDS32_TLS_LE_15S0
  4099. -- : BFD_RELOC_NDS32_TLS_LE_15S1
  4100. -- : BFD_RELOC_NDS32_TLS_LE_15S2
  4101. For TLS.
  4102. -- : BFD_RELOC_V850_9_PCREL
  4103. This is a 9-bit reloc
  4104. -- : BFD_RELOC_V850_22_PCREL
  4105. This is a 22-bit reloc
  4106. -- : BFD_RELOC_V850_SDA_16_16_OFFSET
  4107. This is a 16 bit offset from the short data area pointer.
  4108. -- : BFD_RELOC_V850_SDA_15_16_OFFSET
  4109. This is a 16 bit offset (of which only 15 bits are used) from the
  4110. short data area pointer.
  4111. -- : BFD_RELOC_V850_ZDA_16_16_OFFSET
  4112. This is a 16 bit offset from the zero data area pointer.
  4113. -- : BFD_RELOC_V850_ZDA_15_16_OFFSET
  4114. This is a 16 bit offset (of which only 15 bits are used) from the
  4115. zero data area pointer.
  4116. -- : BFD_RELOC_V850_TDA_6_8_OFFSET
  4117. This is an 8 bit offset (of which only 6 bits are used) from the
  4118. tiny data area pointer.
  4119. -- : BFD_RELOC_V850_TDA_7_8_OFFSET
  4120. This is an 8bit offset (of which only 7 bits are used) from the
  4121. tiny data area pointer.
  4122. -- : BFD_RELOC_V850_TDA_7_7_OFFSET
  4123. This is a 7 bit offset from the tiny data area pointer.
  4124. -- : BFD_RELOC_V850_TDA_16_16_OFFSET
  4125. This is a 16 bit offset from the tiny data area pointer.
  4126. -- : BFD_RELOC_V850_TDA_4_5_OFFSET
  4127. This is a 5 bit offset (of which only 4 bits are used) from the
  4128. tiny data area pointer.
  4129. -- : BFD_RELOC_V850_TDA_4_4_OFFSET
  4130. This is a 4 bit offset from the tiny data area pointer.
  4131. -- : BFD_RELOC_V850_SDA_16_16_SPLIT_OFFSET
  4132. This is a 16 bit offset from the short data area pointer, with the
  4133. bits placed non-contiguously in the instruction.
  4134. -- : BFD_RELOC_V850_ZDA_16_16_SPLIT_OFFSET
  4135. This is a 16 bit offset from the zero data area pointer, with the
  4136. bits placed non-contiguously in the instruction.
  4137. -- : BFD_RELOC_V850_CALLT_6_7_OFFSET
  4138. This is a 6 bit offset from the call table base pointer.
  4139. -- : BFD_RELOC_V850_CALLT_16_16_OFFSET
  4140. This is a 16 bit offset from the call table base pointer.
  4141. -- : BFD_RELOC_V850_LONGCALL
  4142. Used for relaxing indirect function calls.
  4143. -- : BFD_RELOC_V850_LONGJUMP
  4144. Used for relaxing indirect jumps.
  4145. -- : BFD_RELOC_V850_ALIGN
  4146. Used to maintain alignment whilst relaxing.
  4147. -- : BFD_RELOC_V850_LO16_SPLIT_OFFSET
  4148. This is a variation of BFD_RELOC_LO16 that can be used in v850e
  4149. ld.bu instructions.
  4150. -- : BFD_RELOC_V850_16_PCREL
  4151. This is a 16-bit reloc.
  4152. -- : BFD_RELOC_V850_17_PCREL
  4153. This is a 17-bit reloc.
  4154. -- : BFD_RELOC_V850_23
  4155. This is a 23-bit reloc.
  4156. -- : BFD_RELOC_V850_32_PCREL
  4157. This is a 32-bit reloc.
  4158. -- : BFD_RELOC_V850_32_ABS
  4159. This is a 32-bit reloc.
  4160. -- : BFD_RELOC_V850_16_SPLIT_OFFSET
  4161. This is a 16-bit reloc.
  4162. -- : BFD_RELOC_V850_16_S1
  4163. This is a 16-bit reloc.
  4164. -- : BFD_RELOC_V850_LO16_S1
  4165. Low 16 bits. 16 bit shifted by 1.
  4166. -- : BFD_RELOC_V850_CALLT_15_16_OFFSET
  4167. This is a 16 bit offset from the call table base pointer.
  4168. -- : BFD_RELOC_V850_32_GOTPCREL
  4169. DSO relocations.
  4170. -- : BFD_RELOC_V850_16_GOT
  4171. DSO relocations.
  4172. -- : BFD_RELOC_V850_32_GOT
  4173. DSO relocations.
  4174. -- : BFD_RELOC_V850_22_PLT_PCREL
  4175. DSO relocations.
  4176. -- : BFD_RELOC_V850_32_PLT_PCREL
  4177. DSO relocations.
  4178. -- : BFD_RELOC_V850_COPY
  4179. DSO relocations.
  4180. -- : BFD_RELOC_V850_GLOB_DAT
  4181. DSO relocations.
  4182. -- : BFD_RELOC_V850_JMP_SLOT
  4183. DSO relocations.
  4184. -- : BFD_RELOC_V850_RELATIVE
  4185. DSO relocations.
  4186. -- : BFD_RELOC_V850_16_GOTOFF
  4187. DSO relocations.
  4188. -- : BFD_RELOC_V850_32_GOTOFF
  4189. DSO relocations.
  4190. -- : BFD_RELOC_V850_CODE
  4191. start code.
  4192. -- : BFD_RELOC_V850_DATA
  4193. start data in text.
  4194. -- : BFD_RELOC_TIC30_LDP
  4195. This is a 8bit DP reloc for the tms320c30, where the most
  4196. significant 8 bits of a 24 bit word are placed into the least
  4197. significant 8 bits of the opcode.
  4198. -- : BFD_RELOC_TIC54X_PARTLS7
  4199. This is a 7bit reloc for the tms320c54x, where the least
  4200. significant 7 bits of a 16 bit word are placed into the least
  4201. significant 7 bits of the opcode.
  4202. -- : BFD_RELOC_TIC54X_PARTMS9
  4203. This is a 9bit DP reloc for the tms320c54x, where the most
  4204. significant 9 bits of a 16 bit word are placed into the least
  4205. significant 9 bits of the opcode.
  4206. -- : BFD_RELOC_TIC54X_23
  4207. This is an extended address 23-bit reloc for the tms320c54x.
  4208. -- : BFD_RELOC_TIC54X_16_OF_23
  4209. This is a 16-bit reloc for the tms320c54x, where the least
  4210. significant 16 bits of a 23-bit extended address are placed into
  4211. the opcode.
  4212. -- : BFD_RELOC_TIC54X_MS7_OF_23
  4213. This is a reloc for the tms320c54x, where the most significant 7
  4214. bits of a 23-bit extended address are placed into the opcode.
  4215. -- : BFD_RELOC_C6000_PCR_S21
  4216. -- : BFD_RELOC_C6000_PCR_S12
  4217. -- : BFD_RELOC_C6000_PCR_S10
  4218. -- : BFD_RELOC_C6000_PCR_S7
  4219. -- : BFD_RELOC_C6000_ABS_S16
  4220. -- : BFD_RELOC_C6000_ABS_L16
  4221. -- : BFD_RELOC_C6000_ABS_H16
  4222. -- : BFD_RELOC_C6000_SBR_U15_B
  4223. -- : BFD_RELOC_C6000_SBR_U15_H
  4224. -- : BFD_RELOC_C6000_SBR_U15_W
  4225. -- : BFD_RELOC_C6000_SBR_S16
  4226. -- : BFD_RELOC_C6000_SBR_L16_B
  4227. -- : BFD_RELOC_C6000_SBR_L16_H
  4228. -- : BFD_RELOC_C6000_SBR_L16_W
  4229. -- : BFD_RELOC_C6000_SBR_H16_B
  4230. -- : BFD_RELOC_C6000_SBR_H16_H
  4231. -- : BFD_RELOC_C6000_SBR_H16_W
  4232. -- : BFD_RELOC_C6000_SBR_GOT_U15_W
  4233. -- : BFD_RELOC_C6000_SBR_GOT_L16_W
  4234. -- : BFD_RELOC_C6000_SBR_GOT_H16_W
  4235. -- : BFD_RELOC_C6000_DSBT_INDEX
  4236. -- : BFD_RELOC_C6000_PREL31
  4237. -- : BFD_RELOC_C6000_COPY
  4238. -- : BFD_RELOC_C6000_JUMP_SLOT
  4239. -- : BFD_RELOC_C6000_EHTYPE
  4240. -- : BFD_RELOC_C6000_PCR_H16
  4241. -- : BFD_RELOC_C6000_PCR_L16
  4242. -- : BFD_RELOC_C6000_ALIGN
  4243. -- : BFD_RELOC_C6000_FPHEAD
  4244. -- : BFD_RELOC_C6000_NOCMP
  4245. TMS320C6000 relocations.
  4246. -- : BFD_RELOC_FR30_48
  4247. This is a 48 bit reloc for the FR30 that stores 32 bits.
  4248. -- : BFD_RELOC_FR30_20
  4249. This is a 32 bit reloc for the FR30 that stores 20 bits split up
  4250. into two sections.
  4251. -- : BFD_RELOC_FR30_6_IN_4
  4252. This is a 16 bit reloc for the FR30 that stores a 6 bit word offset
  4253. in 4 bits.
  4254. -- : BFD_RELOC_FR30_8_IN_8
  4255. This is a 16 bit reloc for the FR30 that stores an 8 bit byte
  4256. offset into 8 bits.
  4257. -- : BFD_RELOC_FR30_9_IN_8
  4258. This is a 16 bit reloc for the FR30 that stores a 9 bit short
  4259. offset into 8 bits.
  4260. -- : BFD_RELOC_FR30_10_IN_8
  4261. This is a 16 bit reloc for the FR30 that stores a 10 bit word
  4262. offset into 8 bits.
  4263. -- : BFD_RELOC_FR30_9_PCREL
  4264. This is a 16 bit reloc for the FR30 that stores a 9 bit pc relative
  4265. short offset into 8 bits.
  4266. -- : BFD_RELOC_FR30_12_PCREL
  4267. This is a 16 bit reloc for the FR30 that stores a 12 bit pc
  4268. relative short offset into 11 bits.
  4269. -- : BFD_RELOC_MCORE_PCREL_IMM8BY4
  4270. -- : BFD_RELOC_MCORE_PCREL_IMM11BY2
  4271. -- : BFD_RELOC_MCORE_PCREL_IMM4BY2
  4272. -- : BFD_RELOC_MCORE_PCREL_32
  4273. -- : BFD_RELOC_MCORE_PCREL_JSR_IMM11BY2
  4274. -- : BFD_RELOC_MCORE_RVA
  4275. Motorola Mcore relocations.
  4276. -- : BFD_RELOC_MEP_8
  4277. -- : BFD_RELOC_MEP_16
  4278. -- : BFD_RELOC_MEP_32
  4279. -- : BFD_RELOC_MEP_PCREL8A2
  4280. -- : BFD_RELOC_MEP_PCREL12A2
  4281. -- : BFD_RELOC_MEP_PCREL17A2
  4282. -- : BFD_RELOC_MEP_PCREL24A2
  4283. -- : BFD_RELOC_MEP_PCABS24A2
  4284. -- : BFD_RELOC_MEP_LOW16
  4285. -- : BFD_RELOC_MEP_HI16U
  4286. -- : BFD_RELOC_MEP_HI16S
  4287. -- : BFD_RELOC_MEP_GPREL
  4288. -- : BFD_RELOC_MEP_TPREL
  4289. -- : BFD_RELOC_MEP_TPREL7
  4290. -- : BFD_RELOC_MEP_TPREL7A2
  4291. -- : BFD_RELOC_MEP_TPREL7A4
  4292. -- : BFD_RELOC_MEP_UIMM24
  4293. -- : BFD_RELOC_MEP_ADDR24A4
  4294. -- : BFD_RELOC_MEP_GNU_VTINHERIT
  4295. -- : BFD_RELOC_MEP_GNU_VTENTRY
  4296. Toshiba Media Processor Relocations.
  4297. -- : BFD_RELOC_METAG_HIADDR16
  4298. -- : BFD_RELOC_METAG_LOADDR16
  4299. -- : BFD_RELOC_METAG_RELBRANCH
  4300. -- : BFD_RELOC_METAG_GETSETOFF
  4301. -- : BFD_RELOC_METAG_HIOG
  4302. -- : BFD_RELOC_METAG_LOOG
  4303. -- : BFD_RELOC_METAG_REL8
  4304. -- : BFD_RELOC_METAG_REL16
  4305. -- : BFD_RELOC_METAG_HI16_GOTOFF
  4306. -- : BFD_RELOC_METAG_LO16_GOTOFF
  4307. -- : BFD_RELOC_METAG_GETSET_GOTOFF
  4308. -- : BFD_RELOC_METAG_GETSET_GOT
  4309. -- : BFD_RELOC_METAG_HI16_GOTPC
  4310. -- : BFD_RELOC_METAG_LO16_GOTPC
  4311. -- : BFD_RELOC_METAG_HI16_PLT
  4312. -- : BFD_RELOC_METAG_LO16_PLT
  4313. -- : BFD_RELOC_METAG_RELBRANCH_PLT
  4314. -- : BFD_RELOC_METAG_GOTOFF
  4315. -- : BFD_RELOC_METAG_PLT
  4316. -- : BFD_RELOC_METAG_COPY
  4317. -- : BFD_RELOC_METAG_JMP_SLOT
  4318. -- : BFD_RELOC_METAG_RELATIVE
  4319. -- : BFD_RELOC_METAG_GLOB_DAT
  4320. -- : BFD_RELOC_METAG_TLS_GD
  4321. -- : BFD_RELOC_METAG_TLS_LDM
  4322. -- : BFD_RELOC_METAG_TLS_LDO_HI16
  4323. -- : BFD_RELOC_METAG_TLS_LDO_LO16
  4324. -- : BFD_RELOC_METAG_TLS_LDO
  4325. -- : BFD_RELOC_METAG_TLS_IE
  4326. -- : BFD_RELOC_METAG_TLS_IENONPIC
  4327. -- : BFD_RELOC_METAG_TLS_IENONPIC_HI16
  4328. -- : BFD_RELOC_METAG_TLS_IENONPIC_LO16
  4329. -- : BFD_RELOC_METAG_TLS_TPOFF
  4330. -- : BFD_RELOC_METAG_TLS_DTPMOD
  4331. -- : BFD_RELOC_METAG_TLS_DTPOFF
  4332. -- : BFD_RELOC_METAG_TLS_LE
  4333. -- : BFD_RELOC_METAG_TLS_LE_HI16
  4334. -- : BFD_RELOC_METAG_TLS_LE_LO16
  4335. Imagination Technologies Meta relocations.
  4336. -- : BFD_RELOC_MMIX_GETA
  4337. -- : BFD_RELOC_MMIX_GETA_1
  4338. -- : BFD_RELOC_MMIX_GETA_2
  4339. -- : BFD_RELOC_MMIX_GETA_3
  4340. These are relocations for the GETA instruction.
  4341. -- : BFD_RELOC_MMIX_CBRANCH
  4342. -- : BFD_RELOC_MMIX_CBRANCH_J
  4343. -- : BFD_RELOC_MMIX_CBRANCH_1
  4344. -- : BFD_RELOC_MMIX_CBRANCH_2
  4345. -- : BFD_RELOC_MMIX_CBRANCH_3
  4346. These are relocations for a conditional branch instruction.
  4347. -- : BFD_RELOC_MMIX_PUSHJ
  4348. -- : BFD_RELOC_MMIX_PUSHJ_1
  4349. -- : BFD_RELOC_MMIX_PUSHJ_2
  4350. -- : BFD_RELOC_MMIX_PUSHJ_3
  4351. -- : BFD_RELOC_MMIX_PUSHJ_STUBBABLE
  4352. These are relocations for the PUSHJ instruction.
  4353. -- : BFD_RELOC_MMIX_JMP
  4354. -- : BFD_RELOC_MMIX_JMP_1
  4355. -- : BFD_RELOC_MMIX_JMP_2
  4356. -- : BFD_RELOC_MMIX_JMP_3
  4357. These are relocations for the JMP instruction.
  4358. -- : BFD_RELOC_MMIX_ADDR19
  4359. This is a relocation for a relative address as in a GETA
  4360. instruction or a branch.
  4361. -- : BFD_RELOC_MMIX_ADDR27
  4362. This is a relocation for a relative address as in a JMP
  4363. instruction.
  4364. -- : BFD_RELOC_MMIX_REG_OR_BYTE
  4365. This is a relocation for an instruction field that may be a general
  4366. register or a value 0..255.
  4367. -- : BFD_RELOC_MMIX_REG
  4368. This is a relocation for an instruction field that may be a general
  4369. register.
  4370. -- : BFD_RELOC_MMIX_BASE_PLUS_OFFSET
  4371. This is a relocation for two instruction fields holding a register
  4372. and an offset, the equivalent of the relocation.
  4373. -- : BFD_RELOC_MMIX_LOCAL
  4374. This relocation is an assertion that the expression is not
  4375. allocated as a global register. It does not modify contents.
  4376. -- : BFD_RELOC_AVR_7_PCREL
  4377. This is a 16 bit reloc for the AVR that stores 8 bit pc relative
  4378. short offset into 7 bits.
  4379. -- : BFD_RELOC_AVR_13_PCREL
  4380. This is a 16 bit reloc for the AVR that stores 13 bit pc relative
  4381. short offset into 12 bits.
  4382. -- : BFD_RELOC_AVR_16_PM
  4383. This is a 16 bit reloc for the AVR that stores 17 bit value
  4384. (usually program memory address) into 16 bits.
  4385. -- : BFD_RELOC_AVR_LO8_LDI
  4386. This is a 16 bit reloc for the AVR that stores 8 bit value (usually
  4387. data memory address) into 8 bit immediate value of LDI insn.
  4388. -- : BFD_RELOC_AVR_HI8_LDI
  4389. This is a 16 bit reloc for the AVR that stores 8 bit value (high 8
  4390. bit of data memory address) into 8 bit immediate value of LDI insn.
  4391. -- : BFD_RELOC_AVR_HH8_LDI
  4392. This is a 16 bit reloc for the AVR that stores 8 bit value (most
  4393. high 8 bit of program memory address) into 8 bit immediate value of
  4394. LDI insn.
  4395. -- : BFD_RELOC_AVR_MS8_LDI
  4396. This is a 16 bit reloc for the AVR that stores 8 bit value (most
  4397. high 8 bit of 32 bit value) into 8 bit immediate value of LDI insn.
  4398. -- : BFD_RELOC_AVR_LO8_LDI_NEG
  4399. This is a 16 bit reloc for the AVR that stores negated 8 bit value
  4400. (usually data memory address) into 8 bit immediate value of SUBI
  4401. insn.
  4402. -- : BFD_RELOC_AVR_HI8_LDI_NEG
  4403. This is a 16 bit reloc for the AVR that stores negated 8 bit value
  4404. (high 8 bit of data memory address) into 8 bit immediate value of
  4405. SUBI insn.
  4406. -- : BFD_RELOC_AVR_HH8_LDI_NEG
  4407. This is a 16 bit reloc for the AVR that stores negated 8 bit value
  4408. (most high 8 bit of program memory address) into 8 bit immediate
  4409. value of LDI or SUBI insn.
  4410. -- : BFD_RELOC_AVR_MS8_LDI_NEG
  4411. This is a 16 bit reloc for the AVR that stores negated 8 bit value
  4412. (msb of 32 bit value) into 8 bit immediate value of LDI insn.
  4413. -- : BFD_RELOC_AVR_LO8_LDI_PM
  4414. This is a 16 bit reloc for the AVR that stores 8 bit value (usually
  4415. command address) into 8 bit immediate value of LDI insn.
  4416. -- : BFD_RELOC_AVR_LO8_LDI_GS
  4417. This is a 16 bit reloc for the AVR that stores 8 bit value (command
  4418. address) into 8 bit immediate value of LDI insn. If the address is
  4419. beyond the 128k boundary, the linker inserts a jump stub for this
  4420. reloc in the lower 128k.
  4421. -- : BFD_RELOC_AVR_HI8_LDI_PM
  4422. This is a 16 bit reloc for the AVR that stores 8 bit value (high 8
  4423. bit of command address) into 8 bit immediate value of LDI insn.
  4424. -- : BFD_RELOC_AVR_HI8_LDI_GS
  4425. This is a 16 bit reloc for the AVR that stores 8 bit value (high 8
  4426. bit of command address) into 8 bit immediate value of LDI insn. If
  4427. the address is beyond the 128k boundary, the linker inserts a jump
  4428. stub for this reloc below 128k.
  4429. -- : BFD_RELOC_AVR_HH8_LDI_PM
  4430. This is a 16 bit reloc for the AVR that stores 8 bit value (most
  4431. high 8 bit of command address) into 8 bit immediate value of LDI
  4432. insn.
  4433. -- : BFD_RELOC_AVR_LO8_LDI_PM_NEG
  4434. This is a 16 bit reloc for the AVR that stores negated 8 bit value
  4435. (usually command address) into 8 bit immediate value of SUBI insn.
  4436. -- : BFD_RELOC_AVR_HI8_LDI_PM_NEG
  4437. This is a 16 bit reloc for the AVR that stores negated 8 bit value
  4438. (high 8 bit of 16 bit command address) into 8 bit immediate value
  4439. of SUBI insn.
  4440. -- : BFD_RELOC_AVR_HH8_LDI_PM_NEG
  4441. This is a 16 bit reloc for the AVR that stores negated 8 bit value
  4442. (high 6 bit of 22 bit command address) into 8 bit immediate value
  4443. of SUBI insn.
  4444. -- : BFD_RELOC_AVR_CALL
  4445. This is a 32 bit reloc for the AVR that stores 23 bit value into 22
  4446. bits.
  4447. -- : BFD_RELOC_AVR_LDI
  4448. This is a 16 bit reloc for the AVR that stores all needed bits for
  4449. absolute addressing with ldi with overflow check to linktime
  4450. -- : BFD_RELOC_AVR_6
  4451. This is a 6 bit reloc for the AVR that stores offset for ldd/std
  4452. instructions
  4453. -- : BFD_RELOC_AVR_6_ADIW
  4454. This is a 6 bit reloc for the AVR that stores offset for adiw/sbiw
  4455. instructions
  4456. -- : BFD_RELOC_AVR_8_LO
  4457. This is a 8 bit reloc for the AVR that stores bits 0..7 of a symbol
  4458. in .byte lo8(symbol)
  4459. -- : BFD_RELOC_AVR_8_HI
  4460. This is a 8 bit reloc for the AVR that stores bits 8..15 of a
  4461. symbol in .byte hi8(symbol)
  4462. -- : BFD_RELOC_AVR_8_HLO
  4463. This is a 8 bit reloc for the AVR that stores bits 16..23 of a
  4464. symbol in .byte hlo8(symbol)
  4465. -- : BFD_RELOC_AVR_DIFF8
  4466. -- : BFD_RELOC_AVR_DIFF16
  4467. -- : BFD_RELOC_AVR_DIFF32
  4468. AVR relocations to mark the difference of two local symbols. These
  4469. are only needed to support linker relaxation and can be ignored
  4470. when not relaxing. The field is set to the value of the difference
  4471. assuming no relaxation. The relocation encodes the position of the
  4472. second symbol so the linker can determine whether to adjust the
  4473. field value.
  4474. -- : BFD_RELOC_AVR_LDS_STS_16
  4475. This is a 7 bit reloc for the AVR that stores SRAM address for
  4476. 16bit lds and sts instructions supported only tiny core.
  4477. -- : BFD_RELOC_AVR_PORT6
  4478. This is a 6 bit reloc for the AVR that stores an I/O register
  4479. number for the IN and OUT instructions
  4480. -- : BFD_RELOC_AVR_PORT5
  4481. This is a 5 bit reloc for the AVR that stores an I/O register
  4482. number for the SBIC, SBIS, SBI and CBI instructions
  4483. -- : BFD_RELOC_RISCV_HI20
  4484. -- : BFD_RELOC_RISCV_PCREL_HI20
  4485. -- : BFD_RELOC_RISCV_PCREL_LO12_I
  4486. -- : BFD_RELOC_RISCV_PCREL_LO12_S
  4487. -- : BFD_RELOC_RISCV_LO12_I
  4488. -- : BFD_RELOC_RISCV_LO12_S
  4489. -- : BFD_RELOC_RISCV_GPREL12_I
  4490. -- : BFD_RELOC_RISCV_GPREL12_S
  4491. -- : BFD_RELOC_RISCV_TPREL_HI20
  4492. -- : BFD_RELOC_RISCV_TPREL_LO12_I
  4493. -- : BFD_RELOC_RISCV_TPREL_LO12_S
  4494. -- : BFD_RELOC_RISCV_TPREL_ADD
  4495. -- : BFD_RELOC_RISCV_CALL
  4496. -- : BFD_RELOC_RISCV_CALL_PLT
  4497. -- : BFD_RELOC_RISCV_ADD8
  4498. -- : BFD_RELOC_RISCV_ADD16
  4499. -- : BFD_RELOC_RISCV_ADD32
  4500. -- : BFD_RELOC_RISCV_ADD64
  4501. -- : BFD_RELOC_RISCV_SUB8
  4502. -- : BFD_RELOC_RISCV_SUB16
  4503. -- : BFD_RELOC_RISCV_SUB32
  4504. -- : BFD_RELOC_RISCV_SUB64
  4505. -- : BFD_RELOC_RISCV_GOT_HI20
  4506. -- : BFD_RELOC_RISCV_TLS_GOT_HI20
  4507. -- : BFD_RELOC_RISCV_TLS_GD_HI20
  4508. -- : BFD_RELOC_RISCV_JMP
  4509. -- : BFD_RELOC_RISCV_TLS_DTPMOD32
  4510. -- : BFD_RELOC_RISCV_TLS_DTPREL32
  4511. -- : BFD_RELOC_RISCV_TLS_DTPMOD64
  4512. -- : BFD_RELOC_RISCV_TLS_DTPREL64
  4513. -- : BFD_RELOC_RISCV_TLS_TPREL32
  4514. -- : BFD_RELOC_RISCV_TLS_TPREL64
  4515. -- : BFD_RELOC_RISCV_ALIGN
  4516. -- : BFD_RELOC_RISCV_RVC_BRANCH
  4517. -- : BFD_RELOC_RISCV_RVC_JUMP
  4518. -- : BFD_RELOC_RISCV_RVC_LUI
  4519. -- : BFD_RELOC_RISCV_GPREL_I
  4520. -- : BFD_RELOC_RISCV_GPREL_S
  4521. -- : BFD_RELOC_RISCV_TPREL_I
  4522. -- : BFD_RELOC_RISCV_TPREL_S
  4523. -- : BFD_RELOC_RISCV_RELAX
  4524. -- : BFD_RELOC_RISCV_CFA
  4525. -- : BFD_RELOC_RISCV_SUB6
  4526. -- : BFD_RELOC_RISCV_SET6
  4527. -- : BFD_RELOC_RISCV_SET8
  4528. -- : BFD_RELOC_RISCV_SET16
  4529. -- : BFD_RELOC_RISCV_SET32
  4530. RISC-V relocations.
  4531. -- : BFD_RELOC_RL78_NEG8
  4532. -- : BFD_RELOC_RL78_NEG16
  4533. -- : BFD_RELOC_RL78_NEG24
  4534. -- : BFD_RELOC_RL78_NEG32
  4535. -- : BFD_RELOC_RL78_16_OP
  4536. -- : BFD_RELOC_RL78_24_OP
  4537. -- : BFD_RELOC_RL78_32_OP
  4538. -- : BFD_RELOC_RL78_8U
  4539. -- : BFD_RELOC_RL78_16U
  4540. -- : BFD_RELOC_RL78_24U
  4541. -- : BFD_RELOC_RL78_DIR3U_PCREL
  4542. -- : BFD_RELOC_RL78_DIFF
  4543. -- : BFD_RELOC_RL78_GPRELB
  4544. -- : BFD_RELOC_RL78_GPRELW
  4545. -- : BFD_RELOC_RL78_GPRELL
  4546. -- : BFD_RELOC_RL78_SYM
  4547. -- : BFD_RELOC_RL78_OP_SUBTRACT
  4548. -- : BFD_RELOC_RL78_OP_NEG
  4549. -- : BFD_RELOC_RL78_OP_AND
  4550. -- : BFD_RELOC_RL78_OP_SHRA
  4551. -- : BFD_RELOC_RL78_ABS8
  4552. -- : BFD_RELOC_RL78_ABS16
  4553. -- : BFD_RELOC_RL78_ABS16_REV
  4554. -- : BFD_RELOC_RL78_ABS32
  4555. -- : BFD_RELOC_RL78_ABS32_REV
  4556. -- : BFD_RELOC_RL78_ABS16U
  4557. -- : BFD_RELOC_RL78_ABS16UW
  4558. -- : BFD_RELOC_RL78_ABS16UL
  4559. -- : BFD_RELOC_RL78_RELAX
  4560. -- : BFD_RELOC_RL78_HI16
  4561. -- : BFD_RELOC_RL78_HI8
  4562. -- : BFD_RELOC_RL78_LO16
  4563. -- : BFD_RELOC_RL78_CODE
  4564. -- : BFD_RELOC_RL78_SADDR
  4565. Renesas RL78 Relocations.
  4566. -- : BFD_RELOC_RX_NEG8
  4567. -- : BFD_RELOC_RX_NEG16
  4568. -- : BFD_RELOC_RX_NEG24
  4569. -- : BFD_RELOC_RX_NEG32
  4570. -- : BFD_RELOC_RX_16_OP
  4571. -- : BFD_RELOC_RX_24_OP
  4572. -- : BFD_RELOC_RX_32_OP
  4573. -- : BFD_RELOC_RX_8U
  4574. -- : BFD_RELOC_RX_16U
  4575. -- : BFD_RELOC_RX_24U
  4576. -- : BFD_RELOC_RX_DIR3U_PCREL
  4577. -- : BFD_RELOC_RX_DIFF
  4578. -- : BFD_RELOC_RX_GPRELB
  4579. -- : BFD_RELOC_RX_GPRELW
  4580. -- : BFD_RELOC_RX_GPRELL
  4581. -- : BFD_RELOC_RX_SYM
  4582. -- : BFD_RELOC_RX_OP_SUBTRACT
  4583. -- : BFD_RELOC_RX_OP_NEG
  4584. -- : BFD_RELOC_RX_ABS8
  4585. -- : BFD_RELOC_RX_ABS16
  4586. -- : BFD_RELOC_RX_ABS16_REV
  4587. -- : BFD_RELOC_RX_ABS32
  4588. -- : BFD_RELOC_RX_ABS32_REV
  4589. -- : BFD_RELOC_RX_ABS16U
  4590. -- : BFD_RELOC_RX_ABS16UW
  4591. -- : BFD_RELOC_RX_ABS16UL
  4592. -- : BFD_RELOC_RX_RELAX
  4593. Renesas RX Relocations.
  4594. -- : BFD_RELOC_390_12
  4595. Direct 12 bit.
  4596. -- : BFD_RELOC_390_GOT12
  4597. 12 bit GOT offset.
  4598. -- : BFD_RELOC_390_PLT32
  4599. 32 bit PC relative PLT address.
  4600. -- : BFD_RELOC_390_COPY
  4601. Copy symbol at runtime.
  4602. -- : BFD_RELOC_390_GLOB_DAT
  4603. Create GOT entry.
  4604. -- : BFD_RELOC_390_JMP_SLOT
  4605. Create PLT entry.
  4606. -- : BFD_RELOC_390_RELATIVE
  4607. Adjust by program base.
  4608. -- : BFD_RELOC_390_GOTPC
  4609. 32 bit PC relative offset to GOT.
  4610. -- : BFD_RELOC_390_GOT16
  4611. 16 bit GOT offset.
  4612. -- : BFD_RELOC_390_PC12DBL
  4613. PC relative 12 bit shifted by 1.
  4614. -- : BFD_RELOC_390_PLT12DBL
  4615. 12 bit PC rel. PLT shifted by 1.
  4616. -- : BFD_RELOC_390_PC16DBL
  4617. PC relative 16 bit shifted by 1.
  4618. -- : BFD_RELOC_390_PLT16DBL
  4619. 16 bit PC rel. PLT shifted by 1.
  4620. -- : BFD_RELOC_390_PC24DBL
  4621. PC relative 24 bit shifted by 1.
  4622. -- : BFD_RELOC_390_PLT24DBL
  4623. 24 bit PC rel. PLT shifted by 1.
  4624. -- : BFD_RELOC_390_PC32DBL
  4625. PC relative 32 bit shifted by 1.
  4626. -- : BFD_RELOC_390_PLT32DBL
  4627. 32 bit PC rel. PLT shifted by 1.
  4628. -- : BFD_RELOC_390_GOTPCDBL
  4629. 32 bit PC rel. GOT shifted by 1.
  4630. -- : BFD_RELOC_390_GOT64
  4631. 64 bit GOT offset.
  4632. -- : BFD_RELOC_390_PLT64
  4633. 64 bit PC relative PLT address.
  4634. -- : BFD_RELOC_390_GOTENT
  4635. 32 bit rel. offset to GOT entry.
  4636. -- : BFD_RELOC_390_GOTOFF64
  4637. 64 bit offset to GOT.
  4638. -- : BFD_RELOC_390_GOTPLT12
  4639. 12-bit offset to symbol-entry within GOT, with PLT handling.
  4640. -- : BFD_RELOC_390_GOTPLT16
  4641. 16-bit offset to symbol-entry within GOT, with PLT handling.
  4642. -- : BFD_RELOC_390_GOTPLT32
  4643. 32-bit offset to symbol-entry within GOT, with PLT handling.
  4644. -- : BFD_RELOC_390_GOTPLT64
  4645. 64-bit offset to symbol-entry within GOT, with PLT handling.
  4646. -- : BFD_RELOC_390_GOTPLTENT
  4647. 32-bit rel. offset to symbol-entry within GOT, with PLT handling.
  4648. -- : BFD_RELOC_390_PLTOFF16
  4649. 16-bit rel. offset from the GOT to a PLT entry.
  4650. -- : BFD_RELOC_390_PLTOFF32
  4651. 32-bit rel. offset from the GOT to a PLT entry.
  4652. -- : BFD_RELOC_390_PLTOFF64
  4653. 64-bit rel. offset from the GOT to a PLT entry.
  4654. -- : BFD_RELOC_390_TLS_LOAD
  4655. -- : BFD_RELOC_390_TLS_GDCALL
  4656. -- : BFD_RELOC_390_TLS_LDCALL
  4657. -- : BFD_RELOC_390_TLS_GD32
  4658. -- : BFD_RELOC_390_TLS_GD64
  4659. -- : BFD_RELOC_390_TLS_GOTIE12
  4660. -- : BFD_RELOC_390_TLS_GOTIE32
  4661. -- : BFD_RELOC_390_TLS_GOTIE64
  4662. -- : BFD_RELOC_390_TLS_LDM32
  4663. -- : BFD_RELOC_390_TLS_LDM64
  4664. -- : BFD_RELOC_390_TLS_IE32
  4665. -- : BFD_RELOC_390_TLS_IE64
  4666. -- : BFD_RELOC_390_TLS_IEENT
  4667. -- : BFD_RELOC_390_TLS_LE32
  4668. -- : BFD_RELOC_390_TLS_LE64
  4669. -- : BFD_RELOC_390_TLS_LDO32
  4670. -- : BFD_RELOC_390_TLS_LDO64
  4671. -- : BFD_RELOC_390_TLS_DTPMOD
  4672. -- : BFD_RELOC_390_TLS_DTPOFF
  4673. -- : BFD_RELOC_390_TLS_TPOFF
  4674. s390 tls relocations.
  4675. -- : BFD_RELOC_390_20
  4676. -- : BFD_RELOC_390_GOT20
  4677. -- : BFD_RELOC_390_GOTPLT20
  4678. -- : BFD_RELOC_390_TLS_GOTIE20
  4679. Long displacement extension.
  4680. -- : BFD_RELOC_390_IRELATIVE
  4681. STT_GNU_IFUNC relocation.
  4682. -- : BFD_RELOC_SCORE_GPREL15
  4683. Score relocations Low 16 bit for load/store
  4684. -- : BFD_RELOC_SCORE_DUMMY2
  4685. -- : BFD_RELOC_SCORE_JMP
  4686. This is a 24-bit reloc with the right 1 bit assumed to be 0
  4687. -- : BFD_RELOC_SCORE_BRANCH
  4688. This is a 19-bit reloc with the right 1 bit assumed to be 0
  4689. -- : BFD_RELOC_SCORE_IMM30
  4690. This is a 32-bit reloc for 48-bit instructions.
  4691. -- : BFD_RELOC_SCORE_IMM32
  4692. This is a 32-bit reloc for 48-bit instructions.
  4693. -- : BFD_RELOC_SCORE16_JMP
  4694. This is a 11-bit reloc with the right 1 bit assumed to be 0
  4695. -- : BFD_RELOC_SCORE16_BRANCH
  4696. This is a 8-bit reloc with the right 1 bit assumed to be 0
  4697. -- : BFD_RELOC_SCORE_BCMP
  4698. This is a 9-bit reloc with the right 1 bit assumed to be 0
  4699. -- : BFD_RELOC_SCORE_GOT15
  4700. -- : BFD_RELOC_SCORE_GOT_LO16
  4701. -- : BFD_RELOC_SCORE_CALL15
  4702. -- : BFD_RELOC_SCORE_DUMMY_HI16
  4703. Undocumented Score relocs
  4704. -- : BFD_RELOC_IP2K_FR9
  4705. Scenix IP2K - 9-bit register number / data address
  4706. -- : BFD_RELOC_IP2K_BANK
  4707. Scenix IP2K - 4-bit register/data bank number
  4708. -- : BFD_RELOC_IP2K_ADDR16CJP
  4709. Scenix IP2K - low 13 bits of instruction word address
  4710. -- : BFD_RELOC_IP2K_PAGE3
  4711. Scenix IP2K - high 3 bits of instruction word address
  4712. -- : BFD_RELOC_IP2K_LO8DATA
  4713. -- : BFD_RELOC_IP2K_HI8DATA
  4714. -- : BFD_RELOC_IP2K_EX8DATA
  4715. Scenix IP2K - ext/low/high 8 bits of data address
  4716. -- : BFD_RELOC_IP2K_LO8INSN
  4717. -- : BFD_RELOC_IP2K_HI8INSN
  4718. Scenix IP2K - low/high 8 bits of instruction word address
  4719. -- : BFD_RELOC_IP2K_PC_SKIP
  4720. Scenix IP2K - even/odd PC modifier to modify snb pcl.0
  4721. -- : BFD_RELOC_IP2K_TEXT
  4722. Scenix IP2K - 16 bit word address in text section.
  4723. -- : BFD_RELOC_IP2K_FR_OFFSET
  4724. Scenix IP2K - 7-bit sp or dp offset
  4725. -- : BFD_RELOC_VPE4KMATH_DATA
  4726. -- : BFD_RELOC_VPE4KMATH_INSN
  4727. Scenix VPE4K coprocessor - data/insn-space addressing
  4728. -- : BFD_RELOC_VTABLE_INHERIT
  4729. -- : BFD_RELOC_VTABLE_ENTRY
  4730. These two relocations are used by the linker to determine which of
  4731. the entries in a C++ virtual function table are actually used.
  4732. When the -gc-sections option is given, the linker will zero out the
  4733. entries that are not used, so that the code for those functions
  4734. need not be included in the output.
  4735. VTABLE_INHERIT is a zero-space relocation used to describe to the
  4736. linker the inheritance tree of a C++ virtual function table. The
  4737. relocation's symbol should be the parent class' vtable, and the
  4738. relocation should be located at the child vtable.
  4739. VTABLE_ENTRY is a zero-space relocation that describes the use of a
  4740. virtual function table entry. The reloc's symbol should refer to
  4741. the table of the class mentioned in the code. Off of that base, an
  4742. offset describes the entry that is being used. For Rela hosts,
  4743. this offset is stored in the reloc's addend. For Rel hosts, we are
  4744. forced to put this offset in the reloc's section offset.
  4745. -- : BFD_RELOC_IA64_IMM14
  4746. -- : BFD_RELOC_IA64_IMM22
  4747. -- : BFD_RELOC_IA64_IMM64
  4748. -- : BFD_RELOC_IA64_DIR32MSB
  4749. -- : BFD_RELOC_IA64_DIR32LSB
  4750. -- : BFD_RELOC_IA64_DIR64MSB
  4751. -- : BFD_RELOC_IA64_DIR64LSB
  4752. -- : BFD_RELOC_IA64_GPREL22
  4753. -- : BFD_RELOC_IA64_GPREL64I
  4754. -- : BFD_RELOC_IA64_GPREL32MSB
  4755. -- : BFD_RELOC_IA64_GPREL32LSB
  4756. -- : BFD_RELOC_IA64_GPREL64MSB
  4757. -- : BFD_RELOC_IA64_GPREL64LSB
  4758. -- : BFD_RELOC_IA64_LTOFF22
  4759. -- : BFD_RELOC_IA64_LTOFF64I
  4760. -- : BFD_RELOC_IA64_PLTOFF22
  4761. -- : BFD_RELOC_IA64_PLTOFF64I
  4762. -- : BFD_RELOC_IA64_PLTOFF64MSB
  4763. -- : BFD_RELOC_IA64_PLTOFF64LSB
  4764. -- : BFD_RELOC_IA64_FPTR64I
  4765. -- : BFD_RELOC_IA64_FPTR32MSB
  4766. -- : BFD_RELOC_IA64_FPTR32LSB
  4767. -- : BFD_RELOC_IA64_FPTR64MSB
  4768. -- : BFD_RELOC_IA64_FPTR64LSB
  4769. -- : BFD_RELOC_IA64_PCREL21B
  4770. -- : BFD_RELOC_IA64_PCREL21BI
  4771. -- : BFD_RELOC_IA64_PCREL21M
  4772. -- : BFD_RELOC_IA64_PCREL21F
  4773. -- : BFD_RELOC_IA64_PCREL22
  4774. -- : BFD_RELOC_IA64_PCREL60B
  4775. -- : BFD_RELOC_IA64_PCREL64I
  4776. -- : BFD_RELOC_IA64_PCREL32MSB
  4777. -- : BFD_RELOC_IA64_PCREL32LSB
  4778. -- : BFD_RELOC_IA64_PCREL64MSB
  4779. -- : BFD_RELOC_IA64_PCREL64LSB
  4780. -- : BFD_RELOC_IA64_LTOFF_FPTR22
  4781. -- : BFD_RELOC_IA64_LTOFF_FPTR64I
  4782. -- : BFD_RELOC_IA64_LTOFF_FPTR32MSB
  4783. -- : BFD_RELOC_IA64_LTOFF_FPTR32LSB
  4784. -- : BFD_RELOC_IA64_LTOFF_FPTR64MSB
  4785. -- : BFD_RELOC_IA64_LTOFF_FPTR64LSB
  4786. -- : BFD_RELOC_IA64_SEGREL32MSB
  4787. -- : BFD_RELOC_IA64_SEGREL32LSB
  4788. -- : BFD_RELOC_IA64_SEGREL64MSB
  4789. -- : BFD_RELOC_IA64_SEGREL64LSB
  4790. -- : BFD_RELOC_IA64_SECREL32MSB
  4791. -- : BFD_RELOC_IA64_SECREL32LSB
  4792. -- : BFD_RELOC_IA64_SECREL64MSB
  4793. -- : BFD_RELOC_IA64_SECREL64LSB
  4794. -- : BFD_RELOC_IA64_REL32MSB
  4795. -- : BFD_RELOC_IA64_REL32LSB
  4796. -- : BFD_RELOC_IA64_REL64MSB
  4797. -- : BFD_RELOC_IA64_REL64LSB
  4798. -- : BFD_RELOC_IA64_LTV32MSB
  4799. -- : BFD_RELOC_IA64_LTV32LSB
  4800. -- : BFD_RELOC_IA64_LTV64MSB
  4801. -- : BFD_RELOC_IA64_LTV64LSB
  4802. -- : BFD_RELOC_IA64_IPLTMSB
  4803. -- : BFD_RELOC_IA64_IPLTLSB
  4804. -- : BFD_RELOC_IA64_COPY
  4805. -- : BFD_RELOC_IA64_LTOFF22X
  4806. -- : BFD_RELOC_IA64_LDXMOV
  4807. -- : BFD_RELOC_IA64_TPREL14
  4808. -- : BFD_RELOC_IA64_TPREL22
  4809. -- : BFD_RELOC_IA64_TPREL64I
  4810. -- : BFD_RELOC_IA64_TPREL64MSB
  4811. -- : BFD_RELOC_IA64_TPREL64LSB
  4812. -- : BFD_RELOC_IA64_LTOFF_TPREL22
  4813. -- : BFD_RELOC_IA64_DTPMOD64MSB
  4814. -- : BFD_RELOC_IA64_DTPMOD64LSB
  4815. -- : BFD_RELOC_IA64_LTOFF_DTPMOD22
  4816. -- : BFD_RELOC_IA64_DTPREL14
  4817. -- : BFD_RELOC_IA64_DTPREL22
  4818. -- : BFD_RELOC_IA64_DTPREL64I
  4819. -- : BFD_RELOC_IA64_DTPREL32MSB
  4820. -- : BFD_RELOC_IA64_DTPREL32LSB
  4821. -- : BFD_RELOC_IA64_DTPREL64MSB
  4822. -- : BFD_RELOC_IA64_DTPREL64LSB
  4823. -- : BFD_RELOC_IA64_LTOFF_DTPREL22
  4824. Intel IA64 Relocations.
  4825. -- : BFD_RELOC_M68HC11_HI8
  4826. Motorola 68HC11 reloc. This is the 8 bit high part of an absolute
  4827. address.
  4828. -- : BFD_RELOC_M68HC11_LO8
  4829. Motorola 68HC11 reloc. This is the 8 bit low part of an absolute
  4830. address.
  4831. -- : BFD_RELOC_M68HC11_3B
  4832. Motorola 68HC11 reloc. This is the 3 bit of a value.
  4833. -- : BFD_RELOC_M68HC11_RL_JUMP
  4834. Motorola 68HC11 reloc. This reloc marks the beginning of a
  4835. jump/call instruction. It is used for linker relaxation to
  4836. correctly identify beginning of instruction and change some
  4837. branches to use PC-relative addressing mode.
  4838. -- : BFD_RELOC_M68HC11_RL_GROUP
  4839. Motorola 68HC11 reloc. This reloc marks a group of several
  4840. instructions that gcc generates and for which the linker relaxation
  4841. pass can modify and/or remove some of them.
  4842. -- : BFD_RELOC_M68HC11_LO16
  4843. Motorola 68HC11 reloc. This is the 16-bit lower part of an
  4844. address. It is used for 'call' instruction to specify the symbol
  4845. address without any special transformation (due to memory bank
  4846. window).
  4847. -- : BFD_RELOC_M68HC11_PAGE
  4848. Motorola 68HC11 reloc. This is a 8-bit reloc that specifies the
  4849. page number of an address. It is used by 'call' instruction to
  4850. specify the page number of the symbol.
  4851. -- : BFD_RELOC_M68HC11_24
  4852. Motorola 68HC11 reloc. This is a 24-bit reloc that represents the
  4853. address with a 16-bit value and a 8-bit page number. The symbol
  4854. address is transformed to follow the 16K memory bank of 68HC12
  4855. (seen as mapped in the window).
  4856. -- : BFD_RELOC_M68HC12_5B
  4857. Motorola 68HC12 reloc. This is the 5 bits of a value.
  4858. -- : BFD_RELOC_XGATE_RL_JUMP
  4859. Freescale XGATE reloc. This reloc marks the beginning of a bra/jal
  4860. instruction.
  4861. -- : BFD_RELOC_XGATE_RL_GROUP
  4862. Freescale XGATE reloc. This reloc marks a group of several
  4863. instructions that gcc generates and for which the linker relaxation
  4864. pass can modify and/or remove some of them.
  4865. -- : BFD_RELOC_XGATE_LO16
  4866. Freescale XGATE reloc. This is the 16-bit lower part of an
  4867. address. It is used for the '16-bit' instructions.
  4868. -- : BFD_RELOC_XGATE_GPAGE
  4869. Freescale XGATE reloc.
  4870. -- : BFD_RELOC_XGATE_24
  4871. Freescale XGATE reloc.
  4872. -- : BFD_RELOC_XGATE_PCREL_9
  4873. Freescale XGATE reloc. This is a 9-bit pc-relative reloc.
  4874. -- : BFD_RELOC_XGATE_PCREL_10
  4875. Freescale XGATE reloc. This is a 10-bit pc-relative reloc.
  4876. -- : BFD_RELOC_XGATE_IMM8_LO
  4877. Freescale XGATE reloc. This is the 16-bit lower part of an
  4878. address. It is used for the '16-bit' instructions.
  4879. -- : BFD_RELOC_XGATE_IMM8_HI
  4880. Freescale XGATE reloc. This is the 16-bit higher part of an
  4881. address. It is used for the '16-bit' instructions.
  4882. -- : BFD_RELOC_XGATE_IMM3
  4883. Freescale XGATE reloc. This is a 3-bit pc-relative reloc.
  4884. -- : BFD_RELOC_XGATE_IMM4
  4885. Freescale XGATE reloc. This is a 4-bit pc-relative reloc.
  4886. -- : BFD_RELOC_XGATE_IMM5
  4887. Freescale XGATE reloc. This is a 5-bit pc-relative reloc.
  4888. -- : BFD_RELOC_M68HC12_9B
  4889. Motorola 68HC12 reloc. This is the 9 bits of a value.
  4890. -- : BFD_RELOC_M68HC12_16B
  4891. Motorola 68HC12 reloc. This is the 16 bits of a value.
  4892. -- : BFD_RELOC_M68HC12_9_PCREL
  4893. Motorola 68HC12/XGATE reloc. This is a PCREL9 branch.
  4894. -- : BFD_RELOC_M68HC12_10_PCREL
  4895. Motorola 68HC12/XGATE reloc. This is a PCREL10 branch.
  4896. -- : BFD_RELOC_M68HC12_LO8XG
  4897. Motorola 68HC12/XGATE reloc. This is the 8 bit low part of an
  4898. absolute address and immediately precedes a matching HI8XG part.
  4899. -- : BFD_RELOC_M68HC12_HI8XG
  4900. Motorola 68HC12/XGATE reloc. This is the 8 bit high part of an
  4901. absolute address and immediately follows a matching LO8XG part.
  4902. -- : BFD_RELOC_16C_NUM08
  4903. -- : BFD_RELOC_16C_NUM08_C
  4904. -- : BFD_RELOC_16C_NUM16
  4905. -- : BFD_RELOC_16C_NUM16_C
  4906. -- : BFD_RELOC_16C_NUM32
  4907. -- : BFD_RELOC_16C_NUM32_C
  4908. -- : BFD_RELOC_16C_DISP04
  4909. -- : BFD_RELOC_16C_DISP04_C
  4910. -- : BFD_RELOC_16C_DISP08
  4911. -- : BFD_RELOC_16C_DISP08_C
  4912. -- : BFD_RELOC_16C_DISP16
  4913. -- : BFD_RELOC_16C_DISP16_C
  4914. -- : BFD_RELOC_16C_DISP24
  4915. -- : BFD_RELOC_16C_DISP24_C
  4916. -- : BFD_RELOC_16C_DISP24a
  4917. -- : BFD_RELOC_16C_DISP24a_C
  4918. -- : BFD_RELOC_16C_REG04
  4919. -- : BFD_RELOC_16C_REG04_C
  4920. -- : BFD_RELOC_16C_REG04a
  4921. -- : BFD_RELOC_16C_REG04a_C
  4922. -- : BFD_RELOC_16C_REG14
  4923. -- : BFD_RELOC_16C_REG14_C
  4924. -- : BFD_RELOC_16C_REG16
  4925. -- : BFD_RELOC_16C_REG16_C
  4926. -- : BFD_RELOC_16C_REG20
  4927. -- : BFD_RELOC_16C_REG20_C
  4928. -- : BFD_RELOC_16C_ABS20
  4929. -- : BFD_RELOC_16C_ABS20_C
  4930. -- : BFD_RELOC_16C_ABS24
  4931. -- : BFD_RELOC_16C_ABS24_C
  4932. -- : BFD_RELOC_16C_IMM04
  4933. -- : BFD_RELOC_16C_IMM04_C
  4934. -- : BFD_RELOC_16C_IMM16
  4935. -- : BFD_RELOC_16C_IMM16_C
  4936. -- : BFD_RELOC_16C_IMM20
  4937. -- : BFD_RELOC_16C_IMM20_C
  4938. -- : BFD_RELOC_16C_IMM24
  4939. -- : BFD_RELOC_16C_IMM24_C
  4940. -- : BFD_RELOC_16C_IMM32
  4941. -- : BFD_RELOC_16C_IMM32_C
  4942. NS CR16C Relocations.
  4943. -- : BFD_RELOC_CR16_NUM8
  4944. -- : BFD_RELOC_CR16_NUM16
  4945. -- : BFD_RELOC_CR16_NUM32
  4946. -- : BFD_RELOC_CR16_NUM32a
  4947. -- : BFD_RELOC_CR16_REGREL0
  4948. -- : BFD_RELOC_CR16_REGREL4
  4949. -- : BFD_RELOC_CR16_REGREL4a
  4950. -- : BFD_RELOC_CR16_REGREL14
  4951. -- : BFD_RELOC_CR16_REGREL14a
  4952. -- : BFD_RELOC_CR16_REGREL16
  4953. -- : BFD_RELOC_CR16_REGREL20
  4954. -- : BFD_RELOC_CR16_REGREL20a
  4955. -- : BFD_RELOC_CR16_ABS20
  4956. -- : BFD_RELOC_CR16_ABS24
  4957. -- : BFD_RELOC_CR16_IMM4
  4958. -- : BFD_RELOC_CR16_IMM8
  4959. -- : BFD_RELOC_CR16_IMM16
  4960. -- : BFD_RELOC_CR16_IMM20
  4961. -- : BFD_RELOC_CR16_IMM24
  4962. -- : BFD_RELOC_CR16_IMM32
  4963. -- : BFD_RELOC_CR16_IMM32a
  4964. -- : BFD_RELOC_CR16_DISP4
  4965. -- : BFD_RELOC_CR16_DISP8
  4966. -- : BFD_RELOC_CR16_DISP16
  4967. -- : BFD_RELOC_CR16_DISP20
  4968. -- : BFD_RELOC_CR16_DISP24
  4969. -- : BFD_RELOC_CR16_DISP24a
  4970. -- : BFD_RELOC_CR16_SWITCH8
  4971. -- : BFD_RELOC_CR16_SWITCH16
  4972. -- : BFD_RELOC_CR16_SWITCH32
  4973. -- : BFD_RELOC_CR16_GOT_REGREL20
  4974. -- : BFD_RELOC_CR16_GOTC_REGREL20
  4975. -- : BFD_RELOC_CR16_GLOB_DAT
  4976. NS CR16 Relocations.
  4977. -- : BFD_RELOC_CRX_REL4
  4978. -- : BFD_RELOC_CRX_REL8
  4979. -- : BFD_RELOC_CRX_REL8_CMP
  4980. -- : BFD_RELOC_CRX_REL16
  4981. -- : BFD_RELOC_CRX_REL24
  4982. -- : BFD_RELOC_CRX_REL32
  4983. -- : BFD_RELOC_CRX_REGREL12
  4984. -- : BFD_RELOC_CRX_REGREL22
  4985. -- : BFD_RELOC_CRX_REGREL28
  4986. -- : BFD_RELOC_CRX_REGREL32
  4987. -- : BFD_RELOC_CRX_ABS16
  4988. -- : BFD_RELOC_CRX_ABS32
  4989. -- : BFD_RELOC_CRX_NUM8
  4990. -- : BFD_RELOC_CRX_NUM16
  4991. -- : BFD_RELOC_CRX_NUM32
  4992. -- : BFD_RELOC_CRX_IMM16
  4993. -- : BFD_RELOC_CRX_IMM32
  4994. -- : BFD_RELOC_CRX_SWITCH8
  4995. -- : BFD_RELOC_CRX_SWITCH16
  4996. -- : BFD_RELOC_CRX_SWITCH32
  4997. NS CRX Relocations.
  4998. -- : BFD_RELOC_CRIS_BDISP8
  4999. -- : BFD_RELOC_CRIS_UNSIGNED_5
  5000. -- : BFD_RELOC_CRIS_SIGNED_6
  5001. -- : BFD_RELOC_CRIS_UNSIGNED_6
  5002. -- : BFD_RELOC_CRIS_SIGNED_8
  5003. -- : BFD_RELOC_CRIS_UNSIGNED_8
  5004. -- : BFD_RELOC_CRIS_SIGNED_16
  5005. -- : BFD_RELOC_CRIS_UNSIGNED_16
  5006. -- : BFD_RELOC_CRIS_LAPCQ_OFFSET
  5007. -- : BFD_RELOC_CRIS_UNSIGNED_4
  5008. These relocs are only used within the CRIS assembler. They are not
  5009. (at present) written to any object files.
  5010. -- : BFD_RELOC_CRIS_COPY
  5011. -- : BFD_RELOC_CRIS_GLOB_DAT
  5012. -- : BFD_RELOC_CRIS_JUMP_SLOT
  5013. -- : BFD_RELOC_CRIS_RELATIVE
  5014. Relocs used in ELF shared libraries for CRIS.
  5015. -- : BFD_RELOC_CRIS_32_GOT
  5016. 32-bit offset to symbol-entry within GOT.
  5017. -- : BFD_RELOC_CRIS_16_GOT
  5018. 16-bit offset to symbol-entry within GOT.
  5019. -- : BFD_RELOC_CRIS_32_GOTPLT
  5020. 32-bit offset to symbol-entry within GOT, with PLT handling.
  5021. -- : BFD_RELOC_CRIS_16_GOTPLT
  5022. 16-bit offset to symbol-entry within GOT, with PLT handling.
  5023. -- : BFD_RELOC_CRIS_32_GOTREL
  5024. 32-bit offset to symbol, relative to GOT.
  5025. -- : BFD_RELOC_CRIS_32_PLT_GOTREL
  5026. 32-bit offset to symbol with PLT entry, relative to GOT.
  5027. -- : BFD_RELOC_CRIS_32_PLT_PCREL
  5028. 32-bit offset to symbol with PLT entry, relative to this
  5029. relocation.
  5030. -- : BFD_RELOC_CRIS_32_GOT_GD
  5031. -- : BFD_RELOC_CRIS_16_GOT_GD
  5032. -- : BFD_RELOC_CRIS_32_GD
  5033. -- : BFD_RELOC_CRIS_DTP
  5034. -- : BFD_RELOC_CRIS_32_DTPREL
  5035. -- : BFD_RELOC_CRIS_16_DTPREL
  5036. -- : BFD_RELOC_CRIS_32_GOT_TPREL
  5037. -- : BFD_RELOC_CRIS_16_GOT_TPREL
  5038. -- : BFD_RELOC_CRIS_32_TPREL
  5039. -- : BFD_RELOC_CRIS_16_TPREL
  5040. -- : BFD_RELOC_CRIS_DTPMOD
  5041. -- : BFD_RELOC_CRIS_32_IE
  5042. Relocs used in TLS code for CRIS.
  5043. -- : BFD_RELOC_860_COPY
  5044. -- : BFD_RELOC_860_GLOB_DAT
  5045. -- : BFD_RELOC_860_JUMP_SLOT
  5046. -- : BFD_RELOC_860_RELATIVE
  5047. -- : BFD_RELOC_860_PC26
  5048. -- : BFD_RELOC_860_PLT26
  5049. -- : BFD_RELOC_860_PC16
  5050. -- : BFD_RELOC_860_LOW0
  5051. -- : BFD_RELOC_860_SPLIT0
  5052. -- : BFD_RELOC_860_LOW1
  5053. -- : BFD_RELOC_860_SPLIT1
  5054. -- : BFD_RELOC_860_LOW2
  5055. -- : BFD_RELOC_860_SPLIT2
  5056. -- : BFD_RELOC_860_LOW3
  5057. -- : BFD_RELOC_860_LOGOT0
  5058. -- : BFD_RELOC_860_SPGOT0
  5059. -- : BFD_RELOC_860_LOGOT1
  5060. -- : BFD_RELOC_860_SPGOT1
  5061. -- : BFD_RELOC_860_LOGOTOFF0
  5062. -- : BFD_RELOC_860_SPGOTOFF0
  5063. -- : BFD_RELOC_860_LOGOTOFF1
  5064. -- : BFD_RELOC_860_SPGOTOFF1
  5065. -- : BFD_RELOC_860_LOGOTOFF2
  5066. -- : BFD_RELOC_860_LOGOTOFF3
  5067. -- : BFD_RELOC_860_LOPC
  5068. -- : BFD_RELOC_860_HIGHADJ
  5069. -- : BFD_RELOC_860_HAGOT
  5070. -- : BFD_RELOC_860_HAGOTOFF
  5071. -- : BFD_RELOC_860_HAPC
  5072. -- : BFD_RELOC_860_HIGH
  5073. -- : BFD_RELOC_860_HIGOT
  5074. -- : BFD_RELOC_860_HIGOTOFF
  5075. Intel i860 Relocations.
  5076. -- : BFD_RELOC_OR1K_REL_26
  5077. -- : BFD_RELOC_OR1K_GOTPC_HI16
  5078. -- : BFD_RELOC_OR1K_GOTPC_LO16
  5079. -- : BFD_RELOC_OR1K_GOT16
  5080. -- : BFD_RELOC_OR1K_PLT26
  5081. -- : BFD_RELOC_OR1K_GOTOFF_HI16
  5082. -- : BFD_RELOC_OR1K_GOTOFF_LO16
  5083. -- : BFD_RELOC_OR1K_COPY
  5084. -- : BFD_RELOC_OR1K_GLOB_DAT
  5085. -- : BFD_RELOC_OR1K_JMP_SLOT
  5086. -- : BFD_RELOC_OR1K_RELATIVE
  5087. -- : BFD_RELOC_OR1K_TLS_GD_HI16
  5088. -- : BFD_RELOC_OR1K_TLS_GD_LO16
  5089. -- : BFD_RELOC_OR1K_TLS_LDM_HI16
  5090. -- : BFD_RELOC_OR1K_TLS_LDM_LO16
  5091. -- : BFD_RELOC_OR1K_TLS_LDO_HI16
  5092. -- : BFD_RELOC_OR1K_TLS_LDO_LO16
  5093. -- : BFD_RELOC_OR1K_TLS_IE_HI16
  5094. -- : BFD_RELOC_OR1K_TLS_IE_LO16
  5095. -- : BFD_RELOC_OR1K_TLS_LE_HI16
  5096. -- : BFD_RELOC_OR1K_TLS_LE_LO16
  5097. -- : BFD_RELOC_OR1K_TLS_TPOFF
  5098. -- : BFD_RELOC_OR1K_TLS_DTPOFF
  5099. -- : BFD_RELOC_OR1K_TLS_DTPMOD
  5100. OpenRISC 1000 Relocations.
  5101. -- : BFD_RELOC_H8_DIR16A8
  5102. -- : BFD_RELOC_H8_DIR16R8
  5103. -- : BFD_RELOC_H8_DIR24A8
  5104. -- : BFD_RELOC_H8_DIR24R8
  5105. -- : BFD_RELOC_H8_DIR32A16
  5106. -- : BFD_RELOC_H8_DISP32A16
  5107. H8 elf Relocations.
  5108. -- : BFD_RELOC_XSTORMY16_REL_12
  5109. -- : BFD_RELOC_XSTORMY16_12
  5110. -- : BFD_RELOC_XSTORMY16_24
  5111. -- : BFD_RELOC_XSTORMY16_FPTR16
  5112. Sony Xstormy16 Relocations.
  5113. -- : BFD_RELOC_RELC
  5114. Self-describing complex relocations.
  5115. -- : BFD_RELOC_XC16X_PAG
  5116. -- : BFD_RELOC_XC16X_POF
  5117. -- : BFD_RELOC_XC16X_SEG
  5118. -- : BFD_RELOC_XC16X_SOF
  5119. Infineon Relocations.
  5120. -- : BFD_RELOC_VAX_GLOB_DAT
  5121. -- : BFD_RELOC_VAX_JMP_SLOT
  5122. -- : BFD_RELOC_VAX_RELATIVE
  5123. Relocations used by VAX ELF.
  5124. -- : BFD_RELOC_MT_PC16
  5125. Morpho MT - 16 bit immediate relocation.
  5126. -- : BFD_RELOC_MT_HI16
  5127. Morpho MT - Hi 16 bits of an address.
  5128. -- : BFD_RELOC_MT_LO16
  5129. Morpho MT - Low 16 bits of an address.
  5130. -- : BFD_RELOC_MT_GNU_VTINHERIT
  5131. Morpho MT - Used to tell the linker which vtable entries are used.
  5132. -- : BFD_RELOC_MT_GNU_VTENTRY
  5133. Morpho MT - Used to tell the linker which vtable entries are used.
  5134. -- : BFD_RELOC_MT_PCINSN8
  5135. Morpho MT - 8 bit immediate relocation.
  5136. -- : BFD_RELOC_MSP430_10_PCREL
  5137. -- : BFD_RELOC_MSP430_16_PCREL
  5138. -- : BFD_RELOC_MSP430_16
  5139. -- : BFD_RELOC_MSP430_16_PCREL_BYTE
  5140. -- : BFD_RELOC_MSP430_16_BYTE
  5141. -- : BFD_RELOC_MSP430_2X_PCREL
  5142. -- : BFD_RELOC_MSP430_RL_PCREL
  5143. -- : BFD_RELOC_MSP430_ABS8
  5144. -- : BFD_RELOC_MSP430X_PCR20_EXT_SRC
  5145. -- : BFD_RELOC_MSP430X_PCR20_EXT_DST
  5146. -- : BFD_RELOC_MSP430X_PCR20_EXT_ODST
  5147. -- : BFD_RELOC_MSP430X_ABS20_EXT_SRC
  5148. -- : BFD_RELOC_MSP430X_ABS20_EXT_DST
  5149. -- : BFD_RELOC_MSP430X_ABS20_EXT_ODST
  5150. -- : BFD_RELOC_MSP430X_ABS20_ADR_SRC
  5151. -- : BFD_RELOC_MSP430X_ABS20_ADR_DST
  5152. -- : BFD_RELOC_MSP430X_PCR16
  5153. -- : BFD_RELOC_MSP430X_PCR20_CALL
  5154. -- : BFD_RELOC_MSP430X_ABS16
  5155. -- : BFD_RELOC_MSP430_ABS_HI16
  5156. -- : BFD_RELOC_MSP430_PREL31
  5157. -- : BFD_RELOC_MSP430_SYM_DIFF
  5158. msp430 specific relocation codes
  5159. -- : BFD_RELOC_NIOS2_S16
  5160. -- : BFD_RELOC_NIOS2_U16
  5161. -- : BFD_RELOC_NIOS2_CALL26
  5162. -- : BFD_RELOC_NIOS2_IMM5
  5163. -- : BFD_RELOC_NIOS2_CACHE_OPX
  5164. -- : BFD_RELOC_NIOS2_IMM6
  5165. -- : BFD_RELOC_NIOS2_IMM8
  5166. -- : BFD_RELOC_NIOS2_HI16
  5167. -- : BFD_RELOC_NIOS2_LO16
  5168. -- : BFD_RELOC_NIOS2_HIADJ16
  5169. -- : BFD_RELOC_NIOS2_GPREL
  5170. -- : BFD_RELOC_NIOS2_UJMP
  5171. -- : BFD_RELOC_NIOS2_CJMP
  5172. -- : BFD_RELOC_NIOS2_CALLR
  5173. -- : BFD_RELOC_NIOS2_ALIGN
  5174. -- : BFD_RELOC_NIOS2_GOT16
  5175. -- : BFD_RELOC_NIOS2_CALL16
  5176. -- : BFD_RELOC_NIOS2_GOTOFF_LO
  5177. -- : BFD_RELOC_NIOS2_GOTOFF_HA
  5178. -- : BFD_RELOC_NIOS2_PCREL_LO
  5179. -- : BFD_RELOC_NIOS2_PCREL_HA
  5180. -- : BFD_RELOC_NIOS2_TLS_GD16
  5181. -- : BFD_RELOC_NIOS2_TLS_LDM16
  5182. -- : BFD_RELOC_NIOS2_TLS_LDO16
  5183. -- : BFD_RELOC_NIOS2_TLS_IE16
  5184. -- : BFD_RELOC_NIOS2_TLS_LE16
  5185. -- : BFD_RELOC_NIOS2_TLS_DTPMOD
  5186. -- : BFD_RELOC_NIOS2_TLS_DTPREL
  5187. -- : BFD_RELOC_NIOS2_TLS_TPREL
  5188. -- : BFD_RELOC_NIOS2_COPY
  5189. -- : BFD_RELOC_NIOS2_GLOB_DAT
  5190. -- : BFD_RELOC_NIOS2_JUMP_SLOT
  5191. -- : BFD_RELOC_NIOS2_RELATIVE
  5192. -- : BFD_RELOC_NIOS2_GOTOFF
  5193. -- : BFD_RELOC_NIOS2_CALL26_NOAT
  5194. -- : BFD_RELOC_NIOS2_GOT_LO
  5195. -- : BFD_RELOC_NIOS2_GOT_HA
  5196. -- : BFD_RELOC_NIOS2_CALL_LO
  5197. -- : BFD_RELOC_NIOS2_CALL_HA
  5198. -- : BFD_RELOC_NIOS2_R2_S12
  5199. -- : BFD_RELOC_NIOS2_R2_I10_1_PCREL
  5200. -- : BFD_RELOC_NIOS2_R2_T1I7_1_PCREL
  5201. -- : BFD_RELOC_NIOS2_R2_T1I7_2
  5202. -- : BFD_RELOC_NIOS2_R2_T2I4
  5203. -- : BFD_RELOC_NIOS2_R2_T2I4_1
  5204. -- : BFD_RELOC_NIOS2_R2_T2I4_2
  5205. -- : BFD_RELOC_NIOS2_R2_X1I7_2
  5206. -- : BFD_RELOC_NIOS2_R2_X2L5
  5207. -- : BFD_RELOC_NIOS2_R2_F1I5_2
  5208. -- : BFD_RELOC_NIOS2_R2_L5I4X1
  5209. -- : BFD_RELOC_NIOS2_R2_T1X1I6
  5210. -- : BFD_RELOC_NIOS2_R2_T1X1I6_2
  5211. Relocations used by the Altera Nios II core.
  5212. -- : BFD_RELOC_IQ2000_OFFSET_16
  5213. -- : BFD_RELOC_IQ2000_OFFSET_21
  5214. -- : BFD_RELOC_IQ2000_UHI16
  5215. IQ2000 Relocations.
  5216. -- : BFD_RELOC_XTENSA_RTLD
  5217. Special Xtensa relocation used only by PLT entries in ELF shared
  5218. objects to indicate that the runtime linker should set the value to
  5219. one of its own internal functions or data structures.
  5220. -- : BFD_RELOC_XTENSA_GLOB_DAT
  5221. -- : BFD_RELOC_XTENSA_JMP_SLOT
  5222. -- : BFD_RELOC_XTENSA_RELATIVE
  5223. Xtensa relocations for ELF shared objects.
  5224. -- : BFD_RELOC_XTENSA_PLT
  5225. Xtensa relocation used in ELF object files for symbols that may
  5226. require PLT entries. Otherwise, this is just a generic 32-bit
  5227. relocation.
  5228. -- : BFD_RELOC_XTENSA_DIFF8
  5229. -- : BFD_RELOC_XTENSA_DIFF16
  5230. -- : BFD_RELOC_XTENSA_DIFF32
  5231. Xtensa relocations to mark the difference of two local symbols.
  5232. These are only needed to support linker relaxation and can be
  5233. ignored when not relaxing. The field is set to the value of the
  5234. difference assuming no relaxation. The relocation encodes the
  5235. position of the first symbol so the linker can determine whether to
  5236. adjust the field value.
  5237. -- : BFD_RELOC_XTENSA_SLOT0_OP
  5238. -- : BFD_RELOC_XTENSA_SLOT1_OP
  5239. -- : BFD_RELOC_XTENSA_SLOT2_OP
  5240. -- : BFD_RELOC_XTENSA_SLOT3_OP
  5241. -- : BFD_RELOC_XTENSA_SLOT4_OP
  5242. -- : BFD_RELOC_XTENSA_SLOT5_OP
  5243. -- : BFD_RELOC_XTENSA_SLOT6_OP
  5244. -- : BFD_RELOC_XTENSA_SLOT7_OP
  5245. -- : BFD_RELOC_XTENSA_SLOT8_OP
  5246. -- : BFD_RELOC_XTENSA_SLOT9_OP
  5247. -- : BFD_RELOC_XTENSA_SLOT10_OP
  5248. -- : BFD_RELOC_XTENSA_SLOT11_OP
  5249. -- : BFD_RELOC_XTENSA_SLOT12_OP
  5250. -- : BFD_RELOC_XTENSA_SLOT13_OP
  5251. -- : BFD_RELOC_XTENSA_SLOT14_OP
  5252. Generic Xtensa relocations for instruction operands. Only the slot
  5253. number is encoded in the relocation. The relocation applies to the
  5254. last PC-relative immediate operand, or if there are no PC-relative
  5255. immediates, to the last immediate operand.
  5256. -- : BFD_RELOC_XTENSA_SLOT0_ALT
  5257. -- : BFD_RELOC_XTENSA_SLOT1_ALT
  5258. -- : BFD_RELOC_XTENSA_SLOT2_ALT
  5259. -- : BFD_RELOC_XTENSA_SLOT3_ALT
  5260. -- : BFD_RELOC_XTENSA_SLOT4_ALT
  5261. -- : BFD_RELOC_XTENSA_SLOT5_ALT
  5262. -- : BFD_RELOC_XTENSA_SLOT6_ALT
  5263. -- : BFD_RELOC_XTENSA_SLOT7_ALT
  5264. -- : BFD_RELOC_XTENSA_SLOT8_ALT
  5265. -- : BFD_RELOC_XTENSA_SLOT9_ALT
  5266. -- : BFD_RELOC_XTENSA_SLOT10_ALT
  5267. -- : BFD_RELOC_XTENSA_SLOT11_ALT
  5268. -- : BFD_RELOC_XTENSA_SLOT12_ALT
  5269. -- : BFD_RELOC_XTENSA_SLOT13_ALT
  5270. -- : BFD_RELOC_XTENSA_SLOT14_ALT
  5271. Alternate Xtensa relocations. Only the slot is encoded in the
  5272. relocation. The meaning of these relocations is opcode-specific.
  5273. -- : BFD_RELOC_XTENSA_OP0
  5274. -- : BFD_RELOC_XTENSA_OP1
  5275. -- : BFD_RELOC_XTENSA_OP2
  5276. Xtensa relocations for backward compatibility. These have all been
  5277. replaced by BFD_RELOC_XTENSA_SLOT0_OP.
  5278. -- : BFD_RELOC_XTENSA_ASM_EXPAND
  5279. Xtensa relocation to mark that the assembler expanded the
  5280. instructions from an original target. The expansion size is
  5281. encoded in the reloc size.
  5282. -- : BFD_RELOC_XTENSA_ASM_SIMPLIFY
  5283. Xtensa relocation to mark that the linker should simplify
  5284. assembler-expanded instructions. This is commonly used internally
  5285. by the linker after analysis of a BFD_RELOC_XTENSA_ASM_EXPAND.
  5286. -- : BFD_RELOC_XTENSA_TLSDESC_FN
  5287. -- : BFD_RELOC_XTENSA_TLSDESC_ARG
  5288. -- : BFD_RELOC_XTENSA_TLS_DTPOFF
  5289. -- : BFD_RELOC_XTENSA_TLS_TPOFF
  5290. -- : BFD_RELOC_XTENSA_TLS_FUNC
  5291. -- : BFD_RELOC_XTENSA_TLS_ARG
  5292. -- : BFD_RELOC_XTENSA_TLS_CALL
  5293. Xtensa TLS relocations.
  5294. -- : BFD_RELOC_Z80_DISP8
  5295. 8 bit signed offset in (ix+d) or (iy+d).
  5296. -- : BFD_RELOC_Z8K_DISP7
  5297. DJNZ offset.
  5298. -- : BFD_RELOC_Z8K_CALLR
  5299. CALR offset.
  5300. -- : BFD_RELOC_Z8K_IMM4L
  5301. 4 bit value.
  5302. -- : BFD_RELOC_LM32_CALL
  5303. -- : BFD_RELOC_LM32_BRANCH
  5304. -- : BFD_RELOC_LM32_16_GOT
  5305. -- : BFD_RELOC_LM32_GOTOFF_HI16
  5306. -- : BFD_RELOC_LM32_GOTOFF_LO16
  5307. -- : BFD_RELOC_LM32_COPY
  5308. -- : BFD_RELOC_LM32_GLOB_DAT
  5309. -- : BFD_RELOC_LM32_JMP_SLOT
  5310. -- : BFD_RELOC_LM32_RELATIVE
  5311. Lattice Mico32 relocations.
  5312. -- : BFD_RELOC_MACH_O_SECTDIFF
  5313. Difference between two section addreses. Must be followed by a
  5314. BFD_RELOC_MACH_O_PAIR.
  5315. -- : BFD_RELOC_MACH_O_LOCAL_SECTDIFF
  5316. Like BFD_RELOC_MACH_O_SECTDIFF but with a local symbol.
  5317. -- : BFD_RELOC_MACH_O_PAIR
  5318. Pair of relocation. Contains the first symbol.
  5319. -- : BFD_RELOC_MACH_O_SUBTRACTOR32
  5320. Symbol will be substracted. Must be followed by a BFD_RELOC_32.
  5321. -- : BFD_RELOC_MACH_O_SUBTRACTOR64
  5322. Symbol will be substracted. Must be followed by a BFD_RELOC_64.
  5323. -- : BFD_RELOC_MACH_O_X86_64_BRANCH32
  5324. -- : BFD_RELOC_MACH_O_X86_64_BRANCH8
  5325. PCREL relocations. They are marked as branch to create PLT entry
  5326. if required.
  5327. -- : BFD_RELOC_MACH_O_X86_64_GOT
  5328. Used when referencing a GOT entry.
  5329. -- : BFD_RELOC_MACH_O_X86_64_GOT_LOAD
  5330. Used when loading a GOT entry with movq. It is specially marked so
  5331. that the linker could optimize the movq to a leaq if possible.
  5332. -- : BFD_RELOC_MACH_O_X86_64_PCREL32_1
  5333. Same as BFD_RELOC_32_PCREL but with an implicit -1 addend.
  5334. -- : BFD_RELOC_MACH_O_X86_64_PCREL32_2
  5335. Same as BFD_RELOC_32_PCREL but with an implicit -2 addend.
  5336. -- : BFD_RELOC_MACH_O_X86_64_PCREL32_4
  5337. Same as BFD_RELOC_32_PCREL but with an implicit -4 addend.
  5338. -- : BFD_RELOC_MACH_O_ARM64_ADDEND
  5339. Addend for PAGE or PAGEOFF.
  5340. -- : BFD_RELOC_MACH_O_ARM64_GOT_LOAD_PAGE21
  5341. Relative offset to page of GOT slot.
  5342. -- : BFD_RELOC_MACH_O_ARM64_GOT_LOAD_PAGEOFF12
  5343. Relative offset within page of GOT slot.
  5344. -- : BFD_RELOC_MACH_O_ARM64_POINTER_TO_GOT
  5345. Address of a GOT entry.
  5346. -- : BFD_RELOC_MICROBLAZE_32_LO
  5347. This is a 32 bit reloc for the microblaze that stores the low 16
  5348. bits of a value
  5349. -- : BFD_RELOC_MICROBLAZE_32_LO_PCREL
  5350. This is a 32 bit pc-relative reloc for the microblaze that stores
  5351. the low 16 bits of a value
  5352. -- : BFD_RELOC_MICROBLAZE_32_ROSDA
  5353. This is a 32 bit reloc for the microblaze that stores a value
  5354. relative to the read-only small data area anchor
  5355. -- : BFD_RELOC_MICROBLAZE_32_RWSDA
  5356. This is a 32 bit reloc for the microblaze that stores a value
  5357. relative to the read-write small data area anchor
  5358. -- : BFD_RELOC_MICROBLAZE_32_SYM_OP_SYM
  5359. This is a 32 bit reloc for the microblaze to handle expressions of
  5360. the form "Symbol Op Symbol"
  5361. -- : BFD_RELOC_MICROBLAZE_64_NONE
  5362. This is a 64 bit reloc that stores the 32 bit pc relative value in
  5363. two words (with an imm instruction). No relocation is done here -
  5364. only used for relaxing
  5365. -- : BFD_RELOC_MICROBLAZE_64_GOTPC
  5366. This is a 64 bit reloc that stores the 32 bit pc relative value in
  5367. two words (with an imm instruction). The relocation is PC-relative
  5368. GOT offset
  5369. -- : BFD_RELOC_MICROBLAZE_64_GOT
  5370. This is a 64 bit reloc that stores the 32 bit pc relative value in
  5371. two words (with an imm instruction). The relocation is GOT offset
  5372. -- : BFD_RELOC_MICROBLAZE_64_PLT
  5373. This is a 64 bit reloc that stores the 32 bit pc relative value in
  5374. two words (with an imm instruction). The relocation is PC-relative
  5375. offset into PLT
  5376. -- : BFD_RELOC_MICROBLAZE_64_GOTOFF
  5377. This is a 64 bit reloc that stores the 32 bit GOT relative value in
  5378. two words (with an imm instruction). The relocation is relative
  5379. offset from _GLOBAL_OFFSET_TABLE_
  5380. -- : BFD_RELOC_MICROBLAZE_32_GOTOFF
  5381. This is a 32 bit reloc that stores the 32 bit GOT relative value in
  5382. a word. The relocation is relative offset from
  5383. -- : BFD_RELOC_MICROBLAZE_COPY
  5384. This is used to tell the dynamic linker to copy the value out of
  5385. the dynamic object into the runtime process image.
  5386. -- : BFD_RELOC_MICROBLAZE_64_TLS
  5387. Unused Reloc
  5388. -- : BFD_RELOC_MICROBLAZE_64_TLSGD
  5389. This is a 64 bit reloc that stores the 32 bit GOT relative value of
  5390. the GOT TLS GD info entry in two words (with an imm instruction).
  5391. The relocation is GOT offset.
  5392. -- : BFD_RELOC_MICROBLAZE_64_TLSLD
  5393. This is a 64 bit reloc that stores the 32 bit GOT relative value of
  5394. the GOT TLS LD info entry in two words (with an imm instruction).
  5395. The relocation is GOT offset.
  5396. -- : BFD_RELOC_MICROBLAZE_32_TLSDTPMOD
  5397. This is a 32 bit reloc that stores the Module ID to GOT(n).
  5398. -- : BFD_RELOC_MICROBLAZE_32_TLSDTPREL
  5399. This is a 32 bit reloc that stores TLS offset to GOT(n+1).
  5400. -- : BFD_RELOC_MICROBLAZE_64_TLSDTPREL
  5401. This is a 32 bit reloc for storing TLS offset to two words (uses
  5402. imm instruction)
  5403. -- : BFD_RELOC_MICROBLAZE_64_TLSGOTTPREL
  5404. This is a 64 bit reloc that stores 32-bit thread pointer relative
  5405. offset to two words (uses imm instruction).
  5406. -- : BFD_RELOC_MICROBLAZE_64_TLSTPREL
  5407. This is a 64 bit reloc that stores 32-bit thread pointer relative
  5408. offset to two words (uses imm instruction).
  5409. -- : BFD_RELOC_AARCH64_RELOC_START
  5410. AArch64 pseudo relocation code to mark the start of the AArch64
  5411. relocation enumerators. N.B. the order of the enumerators is
  5412. important as several tables in the AArch64 bfd backend are indexed
  5413. by these enumerators; make sure they are all synced.
  5414. -- : BFD_RELOC_AARCH64_NULL
  5415. Deprecated AArch64 null relocation code.
  5416. -- : BFD_RELOC_AARCH64_NONE
  5417. AArch64 null relocation code.
  5418. -- : BFD_RELOC_AARCH64_64
  5419. -- : BFD_RELOC_AARCH64_32
  5420. -- : BFD_RELOC_AARCH64_16
  5421. Basic absolute relocations of N bits. These are equivalent to
  5422. BFD_RELOC_N and they were added to assist the indexing of the howto
  5423. table.
  5424. -- : BFD_RELOC_AARCH64_64_PCREL
  5425. -- : BFD_RELOC_AARCH64_32_PCREL
  5426. -- : BFD_RELOC_AARCH64_16_PCREL
  5427. PC-relative relocations. These are equivalent to BFD_RELOC_N_PCREL
  5428. and they were added to assist the indexing of the howto table.
  5429. -- : BFD_RELOC_AARCH64_MOVW_G0
  5430. AArch64 MOV[NZK] instruction with most significant bits 0 to 15 of
  5431. an unsigned address/value.
  5432. -- : BFD_RELOC_AARCH64_MOVW_G0_NC
  5433. AArch64 MOV[NZK] instruction with less significant bits 0 to 15 of
  5434. an address/value. No overflow checking.
  5435. -- : BFD_RELOC_AARCH64_MOVW_G1
  5436. AArch64 MOV[NZK] instruction with most significant bits 16 to 31 of
  5437. an unsigned address/value.
  5438. -- : BFD_RELOC_AARCH64_MOVW_G1_NC
  5439. AArch64 MOV[NZK] instruction with less significant bits 16 to 31 of
  5440. an address/value. No overflow checking.
  5441. -- : BFD_RELOC_AARCH64_MOVW_G2
  5442. AArch64 MOV[NZK] instruction with most significant bits 32 to 47 of
  5443. an unsigned address/value.
  5444. -- : BFD_RELOC_AARCH64_MOVW_G2_NC
  5445. AArch64 MOV[NZK] instruction with less significant bits 32 to 47 of
  5446. an address/value. No overflow checking.
  5447. -- : BFD_RELOC_AARCH64_MOVW_G3
  5448. AArch64 MOV[NZK] instruction with most signficant bits 48 to 64 of
  5449. a signed or unsigned address/value.
  5450. -- : BFD_RELOC_AARCH64_MOVW_G0_S
  5451. AArch64 MOV[NZ] instruction with most significant bits 0 to 15 of a
  5452. signed value. Changes instruction to MOVZ or MOVN depending on the
  5453. value's sign.
  5454. -- : BFD_RELOC_AARCH64_MOVW_G1_S
  5455. AArch64 MOV[NZ] instruction with most significant bits 16 to 31 of
  5456. a signed value. Changes instruction to MOVZ or MOVN depending on
  5457. the value's sign.
  5458. -- : BFD_RELOC_AARCH64_MOVW_G2_S
  5459. AArch64 MOV[NZ] instruction with most significant bits 32 to 47 of
  5460. a signed value. Changes instruction to MOVZ or MOVN depending on
  5461. the value's sign.
  5462. -- : BFD_RELOC_AARCH64_LD_LO19_PCREL
  5463. AArch64 Load Literal instruction, holding a 19 bit pc-relative word
  5464. offset. The lowest two bits must be zero and are not stored in the
  5465. instruction, giving a 21 bit signed byte offset.
  5466. -- : BFD_RELOC_AARCH64_ADR_LO21_PCREL
  5467. AArch64 ADR instruction, holding a simple 21 bit pc-relative byte
  5468. offset.
  5469. -- : BFD_RELOC_AARCH64_ADR_HI21_PCREL
  5470. AArch64 ADRP instruction, with bits 12 to 32 of a pc-relative page
  5471. offset, giving a 4KB aligned page base address.
  5472. -- : BFD_RELOC_AARCH64_ADR_HI21_NC_PCREL
  5473. AArch64 ADRP instruction, with bits 12 to 32 of a pc-relative page
  5474. offset, giving a 4KB aligned page base address, but with no
  5475. overflow checking.
  5476. -- : BFD_RELOC_AARCH64_ADD_LO12
  5477. AArch64 ADD immediate instruction, holding bits 0 to 11 of the
  5478. address. Used in conjunction with
  5479. BFD_RELOC_AARCH64_ADR_HI21_PCREL.
  5480. -- : BFD_RELOC_AARCH64_LDST8_LO12
  5481. AArch64 8-bit load/store instruction, holding bits 0 to 11 of the
  5482. address. Used in conjunction with
  5483. BFD_RELOC_AARCH64_ADR_HI21_PCREL.
  5484. -- : BFD_RELOC_AARCH64_TSTBR14
  5485. AArch64 14 bit pc-relative test bit and branch. The lowest two
  5486. bits must be zero and are not stored in the instruction, giving a
  5487. 16 bit signed byte offset.
  5488. -- : BFD_RELOC_AARCH64_BRANCH19
  5489. AArch64 19 bit pc-relative conditional branch and compare & branch.
  5490. The lowest two bits must be zero and are not stored in the
  5491. instruction, giving a 21 bit signed byte offset.
  5492. -- : BFD_RELOC_AARCH64_JUMP26
  5493. AArch64 26 bit pc-relative unconditional branch. The lowest two
  5494. bits must be zero and are not stored in the instruction, giving a
  5495. 28 bit signed byte offset.
  5496. -- : BFD_RELOC_AARCH64_CALL26
  5497. AArch64 26 bit pc-relative unconditional branch and link. The
  5498. lowest two bits must be zero and are not stored in the instruction,
  5499. giving a 28 bit signed byte offset.
  5500. -- : BFD_RELOC_AARCH64_LDST16_LO12
  5501. AArch64 16-bit load/store instruction, holding bits 0 to 11 of the
  5502. address. Used in conjunction with
  5503. BFD_RELOC_AARCH64_ADR_HI21_PCREL.
  5504. -- : BFD_RELOC_AARCH64_LDST32_LO12
  5505. AArch64 32-bit load/store instruction, holding bits 0 to 11 of the
  5506. address. Used in conjunction with
  5507. BFD_RELOC_AARCH64_ADR_HI21_PCREL.
  5508. -- : BFD_RELOC_AARCH64_LDST64_LO12
  5509. AArch64 64-bit load/store instruction, holding bits 0 to 11 of the
  5510. address. Used in conjunction with
  5511. BFD_RELOC_AARCH64_ADR_HI21_PCREL.
  5512. -- : BFD_RELOC_AARCH64_LDST128_LO12
  5513. AArch64 128-bit load/store instruction, holding bits 0 to 11 of the
  5514. address. Used in conjunction with
  5515. BFD_RELOC_AARCH64_ADR_HI21_PCREL.
  5516. -- : BFD_RELOC_AARCH64_GOT_LD_PREL19
  5517. AArch64 Load Literal instruction, holding a 19 bit PC relative word
  5518. offset of the global offset table entry for a symbol. The lowest
  5519. two bits must be zero and are not stored in the instruction, giving
  5520. a 21 bit signed byte offset. This relocation type requires signed
  5521. overflow checking.
  5522. -- : BFD_RELOC_AARCH64_ADR_GOT_PAGE
  5523. Get to the page base of the global offset table entry for a symbol
  5524. as part of an ADRP instruction using a 21 bit PC relative
  5525. value.Used in conjunction with BFD_RELOC_AARCH64_LD64_GOT_LO12_NC.
  5526. -- : BFD_RELOC_AARCH64_LD64_GOT_LO12_NC
  5527. Unsigned 12 bit byte offset for 64 bit load/store from the page of
  5528. the GOT entry for this symbol. Used in conjunction with
  5529. BFD_RELOC_AARCH64_ADR_GOTPAGE. Valid in LP64 ABI only.
  5530. -- : BFD_RELOC_AARCH64_LD32_GOT_LO12_NC
  5531. Unsigned 12 bit byte offset for 32 bit load/store from the page of
  5532. the GOT entry for this symbol. Used in conjunction with
  5533. BFD_RELOC_AARCH64_ADR_GOTPAGE. Valid in ILP32 ABI only.
  5534. -- : BFD_RELOC_AARCH64_MOVW_GOTOFF_G0_NC
  5535. Unsigned 16 bit byte offset for 64 bit load/store from the GOT
  5536. entry for this symbol. Valid in LP64 ABI only.
  5537. -- : BFD_RELOC_AARCH64_MOVW_GOTOFF_G1
  5538. Unsigned 16 bit byte higher offset for 64 bit load/store from the
  5539. GOT entry for this symbol. Valid in LP64 ABI only.
  5540. -- : BFD_RELOC_AARCH64_LD64_GOTOFF_LO15
  5541. Unsigned 15 bit byte offset for 64 bit load/store from the page of
  5542. the GOT entry for this symbol. Valid in LP64 ABI only.
  5543. -- : BFD_RELOC_AARCH64_LD32_GOTPAGE_LO14
  5544. Scaled 14 bit byte offset to the page base of the global offset
  5545. table.
  5546. -- : BFD_RELOC_AARCH64_LD64_GOTPAGE_LO15
  5547. Scaled 15 bit byte offset to the page base of the global offset
  5548. table.
  5549. -- : BFD_RELOC_AARCH64_TLSGD_ADR_PAGE21
  5550. Get to the page base of the global offset table entry for a symbols
  5551. tls_index structure as part of an adrp instruction using a 21 bit
  5552. PC relative value. Used in conjunction with
  5553. BFD_RELOC_AARCH64_TLSGD_ADD_LO12_NC.
  5554. -- : BFD_RELOC_AARCH64_TLSGD_ADR_PREL21
  5555. AArch64 TLS General Dynamic
  5556. -- : BFD_RELOC_AARCH64_TLSGD_ADD_LO12_NC
  5557. Unsigned 12 bit byte offset to global offset table entry for a
  5558. symbols tls_index structure. Used in conjunction with
  5559. BFD_RELOC_AARCH64_TLSGD_ADR_PAGE21.
  5560. -- : BFD_RELOC_AARCH64_TLSGD_MOVW_G0_NC
  5561. AArch64 TLS General Dynamic relocation.
  5562. -- : BFD_RELOC_AARCH64_TLSGD_MOVW_G1
  5563. AArch64 TLS General Dynamic relocation.
  5564. -- : BFD_RELOC_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21
  5565. AArch64 TLS INITIAL EXEC relocation.
  5566. -- : BFD_RELOC_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC
  5567. AArch64 TLS INITIAL EXEC relocation.
  5568. -- : BFD_RELOC_AARCH64_TLSIE_LD32_GOTTPREL_LO12_NC
  5569. AArch64 TLS INITIAL EXEC relocation.
  5570. -- : BFD_RELOC_AARCH64_TLSIE_LD_GOTTPREL_PREL19
  5571. AArch64 TLS INITIAL EXEC relocation.
  5572. -- : BFD_RELOC_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC
  5573. AArch64 TLS INITIAL EXEC relocation.
  5574. -- : BFD_RELOC_AARCH64_TLSIE_MOVW_GOTTPREL_G1
  5575. AArch64 TLS INITIAL EXEC relocation.
  5576. -- : BFD_RELOC_AARCH64_TLSLD_ADD_DTPREL_HI12
  5577. bit[23:12] of byte offset to module TLS base address.
  5578. -- : BFD_RELOC_AARCH64_TLSLD_ADD_DTPREL_LO12
  5579. Unsigned 12 bit byte offset to module TLS base address.
  5580. -- : BFD_RELOC_AARCH64_TLSLD_ADD_DTPREL_LO12_NC
  5581. No overflow check version of
  5582. BFD_RELOC_AARCH64_TLSLD_ADD_DTPREL_LO12.
  5583. -- : BFD_RELOC_AARCH64_TLSLD_ADD_LO12_NC
  5584. Unsigned 12 bit byte offset to global offset table entry for a
  5585. symbols tls_index structure. Used in conjunction with
  5586. BFD_RELOC_AARCH64_TLSLD_ADR_PAGE21.
  5587. -- : BFD_RELOC_AARCH64_TLSLD_ADR_PAGE21
  5588. GOT entry page address for AArch64 TLS Local Dynamic, used with
  5589. ADRP instruction.
  5590. -- : BFD_RELOC_AARCH64_TLSLD_ADR_PREL21
  5591. GOT entry address for AArch64 TLS Local Dynamic, used with ADR
  5592. instruction.
  5593. -- : BFD_RELOC_AARCH64_TLSLD_LDST16_DTPREL_LO12
  5594. bit[11:1] of byte offset to module TLS base address, encoded in
  5595. ldst instructions.
  5596. -- : BFD_RELOC_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC
  5597. Similar as BFD_RELOC_AARCH64_TLSLD_LDST16_DTPREL_LO12, but no
  5598. overflow check.
  5599. -- : BFD_RELOC_AARCH64_TLSLD_LDST32_DTPREL_LO12
  5600. bit[11:2] of byte offset to module TLS base address, encoded in
  5601. ldst instructions.
  5602. -- : BFD_RELOC_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC
  5603. Similar as BFD_RELOC_AARCH64_TLSLD_LDST32_DTPREL_LO12, but no
  5604. overflow check.
  5605. -- : BFD_RELOC_AARCH64_TLSLD_LDST64_DTPREL_LO12
  5606. bit[11:3] of byte offset to module TLS base address, encoded in
  5607. ldst instructions.
  5608. -- : BFD_RELOC_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC
  5609. Similar as BFD_RELOC_AARCH64_TLSLD_LDST64_DTPREL_LO12, but no
  5610. overflow check.
  5611. -- : BFD_RELOC_AARCH64_TLSLD_LDST8_DTPREL_LO12
  5612. bit[11:0] of byte offset to module TLS base address, encoded in
  5613. ldst instructions.
  5614. -- : BFD_RELOC_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC
  5615. Similar as BFD_RELOC_AARCH64_TLSLD_LDST8_DTPREL_LO12, but no
  5616. overflow check.
  5617. -- : BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G0
  5618. bit[15:0] of byte offset to module TLS base address.
  5619. -- : BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G0_NC
  5620. No overflow check version of BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G0
  5621. -- : BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G1
  5622. bit[31:16] of byte offset to module TLS base address.
  5623. -- : BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G1_NC
  5624. No overflow check version of BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G1
  5625. -- : BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G2
  5626. bit[47:32] of byte offset to module TLS base address.
  5627. -- : BFD_RELOC_AARCH64_TLSLE_MOVW_TPREL_G2
  5628. AArch64 TLS LOCAL EXEC relocation.
  5629. -- : BFD_RELOC_AARCH64_TLSLE_MOVW_TPREL_G1
  5630. AArch64 TLS LOCAL EXEC relocation.
  5631. -- : BFD_RELOC_AARCH64_TLSLE_MOVW_TPREL_G1_NC
  5632. AArch64 TLS LOCAL EXEC relocation.
  5633. -- : BFD_RELOC_AARCH64_TLSLE_MOVW_TPREL_G0
  5634. AArch64 TLS LOCAL EXEC relocation.
  5635. -- : BFD_RELOC_AARCH64_TLSLE_MOVW_TPREL_G0_NC
  5636. AArch64 TLS LOCAL EXEC relocation.
  5637. -- : BFD_RELOC_AARCH64_TLSLE_ADD_TPREL_HI12
  5638. AArch64 TLS LOCAL EXEC relocation.
  5639. -- : BFD_RELOC_AARCH64_TLSLE_ADD_TPREL_LO12
  5640. AArch64 TLS LOCAL EXEC relocation.
  5641. -- : BFD_RELOC_AARCH64_TLSLE_ADD_TPREL_LO12_NC
  5642. AArch64 TLS LOCAL EXEC relocation.
  5643. -- : BFD_RELOC_AARCH64_TLSDESC_LD_PREL19
  5644. AArch64 TLS DESC relocation.
  5645. -- : BFD_RELOC_AARCH64_TLSDESC_ADR_PREL21
  5646. AArch64 TLS DESC relocation.
  5647. -- : BFD_RELOC_AARCH64_TLSDESC_ADR_PAGE21
  5648. AArch64 TLS DESC relocation.
  5649. -- : BFD_RELOC_AARCH64_TLSDESC_LD64_LO12_NC
  5650. AArch64 TLS DESC relocation.
  5651. -- : BFD_RELOC_AARCH64_TLSDESC_LD32_LO12_NC
  5652. AArch64 TLS DESC relocation.
  5653. -- : BFD_RELOC_AARCH64_TLSDESC_ADD_LO12_NC
  5654. AArch64 TLS DESC relocation.
  5655. -- : BFD_RELOC_AARCH64_TLSDESC_OFF_G1
  5656. AArch64 TLS DESC relocation.
  5657. -- : BFD_RELOC_AARCH64_TLSDESC_OFF_G0_NC
  5658. AArch64 TLS DESC relocation.
  5659. -- : BFD_RELOC_AARCH64_TLSDESC_LDR
  5660. AArch64 TLS DESC relocation.
  5661. -- : BFD_RELOC_AARCH64_TLSDESC_ADD
  5662. AArch64 TLS DESC relocation.
  5663. -- : BFD_RELOC_AARCH64_TLSDESC_CALL
  5664. AArch64 TLS DESC relocation.
  5665. -- : BFD_RELOC_AARCH64_COPY
  5666. AArch64 TLS relocation.
  5667. -- : BFD_RELOC_AARCH64_GLOB_DAT
  5668. AArch64 TLS relocation.
  5669. -- : BFD_RELOC_AARCH64_JUMP_SLOT
  5670. AArch64 TLS relocation.
  5671. -- : BFD_RELOC_AARCH64_RELATIVE
  5672. AArch64 TLS relocation.
  5673. -- : BFD_RELOC_AARCH64_TLS_DTPMOD
  5674. AArch64 TLS relocation.
  5675. -- : BFD_RELOC_AARCH64_TLS_DTPREL
  5676. AArch64 TLS relocation.
  5677. -- : BFD_RELOC_AARCH64_TLS_TPREL
  5678. AArch64 TLS relocation.
  5679. -- : BFD_RELOC_AARCH64_TLSDESC
  5680. AArch64 TLS relocation.
  5681. -- : BFD_RELOC_AARCH64_IRELATIVE
  5682. AArch64 support for STT_GNU_IFUNC.
  5683. -- : BFD_RELOC_AARCH64_RELOC_END
  5684. AArch64 pseudo relocation code to mark the end of the AArch64
  5685. relocation enumerators that have direct mapping to ELF reloc codes.
  5686. There are a few more enumerators after this one; those are mainly
  5687. used by the AArch64 assembler for the internal fixup or to select
  5688. one of the above enumerators.
  5689. -- : BFD_RELOC_AARCH64_GAS_INTERNAL_FIXUP
  5690. AArch64 pseudo relocation code to be used internally by the AArch64
  5691. assembler and not (currently) written to any object files.
  5692. -- : BFD_RELOC_AARCH64_LDST_LO12
  5693. AArch64 unspecified load/store instruction, holding bits 0 to 11 of
  5694. the address. Used in conjunction with
  5695. BFD_RELOC_AARCH64_ADR_HI21_PCREL.
  5696. -- : BFD_RELOC_AARCH64_TLSLD_LDST_DTPREL_LO12
  5697. AArch64 pseudo relocation code for TLS local dynamic mode. It's to
  5698. be used internally by the AArch64 assembler and not (currently)
  5699. written to any object files.
  5700. -- : BFD_RELOC_AARCH64_TLSLD_LDST_DTPREL_LO12_NC
  5701. Similar as BFD_RELOC_AARCH64_TLSLD_LDST_DTPREL_LO12, but no
  5702. overflow check.
  5703. -- : BFD_RELOC_AARCH64_LD_GOT_LO12_NC
  5704. AArch64 pseudo relocation code to be used internally by the AArch64
  5705. assembler and not (currently) written to any object files.
  5706. -- : BFD_RELOC_AARCH64_TLSIE_LD_GOTTPREL_LO12_NC
  5707. AArch64 pseudo relocation code to be used internally by the AArch64
  5708. assembler and not (currently) written to any object files.
  5709. -- : BFD_RELOC_AARCH64_TLSDESC_LD_LO12_NC
  5710. AArch64 pseudo relocation code to be used internally by the AArch64
  5711. assembler and not (currently) written to any object files.
  5712. -- : BFD_RELOC_TILEPRO_COPY
  5713. -- : BFD_RELOC_TILEPRO_GLOB_DAT
  5714. -- : BFD_RELOC_TILEPRO_JMP_SLOT
  5715. -- : BFD_RELOC_TILEPRO_RELATIVE
  5716. -- : BFD_RELOC_TILEPRO_BROFF_X1
  5717. -- : BFD_RELOC_TILEPRO_JOFFLONG_X1
  5718. -- : BFD_RELOC_TILEPRO_JOFFLONG_X1_PLT
  5719. -- : BFD_RELOC_TILEPRO_IMM8_X0
  5720. -- : BFD_RELOC_TILEPRO_IMM8_Y0
  5721. -- : BFD_RELOC_TILEPRO_IMM8_X1
  5722. -- : BFD_RELOC_TILEPRO_IMM8_Y1
  5723. -- : BFD_RELOC_TILEPRO_DEST_IMM8_X1
  5724. -- : BFD_RELOC_TILEPRO_MT_IMM15_X1
  5725. -- : BFD_RELOC_TILEPRO_MF_IMM15_X1
  5726. -- : BFD_RELOC_TILEPRO_IMM16_X0
  5727. -- : BFD_RELOC_TILEPRO_IMM16_X1
  5728. -- : BFD_RELOC_TILEPRO_IMM16_X0_LO
  5729. -- : BFD_RELOC_TILEPRO_IMM16_X1_LO
  5730. -- : BFD_RELOC_TILEPRO_IMM16_X0_HI
  5731. -- : BFD_RELOC_TILEPRO_IMM16_X1_HI
  5732. -- : BFD_RELOC_TILEPRO_IMM16_X0_HA
  5733. -- : BFD_RELOC_TILEPRO_IMM16_X1_HA
  5734. -- : BFD_RELOC_TILEPRO_IMM16_X0_PCREL
  5735. -- : BFD_RELOC_TILEPRO_IMM16_X1_PCREL
  5736. -- : BFD_RELOC_TILEPRO_IMM16_X0_LO_PCREL
  5737. -- : BFD_RELOC_TILEPRO_IMM16_X1_LO_PCREL
  5738. -- : BFD_RELOC_TILEPRO_IMM16_X0_HI_PCREL
  5739. -- : BFD_RELOC_TILEPRO_IMM16_X1_HI_PCREL
  5740. -- : BFD_RELOC_TILEPRO_IMM16_X0_HA_PCREL
  5741. -- : BFD_RELOC_TILEPRO_IMM16_X1_HA_PCREL
  5742. -- : BFD_RELOC_TILEPRO_IMM16_X0_GOT
  5743. -- : BFD_RELOC_TILEPRO_IMM16_X1_GOT
  5744. -- : BFD_RELOC_TILEPRO_IMM16_X0_GOT_LO
  5745. -- : BFD_RELOC_TILEPRO_IMM16_X1_GOT_LO
  5746. -- : BFD_RELOC_TILEPRO_IMM16_X0_GOT_HI
  5747. -- : BFD_RELOC_TILEPRO_IMM16_X1_GOT_HI
  5748. -- : BFD_RELOC_TILEPRO_IMM16_X0_GOT_HA
  5749. -- : BFD_RELOC_TILEPRO_IMM16_X1_GOT_HA
  5750. -- : BFD_RELOC_TILEPRO_MMSTART_X0
  5751. -- : BFD_RELOC_TILEPRO_MMEND_X0
  5752. -- : BFD_RELOC_TILEPRO_MMSTART_X1
  5753. -- : BFD_RELOC_TILEPRO_MMEND_X1
  5754. -- : BFD_RELOC_TILEPRO_SHAMT_X0
  5755. -- : BFD_RELOC_TILEPRO_SHAMT_X1
  5756. -- : BFD_RELOC_TILEPRO_SHAMT_Y0
  5757. -- : BFD_RELOC_TILEPRO_SHAMT_Y1
  5758. -- : BFD_RELOC_TILEPRO_TLS_GD_CALL
  5759. -- : BFD_RELOC_TILEPRO_IMM8_X0_TLS_GD_ADD
  5760. -- : BFD_RELOC_TILEPRO_IMM8_X1_TLS_GD_ADD
  5761. -- : BFD_RELOC_TILEPRO_IMM8_Y0_TLS_GD_ADD
  5762. -- : BFD_RELOC_TILEPRO_IMM8_Y1_TLS_GD_ADD
  5763. -- : BFD_RELOC_TILEPRO_TLS_IE_LOAD
  5764. -- : BFD_RELOC_TILEPRO_IMM16_X0_TLS_GD
  5765. -- : BFD_RELOC_TILEPRO_IMM16_X1_TLS_GD
  5766. -- : BFD_RELOC_TILEPRO_IMM16_X0_TLS_GD_LO
  5767. -- : BFD_RELOC_TILEPRO_IMM16_X1_TLS_GD_LO
  5768. -- : BFD_RELOC_TILEPRO_IMM16_X0_TLS_GD_HI
  5769. -- : BFD_RELOC_TILEPRO_IMM16_X1_TLS_GD_HI
  5770. -- : BFD_RELOC_TILEPRO_IMM16_X0_TLS_GD_HA
  5771. -- : BFD_RELOC_TILEPRO_IMM16_X1_TLS_GD_HA
  5772. -- : BFD_RELOC_TILEPRO_IMM16_X0_TLS_IE
  5773. -- : BFD_RELOC_TILEPRO_IMM16_X1_TLS_IE
  5774. -- : BFD_RELOC_TILEPRO_IMM16_X0_TLS_IE_LO
  5775. -- : BFD_RELOC_TILEPRO_IMM16_X1_TLS_IE_LO
  5776. -- : BFD_RELOC_TILEPRO_IMM16_X0_TLS_IE_HI
  5777. -- : BFD_RELOC_TILEPRO_IMM16_X1_TLS_IE_HI
  5778. -- : BFD_RELOC_TILEPRO_IMM16_X0_TLS_IE_HA
  5779. -- : BFD_RELOC_TILEPRO_IMM16_X1_TLS_IE_HA
  5780. -- : BFD_RELOC_TILEPRO_TLS_DTPMOD32
  5781. -- : BFD_RELOC_TILEPRO_TLS_DTPOFF32
  5782. -- : BFD_RELOC_TILEPRO_TLS_TPOFF32
  5783. -- : BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE
  5784. -- : BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE
  5785. -- : BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_LO
  5786. -- : BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_LO
  5787. -- : BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_HI
  5788. -- : BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_HI
  5789. -- : BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_HA
  5790. -- : BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_HA
  5791. Tilera TILEPro Relocations.
  5792. -- : BFD_RELOC_TILEGX_HW0
  5793. -- : BFD_RELOC_TILEGX_HW1
  5794. -- : BFD_RELOC_TILEGX_HW2
  5795. -- : BFD_RELOC_TILEGX_HW3
  5796. -- : BFD_RELOC_TILEGX_HW0_LAST
  5797. -- : BFD_RELOC_TILEGX_HW1_LAST
  5798. -- : BFD_RELOC_TILEGX_HW2_LAST
  5799. -- : BFD_RELOC_TILEGX_COPY
  5800. -- : BFD_RELOC_TILEGX_GLOB_DAT
  5801. -- : BFD_RELOC_TILEGX_JMP_SLOT
  5802. -- : BFD_RELOC_TILEGX_RELATIVE
  5803. -- : BFD_RELOC_TILEGX_BROFF_X1
  5804. -- : BFD_RELOC_TILEGX_JUMPOFF_X1
  5805. -- : BFD_RELOC_TILEGX_JUMPOFF_X1_PLT
  5806. -- : BFD_RELOC_TILEGX_IMM8_X0
  5807. -- : BFD_RELOC_TILEGX_IMM8_Y0
  5808. -- : BFD_RELOC_TILEGX_IMM8_X1
  5809. -- : BFD_RELOC_TILEGX_IMM8_Y1
  5810. -- : BFD_RELOC_TILEGX_DEST_IMM8_X1
  5811. -- : BFD_RELOC_TILEGX_MT_IMM14_X1
  5812. -- : BFD_RELOC_TILEGX_MF_IMM14_X1
  5813. -- : BFD_RELOC_TILEGX_MMSTART_X0
  5814. -- : BFD_RELOC_TILEGX_MMEND_X0
  5815. -- : BFD_RELOC_TILEGX_SHAMT_X0
  5816. -- : BFD_RELOC_TILEGX_SHAMT_X1
  5817. -- : BFD_RELOC_TILEGX_SHAMT_Y0
  5818. -- : BFD_RELOC_TILEGX_SHAMT_Y1
  5819. -- : BFD_RELOC_TILEGX_IMM16_X0_HW0
  5820. -- : BFD_RELOC_TILEGX_IMM16_X1_HW0
  5821. -- : BFD_RELOC_TILEGX_IMM16_X0_HW1
  5822. -- : BFD_RELOC_TILEGX_IMM16_X1_HW1
  5823. -- : BFD_RELOC_TILEGX_IMM16_X0_HW2
  5824. -- : BFD_RELOC_TILEGX_IMM16_X1_HW2
  5825. -- : BFD_RELOC_TILEGX_IMM16_X0_HW3
  5826. -- : BFD_RELOC_TILEGX_IMM16_X1_HW3
  5827. -- : BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST
  5828. -- : BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST
  5829. -- : BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST
  5830. -- : BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST
  5831. -- : BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST
  5832. -- : BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST
  5833. -- : BFD_RELOC_TILEGX_IMM16_X0_HW0_PCREL
  5834. -- : BFD_RELOC_TILEGX_IMM16_X1_HW0_PCREL
  5835. -- : BFD_RELOC_TILEGX_IMM16_X0_HW1_PCREL
  5836. -- : BFD_RELOC_TILEGX_IMM16_X1_HW1_PCREL
  5837. -- : BFD_RELOC_TILEGX_IMM16_X0_HW2_PCREL
  5838. -- : BFD_RELOC_TILEGX_IMM16_X1_HW2_PCREL
  5839. -- : BFD_RELOC_TILEGX_IMM16_X0_HW3_PCREL
  5840. -- : BFD_RELOC_TILEGX_IMM16_X1_HW3_PCREL
  5841. -- : BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_PCREL
  5842. -- : BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_PCREL
  5843. -- : BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_PCREL
  5844. -- : BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_PCREL
  5845. -- : BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_PCREL
  5846. -- : BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_PCREL
  5847. -- : BFD_RELOC_TILEGX_IMM16_X0_HW0_GOT
  5848. -- : BFD_RELOC_TILEGX_IMM16_X1_HW0_GOT
  5849. -- : BFD_RELOC_TILEGX_IMM16_X0_HW0_PLT_PCREL
  5850. -- : BFD_RELOC_TILEGX_IMM16_X1_HW0_PLT_PCREL
  5851. -- : BFD_RELOC_TILEGX_IMM16_X0_HW1_PLT_PCREL
  5852. -- : BFD_RELOC_TILEGX_IMM16_X1_HW1_PLT_PCREL
  5853. -- : BFD_RELOC_TILEGX_IMM16_X0_HW2_PLT_PCREL
  5854. -- : BFD_RELOC_TILEGX_IMM16_X1_HW2_PLT_PCREL
  5855. -- : BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_GOT
  5856. -- : BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_GOT
  5857. -- : BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_GOT
  5858. -- : BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_GOT
  5859. -- : BFD_RELOC_TILEGX_IMM16_X0_HW3_PLT_PCREL
  5860. -- : BFD_RELOC_TILEGX_IMM16_X1_HW3_PLT_PCREL
  5861. -- : BFD_RELOC_TILEGX_IMM16_X0_HW0_TLS_GD
  5862. -- : BFD_RELOC_TILEGX_IMM16_X1_HW0_TLS_GD
  5863. -- : BFD_RELOC_TILEGX_IMM16_X0_HW0_TLS_LE
  5864. -- : BFD_RELOC_TILEGX_IMM16_X1_HW0_TLS_LE
  5865. -- : BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_TLS_LE
  5866. -- : BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_TLS_LE
  5867. -- : BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_TLS_LE
  5868. -- : BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_TLS_LE
  5869. -- : BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_TLS_GD
  5870. -- : BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_TLS_GD
  5871. -- : BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_TLS_GD
  5872. -- : BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_TLS_GD
  5873. -- : BFD_RELOC_TILEGX_IMM16_X0_HW0_TLS_IE
  5874. -- : BFD_RELOC_TILEGX_IMM16_X1_HW0_TLS_IE
  5875. -- : BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_PLT_PCREL
  5876. -- : BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_PLT_PCREL
  5877. -- : BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_PLT_PCREL
  5878. -- : BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_PLT_PCREL
  5879. -- : BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_PLT_PCREL
  5880. -- : BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_PLT_PCREL
  5881. -- : BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_TLS_IE
  5882. -- : BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_TLS_IE
  5883. -- : BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_TLS_IE
  5884. -- : BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_TLS_IE
  5885. -- : BFD_RELOC_TILEGX_TLS_DTPMOD64
  5886. -- : BFD_RELOC_TILEGX_TLS_DTPOFF64
  5887. -- : BFD_RELOC_TILEGX_TLS_TPOFF64
  5888. -- : BFD_RELOC_TILEGX_TLS_DTPMOD32
  5889. -- : BFD_RELOC_TILEGX_TLS_DTPOFF32
  5890. -- : BFD_RELOC_TILEGX_TLS_TPOFF32
  5891. -- : BFD_RELOC_TILEGX_TLS_GD_CALL
  5892. -- : BFD_RELOC_TILEGX_IMM8_X0_TLS_GD_ADD
  5893. -- : BFD_RELOC_TILEGX_IMM8_X1_TLS_GD_ADD
  5894. -- : BFD_RELOC_TILEGX_IMM8_Y0_TLS_GD_ADD
  5895. -- : BFD_RELOC_TILEGX_IMM8_Y1_TLS_GD_ADD
  5896. -- : BFD_RELOC_TILEGX_TLS_IE_LOAD
  5897. -- : BFD_RELOC_TILEGX_IMM8_X0_TLS_ADD
  5898. -- : BFD_RELOC_TILEGX_IMM8_X1_TLS_ADD
  5899. -- : BFD_RELOC_TILEGX_IMM8_Y0_TLS_ADD
  5900. -- : BFD_RELOC_TILEGX_IMM8_Y1_TLS_ADD
  5901. Tilera TILE-Gx Relocations.
  5902. -- : BFD_RELOC_EPIPHANY_SIMM8
  5903. Adapteva EPIPHANY - 8 bit signed pc-relative displacement
  5904. -- : BFD_RELOC_EPIPHANY_SIMM24
  5905. Adapteva EPIPHANY - 24 bit signed pc-relative displacement
  5906. -- : BFD_RELOC_EPIPHANY_HIGH
  5907. Adapteva EPIPHANY - 16 most-significant bits of absolute address
  5908. -- : BFD_RELOC_EPIPHANY_LOW
  5909. Adapteva EPIPHANY - 16 least-significant bits of absolute address
  5910. -- : BFD_RELOC_EPIPHANY_SIMM11
  5911. Adapteva EPIPHANY - 11 bit signed number - add/sub immediate
  5912. -- : BFD_RELOC_EPIPHANY_IMM11
  5913. Adapteva EPIPHANY - 11 bit sign-magnitude number (ld/st
  5914. displacement)
  5915. -- : BFD_RELOC_EPIPHANY_IMM8
  5916. Adapteva EPIPHANY - 8 bit immediate for 16 bit mov instruction.
  5917. -- : BFD_RELOC_VISIUM_HI16
  5918. -- : BFD_RELOC_VISIUM_LO16
  5919. -- : BFD_RELOC_VISIUM_IM16
  5920. -- : BFD_RELOC_VISIUM_REL16
  5921. -- : BFD_RELOC_VISIUM_HI16_PCREL
  5922. -- : BFD_RELOC_VISIUM_LO16_PCREL
  5923. -- : BFD_RELOC_VISIUM_IM16_PCREL
  5924. Visium Relocations.
  5925. typedef enum bfd_reloc_code_real bfd_reloc_code_real_type;
  5926. 2.10.2.2 'bfd_reloc_type_lookup'
  5927. ................................
  5928. *Synopsis*
  5929. reloc_howto_type *bfd_reloc_type_lookup
  5930. (bfd *abfd, bfd_reloc_code_real_type code);
  5931. reloc_howto_type *bfd_reloc_name_lookup
  5932. (bfd *abfd, const char *reloc_name);
  5933. *Description*
  5934. Return a pointer to a howto structure which, when invoked, will perform
  5935. the relocation CODE on data from the architecture noted.
  5936. 2.10.2.3 'bfd_default_reloc_type_lookup'
  5937. ........................................
  5938. *Synopsis*
  5939. reloc_howto_type *bfd_default_reloc_type_lookup
  5940. (bfd *abfd, bfd_reloc_code_real_type code);
  5941. *Description*
  5942. Provides a default relocation lookup routine for any architecture.
  5943. 2.10.2.4 'bfd_get_reloc_code_name'
  5944. ..................................
  5945. *Synopsis*
  5946. const char *bfd_get_reloc_code_name (bfd_reloc_code_real_type code);
  5947. *Description*
  5948. Provides a printable name for the supplied relocation code. Useful
  5949. mainly for printing error messages.
  5950. 2.10.2.5 'bfd_generic_relax_section'
  5951. ....................................
  5952. *Synopsis*
  5953. bfd_boolean bfd_generic_relax_section
  5954. (bfd *abfd,
  5955. asection *section,
  5956. struct bfd_link_info *,
  5957. bfd_boolean *);
  5958. *Description*
  5959. Provides default handling for relaxing for back ends which don't do
  5960. relaxing.
  5961. 2.10.2.6 'bfd_generic_gc_sections'
  5962. ..................................
  5963. *Synopsis*
  5964. bfd_boolean bfd_generic_gc_sections
  5965. (bfd *, struct bfd_link_info *);
  5966. *Description*
  5967. Provides default handling for relaxing for back ends which don't do
  5968. section gc - i.e., does nothing.
  5969. 2.10.2.7 'bfd_generic_lookup_section_flags'
  5970. ...........................................
  5971. *Synopsis*
  5972. bfd_boolean bfd_generic_lookup_section_flags
  5973. (struct bfd_link_info *, struct flag_info *, asection *);
  5974. *Description*
  5975. Provides default handling for section flags lookup - i.e., does nothing.
  5976. Returns FALSE if the section should be omitted, otherwise TRUE.
  5977. 2.10.2.8 'bfd_generic_merge_sections'
  5978. .....................................
  5979. *Synopsis*
  5980. bfd_boolean bfd_generic_merge_sections
  5981. (bfd *, struct bfd_link_info *);
  5982. *Description*
  5983. Provides default handling for SEC_MERGE section merging for back ends
  5984. which don't have SEC_MERGE support - i.e., does nothing.
  5985. 2.10.2.9 'bfd_generic_get_relocated_section_contents'
  5986. .....................................................
  5987. *Synopsis*
  5988. bfd_byte *bfd_generic_get_relocated_section_contents
  5989. (bfd *abfd,
  5990. struct bfd_link_info *link_info,
  5991. struct bfd_link_order *link_order,
  5992. bfd_byte *data,
  5993. bfd_boolean relocatable,
  5994. asymbol **symbols);
  5995. *Description*
  5996. Provides default handling of relocation effort for back ends which can't
  5997. be bothered to do it efficiently.
  5998. 
  5999. File: bfd.info, Node: Core Files, Next: Targets, Prev: Relocations, Up: BFD front end
  6000. 2.11 Core files
  6001. ===============
  6002. 2.11.1 Core file functions
  6003. --------------------------
  6004. *Description*
  6005. These are functions pertaining to core files.
  6006. 2.11.1.1 'bfd_core_file_failing_command'
  6007. ........................................
  6008. *Synopsis*
  6009. const char *bfd_core_file_failing_command (bfd *abfd);
  6010. *Description*
  6011. Return a read-only string explaining which program was running when it
  6012. failed and produced the core file ABFD.
  6013. 2.11.1.2 'bfd_core_file_failing_signal'
  6014. .......................................
  6015. *Synopsis*
  6016. int bfd_core_file_failing_signal (bfd *abfd);
  6017. *Description*
  6018. Returns the signal number which caused the core dump which generated the
  6019. file the BFD ABFD is attached to.
  6020. 2.11.1.3 'bfd_core_file_pid'
  6021. ............................
  6022. *Synopsis*
  6023. int bfd_core_file_pid (bfd *abfd);
  6024. *Description*
  6025. Returns the PID of the process the core dump the BFD ABFD is attached to
  6026. was generated from.
  6027. 2.11.1.4 'core_file_matches_executable_p'
  6028. .........................................
  6029. *Synopsis*
  6030. bfd_boolean core_file_matches_executable_p
  6031. (bfd *core_bfd, bfd *exec_bfd);
  6032. *Description*
  6033. Return 'TRUE' if the core file attached to CORE_BFD was generated by a
  6034. run of the executable file attached to EXEC_BFD, 'FALSE' otherwise.
  6035. 2.11.1.5 'generic_core_file_matches_executable_p'
  6036. .................................................
  6037. *Synopsis*
  6038. bfd_boolean generic_core_file_matches_executable_p
  6039. (bfd *core_bfd, bfd *exec_bfd);
  6040. *Description*
  6041. Return TRUE if the core file attached to CORE_BFD was generated by a run
  6042. of the executable file attached to EXEC_BFD. The match is based on
  6043. executable basenames only.
  6044. Note: When not able to determine the core file failing command or the
  6045. executable name, we still return TRUE even though we're not sure that
  6046. core file and executable match. This is to avoid generating a false
  6047. warning in situations where we really don't know whether they match or
  6048. not.
  6049. 
  6050. File: bfd.info, Node: Targets, Next: Architectures, Prev: Core Files, Up: BFD front end
  6051. 2.12 Targets
  6052. ============
  6053. *Description*
  6054. Each port of BFD to a different machine requires the creation of a
  6055. target back end. All the back end provides to the root part of BFD is a
  6056. structure containing pointers to functions which perform certain low
  6057. level operations on files. BFD translates the applications's requests
  6058. through a pointer into calls to the back end routines.
  6059. When a file is opened with 'bfd_openr', its format and target are
  6060. unknown. BFD uses various mechanisms to determine how to interpret the
  6061. file. The operations performed are:
  6062. * Create a BFD by calling the internal routine '_bfd_new_bfd', then
  6063. call 'bfd_find_target' with the target string supplied to
  6064. 'bfd_openr' and the new BFD pointer.
  6065. * If a null target string was provided to 'bfd_find_target', look up
  6066. the environment variable 'GNUTARGET' and use that as the target
  6067. string.
  6068. * If the target string is still 'NULL', or the target string is
  6069. 'default', then use the first item in the target vector as the
  6070. target type, and set 'target_defaulted' in the BFD to cause
  6071. 'bfd_check_format' to loop through all the targets. *Note
  6072. bfd_target::. *Note Formats::.
  6073. * Otherwise, inspect the elements in the target vector one by one,
  6074. until a match on target name is found. When found, use it.
  6075. * Otherwise return the error 'bfd_error_invalid_target' to
  6076. 'bfd_openr'.
  6077. * 'bfd_openr' attempts to open the file using 'bfd_open_file', and
  6078. returns the BFD.
  6079. Once the BFD has been opened and the target selected, the file format
  6080. may be determined. This is done by calling 'bfd_check_format' on the
  6081. BFD with a suggested format. If 'target_defaulted' has been set, each
  6082. possible target type is tried to see if it recognizes the specified
  6083. format. 'bfd_check_format' returns 'TRUE' when the caller guesses
  6084. right.
  6085. * Menu:
  6086. * bfd_target::
  6087. 
  6088. File: bfd.info, Node: bfd_target, Prev: Targets, Up: Targets
  6089. 2.12.1 bfd_target
  6090. -----------------
  6091. *Description*
  6092. This structure contains everything that BFD knows about a target. It
  6093. includes things like its byte order, name, and which routines to call to
  6094. do various operations.
  6095. Every BFD points to a target structure with its 'xvec' member.
  6096. The macros below are used to dispatch to functions through the
  6097. 'bfd_target' vector. They are used in a number of macros further down
  6098. in 'bfd.h', and are also used when calling various routines by hand
  6099. inside the BFD implementation. The ARGLIST argument must be
  6100. parenthesized; it contains all the arguments to the called function.
  6101. They make the documentation (more) unpleasant to read, so if someone
  6102. wants to fix this and not break the above, please do.
  6103. #define BFD_SEND(bfd, message, arglist) \
  6104. ((*((bfd)->xvec->message)) arglist)
  6105. #ifdef DEBUG_BFD_SEND
  6106. #undef BFD_SEND
  6107. #define BFD_SEND(bfd, message, arglist) \
  6108. (((bfd) && (bfd)->xvec && (bfd)->xvec->message) ? \
  6109. ((*((bfd)->xvec->message)) arglist) : \
  6110. (bfd_assert (__FILE__,__LINE__), NULL))
  6111. #endif
  6112. For operations which index on the BFD format:
  6113. #define BFD_SEND_FMT(bfd, message, arglist) \
  6114. (((bfd)->xvec->message[(int) ((bfd)->format)]) arglist)
  6115. #ifdef DEBUG_BFD_SEND
  6116. #undef BFD_SEND_FMT
  6117. #define BFD_SEND_FMT(bfd, message, arglist) \
  6118. (((bfd) && (bfd)->xvec && (bfd)->xvec->message) ? \
  6119. (((bfd)->xvec->message[(int) ((bfd)->format)]) arglist) : \
  6120. (bfd_assert (__FILE__,__LINE__), NULL))
  6121. #endif
  6122. This is the structure which defines the type of BFD this is. The
  6123. 'xvec' member of the struct 'bfd' itself points here. Each module that
  6124. implements access to a different target under BFD, defines one of these.
  6125. FIXME, these names should be rationalised with the names of the entry
  6126. points which call them. Too bad we can't have one macro to define them
  6127. both!
  6128. enum bfd_flavour
  6129. {
  6130. /* N.B. Update bfd_flavour_name if you change this. */
  6131. bfd_target_unknown_flavour,
  6132. bfd_target_aout_flavour,
  6133. bfd_target_coff_flavour,
  6134. bfd_target_ecoff_flavour,
  6135. bfd_target_xcoff_flavour,
  6136. bfd_target_elf_flavour,
  6137. bfd_target_ieee_flavour,
  6138. bfd_target_nlm_flavour,
  6139. bfd_target_oasys_flavour,
  6140. bfd_target_tekhex_flavour,
  6141. bfd_target_srec_flavour,
  6142. bfd_target_verilog_flavour,
  6143. bfd_target_ihex_flavour,
  6144. bfd_target_som_flavour,
  6145. bfd_target_os9k_flavour,
  6146. bfd_target_versados_flavour,
  6147. bfd_target_msdos_flavour,
  6148. bfd_target_ovax_flavour,
  6149. bfd_target_evax_flavour,
  6150. bfd_target_mmo_flavour,
  6151. bfd_target_mach_o_flavour,
  6152. bfd_target_pef_flavour,
  6153. bfd_target_pef_xlib_flavour,
  6154. bfd_target_sym_flavour
  6155. };
  6156. enum bfd_endian { BFD_ENDIAN_BIG, BFD_ENDIAN_LITTLE, BFD_ENDIAN_UNKNOWN };
  6157. /* Forward declaration. */
  6158. typedef struct bfd_link_info _bfd_link_info;
  6159. /* Forward declaration. */
  6160. typedef struct flag_info flag_info;
  6161. typedef struct bfd_target
  6162. {
  6163. /* Identifies the kind of target, e.g., SunOS4, Ultrix, etc. */
  6164. char *name;
  6165. /* The "flavour" of a back end is a general indication about
  6166. the contents of a file. */
  6167. enum bfd_flavour flavour;
  6168. /* The order of bytes within the data area of a file. */
  6169. enum bfd_endian byteorder;
  6170. /* The order of bytes within the header parts of a file. */
  6171. enum bfd_endian header_byteorder;
  6172. /* A mask of all the flags which an executable may have set -
  6173. from the set BFD_NO_FLAGS, HAS_RELOC, ...D_PAGED. */
  6174. flagword object_flags;
  6175. /* A mask of all the flags which a section may have set - from
  6176. the set SEC_NO_FLAGS, SEC_ALLOC, ...SET_NEVER_LOAD. */
  6177. flagword section_flags;
  6178. /* The character normally found at the front of a symbol.
  6179. (if any), perhaps `_'. */
  6180. char symbol_leading_char;
  6181. /* The pad character for file names within an archive header. */
  6182. char ar_pad_char;
  6183. /* The maximum number of characters in an archive header. */
  6184. unsigned char ar_max_namelen;
  6185. /* How well this target matches, used to select between various
  6186. possible targets when more than one target matches. */
  6187. unsigned char match_priority;
  6188. /* Entries for byte swapping for data. These are different from the
  6189. other entry points, since they don't take a BFD as the first argument.
  6190. Certain other handlers could do the same. */
  6191. bfd_uint64_t (*bfd_getx64) (const void *);
  6192. bfd_int64_t (*bfd_getx_signed_64) (const void *);
  6193. void (*bfd_putx64) (bfd_uint64_t, void *);
  6194. bfd_vma (*bfd_getx32) (const void *);
  6195. bfd_signed_vma (*bfd_getx_signed_32) (const void *);
  6196. void (*bfd_putx32) (bfd_vma, void *);
  6197. bfd_vma (*bfd_getx16) (const void *);
  6198. bfd_signed_vma (*bfd_getx_signed_16) (const void *);
  6199. void (*bfd_putx16) (bfd_vma, void *);
  6200. /* Byte swapping for the headers. */
  6201. bfd_uint64_t (*bfd_h_getx64) (const void *);
  6202. bfd_int64_t (*bfd_h_getx_signed_64) (const void *);
  6203. void (*bfd_h_putx64) (bfd_uint64_t, void *);
  6204. bfd_vma (*bfd_h_getx32) (const void *);
  6205. bfd_signed_vma (*bfd_h_getx_signed_32) (const void *);
  6206. void (*bfd_h_putx32) (bfd_vma, void *);
  6207. bfd_vma (*bfd_h_getx16) (const void *);
  6208. bfd_signed_vma (*bfd_h_getx_signed_16) (const void *);
  6209. void (*bfd_h_putx16) (bfd_vma, void *);
  6210. /* Format dependent routines: these are vectors of entry points
  6211. within the target vector structure, one for each format to check. */
  6212. /* Check the format of a file being read. Return a bfd_target * or zero. */
  6213. const struct bfd_target *(*_bfd_check_format[bfd_type_end]) (bfd *);
  6214. /* Set the format of a file being written. */
  6215. bfd_boolean (*_bfd_set_format[bfd_type_end]) (bfd *);
  6216. /* Write cached information into a file being written, at bfd_close. */
  6217. bfd_boolean (*_bfd_write_contents[bfd_type_end]) (bfd *);
  6218. The general target vector. These vectors are initialized using the
  6219. BFD_JUMP_TABLE macros.
  6220. /* Generic entry points. */
  6221. #define BFD_JUMP_TABLE_GENERIC(NAME) \
  6222. NAME##_close_and_cleanup, \
  6223. NAME##_bfd_free_cached_info, \
  6224. NAME##_new_section_hook, \
  6225. NAME##_get_section_contents, \
  6226. NAME##_get_section_contents_in_window
  6227. /* Called when the BFD is being closed to do any necessary cleanup. */
  6228. bfd_boolean (*_close_and_cleanup) (bfd *);
  6229. /* Ask the BFD to free all cached information. */
  6230. bfd_boolean (*_bfd_free_cached_info) (bfd *);
  6231. /* Called when a new section is created. */
  6232. bfd_boolean (*_new_section_hook) (bfd *, sec_ptr);
  6233. /* Read the contents of a section. */
  6234. bfd_boolean (*_bfd_get_section_contents)
  6235. (bfd *, sec_ptr, void *, file_ptr, bfd_size_type);
  6236. bfd_boolean (*_bfd_get_section_contents_in_window)
  6237. (bfd *, sec_ptr, bfd_window *, file_ptr, bfd_size_type);
  6238. /* Entry points to copy private data. */
  6239. #define BFD_JUMP_TABLE_COPY(NAME) \
  6240. NAME##_bfd_copy_private_bfd_data, \
  6241. NAME##_bfd_merge_private_bfd_data, \
  6242. _bfd_generic_init_private_section_data, \
  6243. NAME##_bfd_copy_private_section_data, \
  6244. NAME##_bfd_copy_private_symbol_data, \
  6245. NAME##_bfd_copy_private_header_data, \
  6246. NAME##_bfd_set_private_flags, \
  6247. NAME##_bfd_print_private_bfd_data
  6248. /* Called to copy BFD general private data from one object file
  6249. to another. */
  6250. bfd_boolean (*_bfd_copy_private_bfd_data) (bfd *, bfd *);
  6251. /* Called to merge BFD general private data from one object file
  6252. to a common output file when linking. */
  6253. bfd_boolean (*_bfd_merge_private_bfd_data) (bfd *, struct bfd_link_info *);
  6254. /* Called to initialize BFD private section data from one object file
  6255. to another. */
  6256. #define bfd_init_private_section_data(ibfd, isec, obfd, osec, link_info) \
  6257. BFD_SEND (obfd, _bfd_init_private_section_data, (ibfd, isec, obfd, osec, link_info))
  6258. bfd_boolean (*_bfd_init_private_section_data)
  6259. (bfd *, sec_ptr, bfd *, sec_ptr, struct bfd_link_info *);
  6260. /* Called to copy BFD private section data from one object file
  6261. to another. */
  6262. bfd_boolean (*_bfd_copy_private_section_data)
  6263. (bfd *, sec_ptr, bfd *, sec_ptr);
  6264. /* Called to copy BFD private symbol data from one symbol
  6265. to another. */
  6266. bfd_boolean (*_bfd_copy_private_symbol_data)
  6267. (bfd *, asymbol *, bfd *, asymbol *);
  6268. /* Called to copy BFD private header data from one object file
  6269. to another. */
  6270. bfd_boolean (*_bfd_copy_private_header_data)
  6271. (bfd *, bfd *);
  6272. /* Called to set private backend flags. */
  6273. bfd_boolean (*_bfd_set_private_flags) (bfd *, flagword);
  6274. /* Called to print private BFD data. */
  6275. bfd_boolean (*_bfd_print_private_bfd_data) (bfd *, void *);
  6276. /* Core file entry points. */
  6277. #define BFD_JUMP_TABLE_CORE(NAME) \
  6278. NAME##_core_file_failing_command, \
  6279. NAME##_core_file_failing_signal, \
  6280. NAME##_core_file_matches_executable_p, \
  6281. NAME##_core_file_pid
  6282. char * (*_core_file_failing_command) (bfd *);
  6283. int (*_core_file_failing_signal) (bfd *);
  6284. bfd_boolean (*_core_file_matches_executable_p) (bfd *, bfd *);
  6285. int (*_core_file_pid) (bfd *);
  6286. /* Archive entry points. */
  6287. #define BFD_JUMP_TABLE_ARCHIVE(NAME) \
  6288. NAME##_slurp_armap, \
  6289. NAME##_slurp_extended_name_table, \
  6290. NAME##_construct_extended_name_table, \
  6291. NAME##_truncate_arname, \
  6292. NAME##_write_armap, \
  6293. NAME##_read_ar_hdr, \
  6294. NAME##_write_ar_hdr, \
  6295. NAME##_openr_next_archived_file, \
  6296. NAME##_get_elt_at_index, \
  6297. NAME##_generic_stat_arch_elt, \
  6298. NAME##_update_armap_timestamp
  6299. bfd_boolean (*_bfd_slurp_armap) (bfd *);
  6300. bfd_boolean (*_bfd_slurp_extended_name_table) (bfd *);
  6301. bfd_boolean (*_bfd_construct_extended_name_table)
  6302. (bfd *, char **, bfd_size_type *, const char **);
  6303. void (*_bfd_truncate_arname) (bfd *, const char *, char *);
  6304. bfd_boolean (*write_armap)
  6305. (bfd *, unsigned int, struct orl *, unsigned int, int);
  6306. void * (*_bfd_read_ar_hdr_fn) (bfd *);
  6307. bfd_boolean (*_bfd_write_ar_hdr_fn) (bfd *, bfd *);
  6308. bfd * (*openr_next_archived_file) (bfd *, bfd *);
  6309. #define bfd_get_elt_at_index(b,i) BFD_SEND (b, _bfd_get_elt_at_index, (b,i))
  6310. bfd * (*_bfd_get_elt_at_index) (bfd *, symindex);
  6311. int (*_bfd_stat_arch_elt) (bfd *, struct stat *);
  6312. bfd_boolean (*_bfd_update_armap_timestamp) (bfd *);
  6313. /* Entry points used for symbols. */
  6314. #define BFD_JUMP_TABLE_SYMBOLS(NAME) \
  6315. NAME##_get_symtab_upper_bound, \
  6316. NAME##_canonicalize_symtab, \
  6317. NAME##_make_empty_symbol, \
  6318. NAME##_print_symbol, \
  6319. NAME##_get_symbol_info, \
  6320. NAME##_get_symbol_version_string, \
  6321. NAME##_bfd_is_local_label_name, \
  6322. NAME##_bfd_is_target_special_symbol, \
  6323. NAME##_get_lineno, \
  6324. NAME##_find_nearest_line, \
  6325. NAME##_find_line, \
  6326. NAME##_find_inliner_info, \
  6327. NAME##_bfd_make_debug_symbol, \
  6328. NAME##_read_minisymbols, \
  6329. NAME##_minisymbol_to_symbol
  6330. long (*_bfd_get_symtab_upper_bound) (bfd *);
  6331. long (*_bfd_canonicalize_symtab)
  6332. (bfd *, struct bfd_symbol **);
  6333. struct bfd_symbol *
  6334. (*_bfd_make_empty_symbol) (bfd *);
  6335. void (*_bfd_print_symbol)
  6336. (bfd *, void *, struct bfd_symbol *, bfd_print_symbol_type);
  6337. #define bfd_print_symbol(b,p,s,e) BFD_SEND (b, _bfd_print_symbol, (b,p,s,e))
  6338. void (*_bfd_get_symbol_info)
  6339. (bfd *, struct bfd_symbol *, symbol_info *);
  6340. #define bfd_get_symbol_info(b,p,e) BFD_SEND (b, _bfd_get_symbol_info, (b,p,e))
  6341. const char *(*_bfd_get_symbol_version_string)
  6342. (bfd *, struct bfd_symbol *, bfd_boolean *);
  6343. #define bfd_get_symbol_version_string(b,s,h) BFD_SEND (b, _bfd_get_symbol_version_string, (b,s,h))
  6344. bfd_boolean (*_bfd_is_local_label_name) (bfd *, const char *);
  6345. bfd_boolean (*_bfd_is_target_special_symbol) (bfd *, asymbol *);
  6346. alent * (*_get_lineno) (bfd *, struct bfd_symbol *);
  6347. bfd_boolean (*_bfd_find_nearest_line)
  6348. (bfd *, struct bfd_symbol **, struct bfd_section *, bfd_vma,
  6349. const char **, const char **, unsigned int *, unsigned int *);
  6350. bfd_boolean (*_bfd_find_line)
  6351. (bfd *, struct bfd_symbol **, struct bfd_symbol *,
  6352. const char **, unsigned int *);
  6353. bfd_boolean (*_bfd_find_inliner_info)
  6354. (bfd *, const char **, const char **, unsigned int *);
  6355. /* Back-door to allow format-aware applications to create debug symbols
  6356. while using BFD for everything else. Currently used by the assembler
  6357. when creating COFF files. */
  6358. asymbol * (*_bfd_make_debug_symbol)
  6359. (bfd *, void *, unsigned long size);
  6360. #define bfd_read_minisymbols(b, d, m, s) \
  6361. BFD_SEND (b, _read_minisymbols, (b, d, m, s))
  6362. long (*_read_minisymbols)
  6363. (bfd *, bfd_boolean, void **, unsigned int *);
  6364. #define bfd_minisymbol_to_symbol(b, d, m, f) \
  6365. BFD_SEND (b, _minisymbol_to_symbol, (b, d, m, f))
  6366. asymbol * (*_minisymbol_to_symbol)
  6367. (bfd *, bfd_boolean, const void *, asymbol *);
  6368. /* Routines for relocs. */
  6369. #define BFD_JUMP_TABLE_RELOCS(NAME) \
  6370. NAME##_get_reloc_upper_bound, \
  6371. NAME##_canonicalize_reloc, \
  6372. NAME##_bfd_reloc_type_lookup, \
  6373. NAME##_bfd_reloc_name_lookup
  6374. long (*_get_reloc_upper_bound) (bfd *, sec_ptr);
  6375. long (*_bfd_canonicalize_reloc)
  6376. (bfd *, sec_ptr, arelent **, struct bfd_symbol **);
  6377. /* See documentation on reloc types. */
  6378. reloc_howto_type *
  6379. (*reloc_type_lookup) (bfd *, bfd_reloc_code_real_type);
  6380. reloc_howto_type *
  6381. (*reloc_name_lookup) (bfd *, const char *);
  6382. /* Routines used when writing an object file. */
  6383. #define BFD_JUMP_TABLE_WRITE(NAME) \
  6384. NAME##_set_arch_mach, \
  6385. NAME##_set_section_contents
  6386. bfd_boolean (*_bfd_set_arch_mach)
  6387. (bfd *, enum bfd_architecture, unsigned long);
  6388. bfd_boolean (*_bfd_set_section_contents)
  6389. (bfd *, sec_ptr, const void *, file_ptr, bfd_size_type);
  6390. /* Routines used by the linker. */
  6391. #define BFD_JUMP_TABLE_LINK(NAME) \
  6392. NAME##_sizeof_headers, \
  6393. NAME##_bfd_get_relocated_section_contents, \
  6394. NAME##_bfd_relax_section, \
  6395. NAME##_bfd_link_hash_table_create, \
  6396. NAME##_bfd_link_add_symbols, \
  6397. NAME##_bfd_link_just_syms, \
  6398. NAME##_bfd_copy_link_hash_symbol_type, \
  6399. NAME##_bfd_final_link, \
  6400. NAME##_bfd_link_split_section, \
  6401. NAME##_bfd_link_check_relocs, \
  6402. NAME##_bfd_gc_sections, \
  6403. NAME##_bfd_lookup_section_flags, \
  6404. NAME##_bfd_merge_sections, \
  6405. NAME##_bfd_is_group_section, \
  6406. NAME##_bfd_discard_group, \
  6407. NAME##_section_already_linked, \
  6408. NAME##_bfd_define_common_symbol
  6409. int (*_bfd_sizeof_headers) (bfd *, struct bfd_link_info *);
  6410. bfd_byte * (*_bfd_get_relocated_section_contents)
  6411. (bfd *, struct bfd_link_info *, struct bfd_link_order *,
  6412. bfd_byte *, bfd_boolean, struct bfd_symbol **);
  6413. bfd_boolean (*_bfd_relax_section)
  6414. (bfd *, struct bfd_section *, struct bfd_link_info *, bfd_boolean *);
  6415. /* Create a hash table for the linker. Different backends store
  6416. different information in this table. */
  6417. struct bfd_link_hash_table *
  6418. (*_bfd_link_hash_table_create) (bfd *);
  6419. /* Add symbols from this object file into the hash table. */
  6420. bfd_boolean (*_bfd_link_add_symbols) (bfd *, struct bfd_link_info *);
  6421. /* Indicate that we are only retrieving symbol values from this section. */
  6422. void (*_bfd_link_just_syms) (asection *, struct bfd_link_info *);
  6423. /* Copy the symbol type and other attributes for a linker script
  6424. assignment of one symbol to another. */
  6425. #define bfd_copy_link_hash_symbol_type(b, t, f) \
  6426. BFD_SEND (b, _bfd_copy_link_hash_symbol_type, (b, t, f))
  6427. void (*_bfd_copy_link_hash_symbol_type)
  6428. (bfd *, struct bfd_link_hash_entry *, struct bfd_link_hash_entry *);
  6429. /* Do a link based on the link_order structures attached to each
  6430. section of the BFD. */
  6431. bfd_boolean (*_bfd_final_link) (bfd *, struct bfd_link_info *);
  6432. /* Should this section be split up into smaller pieces during linking. */
  6433. bfd_boolean (*_bfd_link_split_section) (bfd *, struct bfd_section *);
  6434. /* Check the relocations in the bfd for validity. */
  6435. bfd_boolean (* _bfd_link_check_relocs)(bfd *, struct bfd_link_info *);
  6436. /* Remove sections that are not referenced from the output. */
  6437. bfd_boolean (*_bfd_gc_sections) (bfd *, struct bfd_link_info *);
  6438. /* Sets the bitmask of allowed and disallowed section flags. */
  6439. bfd_boolean (*_bfd_lookup_section_flags) (struct bfd_link_info *,
  6440. struct flag_info *,
  6441. asection *);
  6442. /* Attempt to merge SEC_MERGE sections. */
  6443. bfd_boolean (*_bfd_merge_sections) (bfd *, struct bfd_link_info *);
  6444. /* Is this section a member of a group? */
  6445. bfd_boolean (*_bfd_is_group_section) (bfd *, const struct bfd_section *);
  6446. /* Discard members of a group. */
  6447. bfd_boolean (*_bfd_discard_group) (bfd *, struct bfd_section *);
  6448. /* Check if SEC has been already linked during a reloceatable or
  6449. final link. */
  6450. bfd_boolean (*_section_already_linked) (bfd *, asection *,
  6451. struct bfd_link_info *);
  6452. /* Define a common symbol. */
  6453. bfd_boolean (*_bfd_define_common_symbol) (bfd *, struct bfd_link_info *,
  6454. struct bfd_link_hash_entry *);
  6455. /* Routines to handle dynamic symbols and relocs. */
  6456. #define BFD_JUMP_TABLE_DYNAMIC(NAME) \
  6457. NAME##_get_dynamic_symtab_upper_bound, \
  6458. NAME##_canonicalize_dynamic_symtab, \
  6459. NAME##_get_synthetic_symtab, \
  6460. NAME##_get_dynamic_reloc_upper_bound, \
  6461. NAME##_canonicalize_dynamic_reloc
  6462. /* Get the amount of memory required to hold the dynamic symbols. */
  6463. long (*_bfd_get_dynamic_symtab_upper_bound) (bfd *);
  6464. /* Read in the dynamic symbols. */
  6465. long (*_bfd_canonicalize_dynamic_symtab)
  6466. (bfd *, struct bfd_symbol **);
  6467. /* Create synthetized symbols. */
  6468. long (*_bfd_get_synthetic_symtab)
  6469. (bfd *, long, struct bfd_symbol **, long, struct bfd_symbol **,
  6470. struct bfd_symbol **);
  6471. /* Get the amount of memory required to hold the dynamic relocs. */
  6472. long (*_bfd_get_dynamic_reloc_upper_bound) (bfd *);
  6473. /* Read in the dynamic relocs. */
  6474. long (*_bfd_canonicalize_dynamic_reloc)
  6475. (bfd *, arelent **, struct bfd_symbol **);
  6476. A pointer to an alternative bfd_target in case the current one is not
  6477. satisfactory. This can happen when the target cpu supports both big and
  6478. little endian code, and target chosen by the linker has the wrong
  6479. endianness. The function open_output() in ld/ldlang.c uses this field
  6480. to find an alternative output format that is suitable.
  6481. /* Opposite endian version of this target. */
  6482. const struct bfd_target * alternative_target;
  6483. /* Data for use by back-end routines, which isn't
  6484. generic enough to belong in this structure. */
  6485. const void *backend_data;
  6486. } bfd_target;
  6487. 2.12.1.1 'bfd_set_default_target'
  6488. .................................
  6489. *Synopsis*
  6490. bfd_boolean bfd_set_default_target (const char *name);
  6491. *Description*
  6492. Set the default target vector to use when recognizing a BFD. This takes
  6493. the name of the target, which may be a BFD target name or a
  6494. configuration triplet.
  6495. 2.12.1.2 'bfd_find_target'
  6496. ..........................
  6497. *Synopsis*
  6498. const bfd_target *bfd_find_target (const char *target_name, bfd *abfd);
  6499. *Description*
  6500. Return a pointer to the transfer vector for the object target named
  6501. TARGET_NAME. If TARGET_NAME is 'NULL', choose the one in the
  6502. environment variable 'GNUTARGET'; if that is null or not defined, then
  6503. choose the first entry in the target list. Passing in the string
  6504. "default" or setting the environment variable to "default" will cause
  6505. the first entry in the target list to be returned, and
  6506. "target_defaulted" will be set in the BFD if ABFD isn't 'NULL'. This
  6507. causes 'bfd_check_format' to loop over all the targets to find the one
  6508. that matches the file being read.
  6509. 2.12.1.3 'bfd_get_target_info'
  6510. ..............................
  6511. *Synopsis*
  6512. const bfd_target *bfd_get_target_info (const char *target_name,
  6513. bfd *abfd,
  6514. bfd_boolean *is_bigendian,
  6515. int *underscoring,
  6516. const char **def_target_arch);
  6517. *Description*
  6518. Return a pointer to the transfer vector for the object target named
  6519. TARGET_NAME. If TARGET_NAME is 'NULL', choose the one in the
  6520. environment variable 'GNUTARGET'; if that is null or not defined, then
  6521. choose the first entry in the target list. Passing in the string
  6522. "default" or setting the environment variable to "default" will cause
  6523. the first entry in the target list to be returned, and
  6524. "target_defaulted" will be set in the BFD if ABFD isn't 'NULL'. This
  6525. causes 'bfd_check_format' to loop over all the targets to find the one
  6526. that matches the file being read. If IS_BIGENDIAN is not 'NULL', then
  6527. set this value to target's endian mode. True for big-endian, FALSE for
  6528. little-endian or for invalid target. If UNDERSCORING is not 'NULL',
  6529. then set this value to target's underscoring mode. Zero for
  6530. none-underscoring, -1 for invalid target, else the value of target
  6531. vector's symbol underscoring. If DEF_TARGET_ARCH is not 'NULL', then
  6532. set it to the architecture string specified by the target_name.
  6533. 2.12.1.4 'bfd_target_list'
  6534. ..........................
  6535. *Synopsis*
  6536. const char ** bfd_target_list (void);
  6537. *Description*
  6538. Return a freshly malloced NULL-terminated vector of the names of all the
  6539. valid BFD targets. Do not modify the names.
  6540. 2.12.1.5 'bfd_iterate_over_targets'
  6541. ...................................
  6542. *Synopsis*
  6543. const bfd_target *bfd_iterate_over_targets
  6544. (int (*func) (const bfd_target *, void *),
  6545. void *data);
  6546. *Description*
  6547. Call FUNC for each target in the list of BFD target vectors, passing
  6548. DATA to FUNC. Stop iterating if FUNC returns a non-zero result, and
  6549. return that target vector. Return NULL if FUNC always returns zero.
  6550. 2.12.1.6 'bfd_flavour_name'
  6551. ...........................
  6552. *Synopsis*
  6553. const char *bfd_flavour_name (enum bfd_flavour flavour);
  6554. *Description*
  6555. Return the string form of FLAVOUR.
  6556. 
  6557. File: bfd.info, Node: Architectures, Next: Opening and Closing, Prev: Targets, Up: BFD front end
  6558. 2.13 Architectures
  6559. ==================
  6560. BFD keeps one atom in a BFD describing the architecture of the data
  6561. attached to the BFD: a pointer to a 'bfd_arch_info_type'.
  6562. Pointers to structures can be requested independently of a BFD so
  6563. that an architecture's information can be interrogated without access to
  6564. an open BFD.
  6565. The architecture information is provided by each architecture
  6566. package. The set of default architectures is selected by the macro
  6567. 'SELECT_ARCHITECTURES'. This is normally set up in the
  6568. 'config/TARGET.mt' file of your choice. If the name is not defined,
  6569. then all the architectures supported are included.
  6570. When BFD starts up, all the architectures are called with an
  6571. initialize method. It is up to the architecture back end to insert as
  6572. many items into the list of architectures as it wants to; generally this
  6573. would be one for each machine and one for the default case (an item with
  6574. a machine field of 0).
  6575. BFD's idea of an architecture is implemented in 'archures.c'.
  6576. 2.13.1 bfd_architecture
  6577. -----------------------
  6578. *Description*
  6579. This enum gives the object file's CPU architecture, in a global
  6580. sense--i.e., what processor family does it belong to? Another field
  6581. indicates which processor within the family is in use. The machine
  6582. gives a number which distinguishes different versions of the
  6583. architecture, containing, for example, 2 and 3 for Intel i960 KA and
  6584. i960 KB, and 68020 and 68030 for Motorola 68020 and 68030.
  6585. enum bfd_architecture
  6586. {
  6587. bfd_arch_unknown, /* File arch not known. */
  6588. bfd_arch_obscure, /* Arch known, not one of these. */
  6589. bfd_arch_m68k, /* Motorola 68xxx */
  6590. #define bfd_mach_m68000 1
  6591. #define bfd_mach_m68008 2
  6592. #define bfd_mach_m68010 3
  6593. #define bfd_mach_m68020 4
  6594. #define bfd_mach_m68030 5
  6595. #define bfd_mach_m68040 6
  6596. #define bfd_mach_m68060 7
  6597. #define bfd_mach_cpu32 8
  6598. #define bfd_mach_fido 9
  6599. #define bfd_mach_mcf_isa_a_nodiv 10
  6600. #define bfd_mach_mcf_isa_a 11
  6601. #define bfd_mach_mcf_isa_a_mac 12
  6602. #define bfd_mach_mcf_isa_a_emac 13
  6603. #define bfd_mach_mcf_isa_aplus 14
  6604. #define bfd_mach_mcf_isa_aplus_mac 15
  6605. #define bfd_mach_mcf_isa_aplus_emac 16
  6606. #define bfd_mach_mcf_isa_b_nousp 17
  6607. #define bfd_mach_mcf_isa_b_nousp_mac 18
  6608. #define bfd_mach_mcf_isa_b_nousp_emac 19
  6609. #define bfd_mach_mcf_isa_b 20
  6610. #define bfd_mach_mcf_isa_b_mac 21
  6611. #define bfd_mach_mcf_isa_b_emac 22
  6612. #define bfd_mach_mcf_isa_b_float 23
  6613. #define bfd_mach_mcf_isa_b_float_mac 24
  6614. #define bfd_mach_mcf_isa_b_float_emac 25
  6615. #define bfd_mach_mcf_isa_c 26
  6616. #define bfd_mach_mcf_isa_c_mac 27
  6617. #define bfd_mach_mcf_isa_c_emac 28
  6618. #define bfd_mach_mcf_isa_c_nodiv 29
  6619. #define bfd_mach_mcf_isa_c_nodiv_mac 30
  6620. #define bfd_mach_mcf_isa_c_nodiv_emac 31
  6621. bfd_arch_vax, /* DEC Vax */
  6622. bfd_arch_i960, /* Intel 960 */
  6623. /* The order of the following is important.
  6624. lower number indicates a machine type that
  6625. only accepts a subset of the instructions
  6626. available to machines with higher numbers.
  6627. The exception is the "ca", which is
  6628. incompatible with all other machines except
  6629. "core". */
  6630. #define bfd_mach_i960_core 1
  6631. #define bfd_mach_i960_ka_sa 2
  6632. #define bfd_mach_i960_kb_sb 3
  6633. #define bfd_mach_i960_mc 4
  6634. #define bfd_mach_i960_xa 5
  6635. #define bfd_mach_i960_ca 6
  6636. #define bfd_mach_i960_jx 7
  6637. #define bfd_mach_i960_hx 8
  6638. bfd_arch_or1k, /* OpenRISC 1000 */
  6639. #define bfd_mach_or1k 1
  6640. #define bfd_mach_or1knd 2
  6641. bfd_arch_sparc, /* SPARC */
  6642. #define bfd_mach_sparc 1
  6643. /* The difference between v8plus and v9 is that v9 is a true 64 bit env. */
  6644. #define bfd_mach_sparc_sparclet 2
  6645. #define bfd_mach_sparc_sparclite 3
  6646. #define bfd_mach_sparc_v8plus 4
  6647. #define bfd_mach_sparc_v8plusa 5 /* with ultrasparc add'ns. */
  6648. #define bfd_mach_sparc_sparclite_le 6
  6649. #define bfd_mach_sparc_v9 7
  6650. #define bfd_mach_sparc_v9a 8 /* with ultrasparc add'ns. */
  6651. #define bfd_mach_sparc_v8plusb 9 /* with cheetah add'ns. */
  6652. #define bfd_mach_sparc_v9b 10 /* with cheetah add'ns. */
  6653. #define bfd_mach_sparc_v8plusc 11 /* with UA2005 and T1 add'ns. */
  6654. #define bfd_mach_sparc_v9c 12 /* with UA2005 and T1 add'ns. */
  6655. #define bfd_mach_sparc_v8plusd 13 /* with UA2007 and T3 add'ns. */
  6656. #define bfd_mach_sparc_v9d 14 /* with UA2007 and T3 add'ns. */
  6657. #define bfd_mach_sparc_v8pluse 15 /* with OSA2001 and T4 add'ns (no IMA). */
  6658. #define bfd_mach_sparc_v9e 16 /* with OSA2001 and T4 add'ns (no IMA). */
  6659. #define bfd_mach_sparc_v8plusv 17 /* with OSA2011 and T4 and IMA and FJMAU add'ns. */
  6660. #define bfd_mach_sparc_v9v 18 /* with OSA2011 and T4 and IMA and FJMAU add'ns. */
  6661. #define bfd_mach_sparc_v8plusm 19 /* with OSA2015 and M7 add'ns. */
  6662. #define bfd_mach_sparc_v9m 20 /* with OSA2015 and M7 add'ns. */
  6663. /* Nonzero if MACH has the v9 instruction set. */
  6664. #define bfd_mach_sparc_v9_p(mach) \
  6665. ((mach) >= bfd_mach_sparc_v8plus && (mach) <= bfd_mach_sparc_v9m \
  6666. && (mach) != bfd_mach_sparc_sparclite_le)
  6667. /* Nonzero if MACH is a 64 bit sparc architecture. */
  6668. #define bfd_mach_sparc_64bit_p(mach) \
  6669. ((mach) >= bfd_mach_sparc_v9 \
  6670. && (mach) != bfd_mach_sparc_v8plusb \
  6671. && (mach) != bfd_mach_sparc_v8plusc \
  6672. && (mach) != bfd_mach_sparc_v8plusd \
  6673. && (mach) != bfd_mach_sparc_v8pluse \
  6674. && (mach) != bfd_mach_sparc_v8plusv \
  6675. && (mach) != bfd_mach_sparc_v8plusm)
  6676. bfd_arch_spu, /* PowerPC SPU */
  6677. #define bfd_mach_spu 256
  6678. bfd_arch_mips, /* MIPS Rxxxx */
  6679. #define bfd_mach_mips3000 3000
  6680. #define bfd_mach_mips3900 3900
  6681. #define bfd_mach_mips4000 4000
  6682. #define bfd_mach_mips4010 4010
  6683. #define bfd_mach_mips4100 4100
  6684. #define bfd_mach_mips4111 4111
  6685. #define bfd_mach_mips4120 4120
  6686. #define bfd_mach_mips4300 4300
  6687. #define bfd_mach_mips4400 4400
  6688. #define bfd_mach_mips4600 4600
  6689. #define bfd_mach_mips4650 4650
  6690. #define bfd_mach_mips5000 5000
  6691. #define bfd_mach_mips5400 5400
  6692. #define bfd_mach_mips5500 5500
  6693. #define bfd_mach_mips5900 5900
  6694. #define bfd_mach_mips6000 6000
  6695. #define bfd_mach_mips7000 7000
  6696. #define bfd_mach_mips8000 8000
  6697. #define bfd_mach_mips9000 9000
  6698. #define bfd_mach_mips10000 10000
  6699. #define bfd_mach_mips12000 12000
  6700. #define bfd_mach_mips14000 14000
  6701. #define bfd_mach_mips16000 16000
  6702. #define bfd_mach_mips16 16
  6703. #define bfd_mach_mips5 5
  6704. #define bfd_mach_mips_loongson_2e 3001
  6705. #define bfd_mach_mips_loongson_2f 3002
  6706. #define bfd_mach_mips_loongson_3a 3003
  6707. #define bfd_mach_mips_sb1 12310201 /* octal 'SB', 01 */
  6708. #define bfd_mach_mips_octeon 6501
  6709. #define bfd_mach_mips_octeonp 6601
  6710. #define bfd_mach_mips_octeon2 6502
  6711. #define bfd_mach_mips_octeon3 6503
  6712. #define bfd_mach_mips_xlr 887682 /* decimal 'XLR' */
  6713. #define bfd_mach_mipsisa32 32
  6714. #define bfd_mach_mipsisa32r2 33
  6715. #define bfd_mach_mipsisa32r3 34
  6716. #define bfd_mach_mipsisa32r5 36
  6717. #define bfd_mach_mipsisa32r6 37
  6718. #define bfd_mach_mipsisa64 64
  6719. #define bfd_mach_mipsisa64r2 65
  6720. #define bfd_mach_mipsisa64r3 66
  6721. #define bfd_mach_mipsisa64r5 68
  6722. #define bfd_mach_mipsisa64r6 69
  6723. #define bfd_mach_mips_micromips 96
  6724. bfd_arch_i386, /* Intel 386 */
  6725. #define bfd_mach_i386_intel_syntax (1 << 0)
  6726. #define bfd_mach_i386_i8086 (1 << 1)
  6727. #define bfd_mach_i386_i386 (1 << 2)
  6728. #define bfd_mach_x86_64 (1 << 3)
  6729. #define bfd_mach_x64_32 (1 << 4)
  6730. #define bfd_mach_i386_i386_intel_syntax (bfd_mach_i386_i386 | bfd_mach_i386_intel_syntax)
  6731. #define bfd_mach_x86_64_intel_syntax (bfd_mach_x86_64 | bfd_mach_i386_intel_syntax)
  6732. #define bfd_mach_x64_32_intel_syntax (bfd_mach_x64_32 | bfd_mach_i386_intel_syntax)
  6733. bfd_arch_l1om, /* Intel L1OM */
  6734. #define bfd_mach_l1om (1 << 5)
  6735. #define bfd_mach_l1om_intel_syntax (bfd_mach_l1om | bfd_mach_i386_intel_syntax)
  6736. bfd_arch_k1om, /* Intel K1OM */
  6737. #define bfd_mach_k1om (1 << 6)
  6738. #define bfd_mach_k1om_intel_syntax (bfd_mach_k1om | bfd_mach_i386_intel_syntax)
  6739. #define bfd_mach_i386_nacl (1 << 7)
  6740. #define bfd_mach_i386_i386_nacl (bfd_mach_i386_i386 | bfd_mach_i386_nacl)
  6741. #define bfd_mach_x86_64_nacl (bfd_mach_x86_64 | bfd_mach_i386_nacl)
  6742. #define bfd_mach_x64_32_nacl (bfd_mach_x64_32 | bfd_mach_i386_nacl)
  6743. bfd_arch_iamcu, /* Intel MCU */
  6744. #define bfd_mach_iamcu (1 << 8)
  6745. #define bfd_mach_i386_iamcu (bfd_mach_i386_i386 | bfd_mach_iamcu)
  6746. #define bfd_mach_i386_iamcu_intel_syntax (bfd_mach_i386_iamcu | bfd_mach_i386_intel_syntax)
  6747. bfd_arch_we32k, /* AT&T WE32xxx */
  6748. bfd_arch_tahoe, /* CCI/Harris Tahoe */
  6749. bfd_arch_i860, /* Intel 860 */
  6750. bfd_arch_i370, /* IBM 360/370 Mainframes */
  6751. bfd_arch_romp, /* IBM ROMP PC/RT */
  6752. bfd_arch_convex, /* Convex */
  6753. bfd_arch_m88k, /* Motorola 88xxx */
  6754. bfd_arch_m98k, /* Motorola 98xxx */
  6755. bfd_arch_pyramid, /* Pyramid Technology */
  6756. bfd_arch_h8300, /* Renesas H8/300 (formerly Hitachi H8/300) */
  6757. #define bfd_mach_h8300 1
  6758. #define bfd_mach_h8300h 2
  6759. #define bfd_mach_h8300s 3
  6760. #define bfd_mach_h8300hn 4
  6761. #define bfd_mach_h8300sn 5
  6762. #define bfd_mach_h8300sx 6
  6763. #define bfd_mach_h8300sxn 7
  6764. bfd_arch_pdp11, /* DEC PDP-11 */
  6765. bfd_arch_plugin,
  6766. bfd_arch_powerpc, /* PowerPC */
  6767. #define bfd_mach_ppc 32
  6768. #define bfd_mach_ppc64 64
  6769. #define bfd_mach_ppc_403 403
  6770. #define bfd_mach_ppc_403gc 4030
  6771. #define bfd_mach_ppc_405 405
  6772. #define bfd_mach_ppc_505 505
  6773. #define bfd_mach_ppc_601 601
  6774. #define bfd_mach_ppc_602 602
  6775. #define bfd_mach_ppc_603 603
  6776. #define bfd_mach_ppc_ec603e 6031
  6777. #define bfd_mach_ppc_604 604
  6778. #define bfd_mach_ppc_620 620
  6779. #define bfd_mach_ppc_630 630
  6780. #define bfd_mach_ppc_750 750
  6781. #define bfd_mach_ppc_860 860
  6782. #define bfd_mach_ppc_a35 35
  6783. #define bfd_mach_ppc_rs64ii 642
  6784. #define bfd_mach_ppc_rs64iii 643
  6785. #define bfd_mach_ppc_7400 7400
  6786. #define bfd_mach_ppc_e500 500
  6787. #define bfd_mach_ppc_e500mc 5001
  6788. #define bfd_mach_ppc_e500mc64 5005
  6789. #define bfd_mach_ppc_e5500 5006
  6790. #define bfd_mach_ppc_e6500 5007
  6791. #define bfd_mach_ppc_titan 83
  6792. #define bfd_mach_ppc_vle 84
  6793. bfd_arch_rs6000, /* IBM RS/6000 */
  6794. #define bfd_mach_rs6k 6000
  6795. #define bfd_mach_rs6k_rs1 6001
  6796. #define bfd_mach_rs6k_rsc 6003
  6797. #define bfd_mach_rs6k_rs2 6002
  6798. bfd_arch_hppa, /* HP PA RISC */
  6799. #define bfd_mach_hppa10 10
  6800. #define bfd_mach_hppa11 11
  6801. #define bfd_mach_hppa20 20
  6802. #define bfd_mach_hppa20w 25
  6803. bfd_arch_d10v, /* Mitsubishi D10V */
  6804. #define bfd_mach_d10v 1
  6805. #define bfd_mach_d10v_ts2 2
  6806. #define bfd_mach_d10v_ts3 3
  6807. bfd_arch_d30v, /* Mitsubishi D30V */
  6808. bfd_arch_dlx, /* DLX */
  6809. bfd_arch_m68hc11, /* Motorola 68HC11 */
  6810. bfd_arch_m68hc12, /* Motorola 68HC12 */
  6811. #define bfd_mach_m6812_default 0
  6812. #define bfd_mach_m6812 1
  6813. #define bfd_mach_m6812s 2
  6814. bfd_arch_m9s12x, /* Freescale S12X */
  6815. bfd_arch_m9s12xg, /* Freescale XGATE */
  6816. bfd_arch_z8k, /* Zilog Z8000 */
  6817. #define bfd_mach_z8001 1
  6818. #define bfd_mach_z8002 2
  6819. bfd_arch_h8500, /* Renesas H8/500 (formerly Hitachi H8/500) */
  6820. bfd_arch_sh, /* Renesas / SuperH SH (formerly Hitachi SH) */
  6821. #define bfd_mach_sh 1
  6822. #define bfd_mach_sh2 0x20
  6823. #define bfd_mach_sh_dsp 0x2d
  6824. #define bfd_mach_sh2a 0x2a
  6825. #define bfd_mach_sh2a_nofpu 0x2b
  6826. #define bfd_mach_sh2a_nofpu_or_sh4_nommu_nofpu 0x2a1
  6827. #define bfd_mach_sh2a_nofpu_or_sh3_nommu 0x2a2
  6828. #define bfd_mach_sh2a_or_sh4 0x2a3
  6829. #define bfd_mach_sh2a_or_sh3e 0x2a4
  6830. #define bfd_mach_sh2e 0x2e
  6831. #define bfd_mach_sh3 0x30
  6832. #define bfd_mach_sh3_nommu 0x31
  6833. #define bfd_mach_sh3_dsp 0x3d
  6834. #define bfd_mach_sh3e 0x3e
  6835. #define bfd_mach_sh4 0x40
  6836. #define bfd_mach_sh4_nofpu 0x41
  6837. #define bfd_mach_sh4_nommu_nofpu 0x42
  6838. #define bfd_mach_sh4a 0x4a
  6839. #define bfd_mach_sh4a_nofpu 0x4b
  6840. #define bfd_mach_sh4al_dsp 0x4d
  6841. #define bfd_mach_sh5 0x50
  6842. bfd_arch_alpha, /* Dec Alpha */
  6843. #define bfd_mach_alpha_ev4 0x10
  6844. #define bfd_mach_alpha_ev5 0x20
  6845. #define bfd_mach_alpha_ev6 0x30
  6846. bfd_arch_arm, /* Advanced Risc Machines ARM. */
  6847. #define bfd_mach_arm_unknown 0
  6848. #define bfd_mach_arm_2 1
  6849. #define bfd_mach_arm_2a 2
  6850. #define bfd_mach_arm_3 3
  6851. #define bfd_mach_arm_3M 4
  6852. #define bfd_mach_arm_4 5
  6853. #define bfd_mach_arm_4T 6
  6854. #define bfd_mach_arm_5 7
  6855. #define bfd_mach_arm_5T 8
  6856. #define bfd_mach_arm_5TE 9
  6857. #define bfd_mach_arm_XScale 10
  6858. #define bfd_mach_arm_ep9312 11
  6859. #define bfd_mach_arm_iWMMXt 12
  6860. #define bfd_mach_arm_iWMMXt2 13
  6861. bfd_arch_nds32, /* Andes NDS32 */
  6862. #define bfd_mach_n1 1
  6863. #define bfd_mach_n1h 2
  6864. #define bfd_mach_n1h_v2 3
  6865. #define bfd_mach_n1h_v3 4
  6866. #define bfd_mach_n1h_v3m 5
  6867. bfd_arch_ns32k, /* National Semiconductors ns32000 */
  6868. bfd_arch_w65, /* WDC 65816 */
  6869. bfd_arch_tic30, /* Texas Instruments TMS320C30 */
  6870. bfd_arch_tic4x, /* Texas Instruments TMS320C3X/4X */
  6871. #define bfd_mach_tic3x 30
  6872. #define bfd_mach_tic4x 40
  6873. bfd_arch_tic54x, /* Texas Instruments TMS320C54X */
  6874. bfd_arch_tic6x, /* Texas Instruments TMS320C6X */
  6875. bfd_arch_tic80, /* TI TMS320c80 (MVP) */
  6876. bfd_arch_v850, /* NEC V850 */
  6877. bfd_arch_v850_rh850,/* NEC V850 (using RH850 ABI) */
  6878. #define bfd_mach_v850 1
  6879. #define bfd_mach_v850e 'E'
  6880. #define bfd_mach_v850e1 '1'
  6881. #define bfd_mach_v850e2 0x4532
  6882. #define bfd_mach_v850e2v3 0x45325633
  6883. #define bfd_mach_v850e3v5 0x45335635 /* ('E'|'3'|'V'|'5') */
  6884. bfd_arch_arc, /* ARC Cores */
  6885. #define bfd_mach_arc_a4 0
  6886. #define bfd_mach_arc_a5 1
  6887. #define bfd_mach_arc_arc600 2
  6888. #define bfd_mach_arc_arc601 4
  6889. #define bfd_mach_arc_arc700 3
  6890. #define bfd_mach_arc_arcv2 5
  6891. bfd_arch_m32c, /* Renesas M16C/M32C. */
  6892. #define bfd_mach_m16c 0x75
  6893. #define bfd_mach_m32c 0x78
  6894. bfd_arch_m32r, /* Renesas M32R (formerly Mitsubishi M32R/D) */
  6895. #define bfd_mach_m32r 1 /* For backwards compatibility. */
  6896. #define bfd_mach_m32rx 'x'
  6897. #define bfd_mach_m32r2 '2'
  6898. bfd_arch_mn10200, /* Matsushita MN10200 */
  6899. bfd_arch_mn10300, /* Matsushita MN10300 */
  6900. #define bfd_mach_mn10300 300
  6901. #define bfd_mach_am33 330
  6902. #define bfd_mach_am33_2 332
  6903. bfd_arch_fr30,
  6904. #define bfd_mach_fr30 0x46523330
  6905. bfd_arch_frv,
  6906. #define bfd_mach_frv 1
  6907. #define bfd_mach_frvsimple 2
  6908. #define bfd_mach_fr300 300
  6909. #define bfd_mach_fr400 400
  6910. #define bfd_mach_fr450 450
  6911. #define bfd_mach_frvtomcat 499 /* fr500 prototype */
  6912. #define bfd_mach_fr500 500
  6913. #define bfd_mach_fr550 550
  6914. bfd_arch_moxie, /* The moxie processor */
  6915. #define bfd_mach_moxie 1
  6916. bfd_arch_ft32, /* The ft32 processor */
  6917. #define bfd_mach_ft32 1
  6918. bfd_arch_mcore,
  6919. bfd_arch_mep,
  6920. #define bfd_mach_mep 1
  6921. #define bfd_mach_mep_h1 0x6831
  6922. #define bfd_mach_mep_c5 0x6335
  6923. bfd_arch_metag,
  6924. #define bfd_mach_metag 1
  6925. bfd_arch_ia64, /* HP/Intel ia64 */
  6926. #define bfd_mach_ia64_elf64 64
  6927. #define bfd_mach_ia64_elf32 32
  6928. bfd_arch_ip2k, /* Ubicom IP2K microcontrollers. */
  6929. #define bfd_mach_ip2022 1
  6930. #define bfd_mach_ip2022ext 2
  6931. bfd_arch_iq2000, /* Vitesse IQ2000. */
  6932. #define bfd_mach_iq2000 1
  6933. #define bfd_mach_iq10 2
  6934. bfd_arch_epiphany, /* Adapteva EPIPHANY */
  6935. #define bfd_mach_epiphany16 1
  6936. #define bfd_mach_epiphany32 2
  6937. bfd_arch_mt,
  6938. #define bfd_mach_ms1 1
  6939. #define bfd_mach_mrisc2 2
  6940. #define bfd_mach_ms2 3
  6941. bfd_arch_pj,
  6942. bfd_arch_avr, /* Atmel AVR microcontrollers. */
  6943. #define bfd_mach_avr1 1
  6944. #define bfd_mach_avr2 2
  6945. #define bfd_mach_avr25 25
  6946. #define bfd_mach_avr3 3
  6947. #define bfd_mach_avr31 31
  6948. #define bfd_mach_avr35 35
  6949. #define bfd_mach_avr4 4
  6950. #define bfd_mach_avr5 5
  6951. #define bfd_mach_avr51 51
  6952. #define bfd_mach_avr6 6
  6953. #define bfd_mach_avrtiny 100
  6954. #define bfd_mach_avrxmega1 101
  6955. #define bfd_mach_avrxmega2 102
  6956. #define bfd_mach_avrxmega3 103
  6957. #define bfd_mach_avrxmega4 104
  6958. #define bfd_mach_avrxmega5 105
  6959. #define bfd_mach_avrxmega6 106
  6960. #define bfd_mach_avrxmega7 107
  6961. bfd_arch_bfin, /* ADI Blackfin */
  6962. #define bfd_mach_bfin 1
  6963. bfd_arch_cr16, /* National Semiconductor CompactRISC (ie CR16). */
  6964. #define bfd_mach_cr16 1
  6965. bfd_arch_cr16c, /* National Semiconductor CompactRISC. */
  6966. #define bfd_mach_cr16c 1
  6967. bfd_arch_crx, /* National Semiconductor CRX. */
  6968. #define bfd_mach_crx 1
  6969. bfd_arch_cris, /* Axis CRIS */
  6970. #define bfd_mach_cris_v0_v10 255
  6971. #define bfd_mach_cris_v32 32
  6972. #define bfd_mach_cris_v10_v32 1032
  6973. bfd_arch_riscv,
  6974. #define bfd_mach_riscv32 132
  6975. #define bfd_mach_riscv64 164
  6976. bfd_arch_rl78,
  6977. #define bfd_mach_rl78 0x75
  6978. bfd_arch_rx, /* Renesas RX. */
  6979. #define bfd_mach_rx 0x75
  6980. bfd_arch_s390, /* IBM s390 */
  6981. #define bfd_mach_s390_31 31
  6982. #define bfd_mach_s390_64 64
  6983. bfd_arch_score, /* Sunplus score */
  6984. #define bfd_mach_score3 3
  6985. #define bfd_mach_score7 7
  6986. bfd_arch_mmix, /* Donald Knuth's educational processor. */
  6987. bfd_arch_xstormy16,
  6988. #define bfd_mach_xstormy16 1
  6989. bfd_arch_msp430, /* Texas Instruments MSP430 architecture. */
  6990. #define bfd_mach_msp11 11
  6991. #define bfd_mach_msp110 110
  6992. #define bfd_mach_msp12 12
  6993. #define bfd_mach_msp13 13
  6994. #define bfd_mach_msp14 14
  6995. #define bfd_mach_msp15 15
  6996. #define bfd_mach_msp16 16
  6997. #define bfd_mach_msp20 20
  6998. #define bfd_mach_msp21 21
  6999. #define bfd_mach_msp22 22
  7000. #define bfd_mach_msp23 23
  7001. #define bfd_mach_msp24 24
  7002. #define bfd_mach_msp26 26
  7003. #define bfd_mach_msp31 31
  7004. #define bfd_mach_msp32 32
  7005. #define bfd_mach_msp33 33
  7006. #define bfd_mach_msp41 41
  7007. #define bfd_mach_msp42 42
  7008. #define bfd_mach_msp43 43
  7009. #define bfd_mach_msp44 44
  7010. #define bfd_mach_msp430x 45
  7011. #define bfd_mach_msp46 46
  7012. #define bfd_mach_msp47 47
  7013. #define bfd_mach_msp54 54
  7014. bfd_arch_xc16x, /* Infineon's XC16X Series. */
  7015. #define bfd_mach_xc16x 1
  7016. #define bfd_mach_xc16xl 2
  7017. #define bfd_mach_xc16xs 3
  7018. bfd_arch_xgate, /* Freescale XGATE */
  7019. #define bfd_mach_xgate 1
  7020. bfd_arch_xtensa, /* Tensilica's Xtensa cores. */
  7021. #define bfd_mach_xtensa 1
  7022. bfd_arch_z80,
  7023. #define bfd_mach_z80strict 1 /* No undocumented opcodes. */
  7024. #define bfd_mach_z80 3 /* With ixl, ixh, iyl, and iyh. */
  7025. #define bfd_mach_z80full 7 /* All undocumented instructions. */
  7026. #define bfd_mach_r800 11 /* R800: successor with multiplication. */
  7027. bfd_arch_lm32, /* Lattice Mico32 */
  7028. #define bfd_mach_lm32 1
  7029. bfd_arch_microblaze,/* Xilinx MicroBlaze. */
  7030. bfd_arch_tilepro, /* Tilera TILEPro */
  7031. bfd_arch_tilegx, /* Tilera TILE-Gx */
  7032. #define bfd_mach_tilepro 1
  7033. #define bfd_mach_tilegx 1
  7034. #define bfd_mach_tilegx32 2
  7035. bfd_arch_aarch64, /* AArch64 */
  7036. #define bfd_mach_aarch64 0
  7037. #define bfd_mach_aarch64_ilp32 32
  7038. bfd_arch_nios2, /* Nios II */
  7039. #define bfd_mach_nios2 0
  7040. #define bfd_mach_nios2r1 1
  7041. #define bfd_mach_nios2r2 2
  7042. bfd_arch_visium, /* Visium */
  7043. #define bfd_mach_visium 1
  7044. bfd_arch_last
  7045. };
  7046. 2.13.2 bfd_arch_info
  7047. --------------------
  7048. *Description*
  7049. This structure contains information on architectures for use within BFD.
  7050. typedef struct bfd_arch_info
  7051. {
  7052. int bits_per_word;
  7053. int bits_per_address;
  7054. int bits_per_byte;
  7055. enum bfd_architecture arch;
  7056. unsigned long mach;
  7057. const char *arch_name;
  7058. const char *printable_name;
  7059. unsigned int section_align_power;
  7060. /* TRUE if this is the default machine for the architecture.
  7061. The default arch should be the first entry for an arch so that
  7062. all the entries for that arch can be accessed via next. */
  7063. bfd_boolean the_default;
  7064. const struct bfd_arch_info * (*compatible)
  7065. (const struct bfd_arch_info *a, const struct bfd_arch_info *b);
  7066. bfd_boolean (*scan) (const struct bfd_arch_info *, const char *);
  7067. /* Allocate via bfd_malloc and return a fill buffer of size COUNT. If
  7068. IS_BIGENDIAN is TRUE, the order of bytes is big endian. If CODE is
  7069. TRUE, the buffer contains code. */
  7070. void *(*fill) (bfd_size_type count, bfd_boolean is_bigendian,
  7071. bfd_boolean code);
  7072. const struct bfd_arch_info *next;
  7073. }
  7074. bfd_arch_info_type;
  7075. 2.13.2.1 'bfd_printable_name'
  7076. .............................
  7077. *Synopsis*
  7078. const char *bfd_printable_name (bfd *abfd);
  7079. *Description*
  7080. Return a printable string representing the architecture and machine from
  7081. the pointer to the architecture info structure.
  7082. 2.13.2.2 'bfd_scan_arch'
  7083. ........................
  7084. *Synopsis*
  7085. const bfd_arch_info_type *bfd_scan_arch (const char *string);
  7086. *Description*
  7087. Figure out if BFD supports any cpu which could be described with the
  7088. name STRING. Return a pointer to an 'arch_info' structure if a machine
  7089. is found, otherwise NULL.
  7090. 2.13.2.3 'bfd_arch_list'
  7091. ........................
  7092. *Synopsis*
  7093. const char **bfd_arch_list (void);
  7094. *Description*
  7095. Return a freshly malloced NULL-terminated vector of the names of all the
  7096. valid BFD architectures. Do not modify the names.
  7097. 2.13.2.4 'bfd_arch_get_compatible'
  7098. ..................................
  7099. *Synopsis*
  7100. const bfd_arch_info_type *bfd_arch_get_compatible
  7101. (const bfd *abfd, const bfd *bbfd, bfd_boolean accept_unknowns);
  7102. *Description*
  7103. Determine whether two BFDs' architectures and machine types are
  7104. compatible. Calculates the lowest common denominator between the two
  7105. architectures and machine types implied by the BFDs and returns a
  7106. pointer to an 'arch_info' structure describing the compatible machine.
  7107. 2.13.2.5 'bfd_default_arch_struct'
  7108. ..................................
  7109. *Description*
  7110. The 'bfd_default_arch_struct' is an item of 'bfd_arch_info_type' which
  7111. has been initialized to a fairly generic state. A BFD starts life by
  7112. pointing to this structure, until the correct back end has determined
  7113. the real architecture of the file.
  7114. extern const bfd_arch_info_type bfd_default_arch_struct;
  7115. 2.13.2.6 'bfd_set_arch_info'
  7116. ............................
  7117. *Synopsis*
  7118. void bfd_set_arch_info (bfd *abfd, const bfd_arch_info_type *arg);
  7119. *Description*
  7120. Set the architecture info of ABFD to ARG.
  7121. 2.13.2.7 'bfd_default_set_arch_mach'
  7122. ....................................
  7123. *Synopsis*
  7124. bfd_boolean bfd_default_set_arch_mach
  7125. (bfd *abfd, enum bfd_architecture arch, unsigned long mach);
  7126. *Description*
  7127. Set the architecture and machine type in BFD ABFD to ARCH and MACH.
  7128. Find the correct pointer to a structure and insert it into the
  7129. 'arch_info' pointer.
  7130. 2.13.2.8 'bfd_get_arch'
  7131. .......................
  7132. *Synopsis*
  7133. enum bfd_architecture bfd_get_arch (bfd *abfd);
  7134. *Description*
  7135. Return the enumerated type which describes the BFD ABFD's architecture.
  7136. 2.13.2.9 'bfd_get_mach'
  7137. .......................
  7138. *Synopsis*
  7139. unsigned long bfd_get_mach (bfd *abfd);
  7140. *Description*
  7141. Return the long type which describes the BFD ABFD's machine.
  7142. 2.13.2.10 'bfd_arch_bits_per_byte'
  7143. ..................................
  7144. *Synopsis*
  7145. unsigned int bfd_arch_bits_per_byte (bfd *abfd);
  7146. *Description*
  7147. Return the number of bits in one of the BFD ABFD's architecture's bytes.
  7148. 2.13.2.11 'bfd_arch_bits_per_address'
  7149. .....................................
  7150. *Synopsis*
  7151. unsigned int bfd_arch_bits_per_address (bfd *abfd);
  7152. *Description*
  7153. Return the number of bits in one of the BFD ABFD's architecture's
  7154. addresses.
  7155. 2.13.2.12 'bfd_default_compatible'
  7156. ..................................
  7157. *Synopsis*
  7158. const bfd_arch_info_type *bfd_default_compatible
  7159. (const bfd_arch_info_type *a, const bfd_arch_info_type *b);
  7160. *Description*
  7161. The default function for testing for compatibility.
  7162. 2.13.2.13 'bfd_default_scan'
  7163. ............................
  7164. *Synopsis*
  7165. bfd_boolean bfd_default_scan
  7166. (const struct bfd_arch_info *info, const char *string);
  7167. *Description*
  7168. The default function for working out whether this is an architecture hit
  7169. and a machine hit.
  7170. 2.13.2.14 'bfd_get_arch_info'
  7171. .............................
  7172. *Synopsis*
  7173. const bfd_arch_info_type *bfd_get_arch_info (bfd *abfd);
  7174. *Description*
  7175. Return the architecture info struct in ABFD.
  7176. 2.13.2.15 'bfd_lookup_arch'
  7177. ...........................
  7178. *Synopsis*
  7179. const bfd_arch_info_type *bfd_lookup_arch
  7180. (enum bfd_architecture arch, unsigned long machine);
  7181. *Description*
  7182. Look for the architecture info structure which matches the arguments
  7183. ARCH and MACHINE. A machine of 0 matches the machine/architecture
  7184. structure which marks itself as the default.
  7185. 2.13.2.16 'bfd_printable_arch_mach'
  7186. ...................................
  7187. *Synopsis*
  7188. const char *bfd_printable_arch_mach
  7189. (enum bfd_architecture arch, unsigned long machine);
  7190. *Description*
  7191. Return a printable string representing the architecture and machine
  7192. type.
  7193. This routine is depreciated.
  7194. 2.13.2.17 'bfd_octets_per_byte'
  7195. ...............................
  7196. *Synopsis*
  7197. unsigned int bfd_octets_per_byte (bfd *abfd);
  7198. *Description*
  7199. Return the number of octets (8-bit quantities) per target byte (minimum
  7200. addressable unit). In most cases, this will be one, but some DSP
  7201. targets have 16, 32, or even 48 bits per byte.
  7202. 2.13.2.18 'bfd_arch_mach_octets_per_byte'
  7203. .........................................
  7204. *Synopsis*
  7205. unsigned int bfd_arch_mach_octets_per_byte
  7206. (enum bfd_architecture arch, unsigned long machine);
  7207. *Description*
  7208. See bfd_octets_per_byte.
  7209. This routine is provided for those cases where a bfd * is not
  7210. available
  7211. 2.13.2.19 'bfd_arch_default_fill'
  7212. .................................
  7213. *Synopsis*
  7214. void *bfd_arch_default_fill (bfd_size_type count,
  7215. bfd_boolean is_bigendian,
  7216. bfd_boolean code);
  7217. *Description*
  7218. Allocate via bfd_malloc and return a fill buffer of size COUNT. If
  7219. IS_BIGENDIAN is TRUE, the order of bytes is big endian. If CODE is
  7220. TRUE, the buffer contains code.
  7221. 
  7222. File: bfd.info, Node: Opening and Closing, Next: Internal, Prev: Architectures, Up: BFD front end
  7223. /* Set to N to open the next N BFDs using an alternate id space. */
  7224. extern unsigned int bfd_use_reserved_id;
  7225. 2.14 Opening and closing BFDs
  7226. =============================
  7227. 2.14.1 Functions for opening and closing
  7228. ----------------------------------------
  7229. 2.14.1.1 'bfd_fopen'
  7230. ....................
  7231. *Synopsis*
  7232. bfd *bfd_fopen (const char *filename, const char *target,
  7233. const char *mode, int fd);
  7234. *Description*
  7235. Open the file FILENAME with the target TARGET. Return a pointer to the
  7236. created BFD. If FD is not -1, then 'fdopen' is used to open the file;
  7237. otherwise, 'fopen' is used. MODE is passed directly to 'fopen' or
  7238. 'fdopen'.
  7239. Calls 'bfd_find_target', so TARGET is interpreted as by that
  7240. function.
  7241. The new BFD is marked as cacheable iff FD is -1.
  7242. If 'NULL' is returned then an error has occured. Possible errors are
  7243. 'bfd_error_no_memory', 'bfd_error_invalid_target' or 'system_call'
  7244. error.
  7245. On error, FD is always closed.
  7246. A copy of the FILENAME argument is stored in the newly created BFD.
  7247. It can be accessed via the bfd_get_filename() macro.
  7248. 2.14.1.2 'bfd_openr'
  7249. ....................
  7250. *Synopsis*
  7251. bfd *bfd_openr (const char *filename, const char *target);
  7252. *Description*
  7253. Open the file FILENAME (using 'fopen') with the target TARGET. Return a
  7254. pointer to the created BFD.
  7255. Calls 'bfd_find_target', so TARGET is interpreted as by that
  7256. function.
  7257. If 'NULL' is returned then an error has occured. Possible errors are
  7258. 'bfd_error_no_memory', 'bfd_error_invalid_target' or 'system_call'
  7259. error.
  7260. A copy of the FILENAME argument is stored in the newly created BFD.
  7261. It can be accessed via the bfd_get_filename() macro.
  7262. 2.14.1.3 'bfd_fdopenr'
  7263. ......................
  7264. *Synopsis*
  7265. bfd *bfd_fdopenr (const char *filename, const char *target, int fd);
  7266. *Description*
  7267. 'bfd_fdopenr' is to 'bfd_fopenr' much like 'fdopen' is to 'fopen'. It
  7268. opens a BFD on a file already described by the FD supplied.
  7269. When the file is later 'bfd_close'd, the file descriptor will be
  7270. closed. If the caller desires that this file descriptor be cached by
  7271. BFD (opened as needed, closed as needed to free descriptors for other
  7272. opens), with the supplied FD used as an initial file descriptor (but
  7273. subject to closure at any time), call bfd_set_cacheable(bfd, 1) on the
  7274. returned BFD. The default is to assume no caching; the file descriptor
  7275. will remain open until 'bfd_close', and will not be affected by BFD
  7276. operations on other files.
  7277. Possible errors are 'bfd_error_no_memory', 'bfd_error_invalid_target'
  7278. and 'bfd_error_system_call'.
  7279. On error, FD is closed.
  7280. A copy of the FILENAME argument is stored in the newly created BFD.
  7281. It can be accessed via the bfd_get_filename() macro.
  7282. 2.14.1.4 'bfd_openstreamr'
  7283. ..........................
  7284. *Synopsis*
  7285. bfd *bfd_openstreamr (const char * filename, const char * target, void * stream);
  7286. *Description*
  7287. Open a BFD for read access on an existing stdio stream. When the BFD is
  7288. passed to 'bfd_close', the stream will be closed.
  7289. A copy of the FILENAME argument is stored in the newly created BFD.
  7290. It can be accessed via the bfd_get_filename() macro.
  7291. 2.14.1.5 'bfd_openr_iovec'
  7292. ..........................
  7293. *Synopsis*
  7294. bfd *bfd_openr_iovec (const char *filename, const char *target,
  7295. void *(*open_func) (struct bfd *nbfd,
  7296. void *open_closure),
  7297. void *open_closure,
  7298. file_ptr (*pread_func) (struct bfd *nbfd,
  7299. void *stream,
  7300. void *buf,
  7301. file_ptr nbytes,
  7302. file_ptr offset),
  7303. int (*close_func) (struct bfd *nbfd,
  7304. void *stream),
  7305. int (*stat_func) (struct bfd *abfd,
  7306. void *stream,
  7307. struct stat *sb));
  7308. *Description*
  7309. Create and return a BFD backed by a read-only STREAM. The STREAM is
  7310. created using OPEN_FUNC, accessed using PREAD_FUNC and destroyed using
  7311. CLOSE_FUNC.
  7312. Calls 'bfd_find_target', so TARGET is interpreted as by that
  7313. function.
  7314. Calls OPEN_FUNC (which can call 'bfd_zalloc' and 'bfd_get_filename')
  7315. to obtain the read-only stream backing the BFD. OPEN_FUNC either
  7316. succeeds returning the non-'NULL' STREAM, or fails returning 'NULL'
  7317. (setting 'bfd_error').
  7318. Calls PREAD_FUNC to request NBYTES of data from STREAM starting at
  7319. OFFSET (e.g., via a call to 'bfd_read'). PREAD_FUNC either succeeds
  7320. returning the number of bytes read (which can be less than NBYTES when
  7321. end-of-file), or fails returning -1 (setting 'bfd_error').
  7322. Calls CLOSE_FUNC when the BFD is later closed using 'bfd_close'.
  7323. CLOSE_FUNC either succeeds returning 0, or fails returning -1 (setting
  7324. 'bfd_error').
  7325. Calls STAT_FUNC to fill in a stat structure for bfd_stat,
  7326. bfd_get_size, and bfd_get_mtime calls. STAT_FUNC returns 0 on success,
  7327. or returns -1 on failure (setting 'bfd_error').
  7328. If 'bfd_openr_iovec' returns 'NULL' then an error has occurred.
  7329. Possible errors are 'bfd_error_no_memory', 'bfd_error_invalid_target'
  7330. and 'bfd_error_system_call'.
  7331. A copy of the FILENAME argument is stored in the newly created BFD.
  7332. It can be accessed via the bfd_get_filename() macro.
  7333. 2.14.1.6 'bfd_openw'
  7334. ....................
  7335. *Synopsis*
  7336. bfd *bfd_openw (const char *filename, const char *target);
  7337. *Description*
  7338. Create a BFD, associated with file FILENAME, using the file format
  7339. TARGET, and return a pointer to it.
  7340. Possible errors are 'bfd_error_system_call', 'bfd_error_no_memory',
  7341. 'bfd_error_invalid_target'.
  7342. A copy of the FILENAME argument is stored in the newly created BFD.
  7343. It can be accessed via the bfd_get_filename() macro.
  7344. 2.14.1.7 'bfd_close'
  7345. ....................
  7346. *Synopsis*
  7347. bfd_boolean bfd_close (bfd *abfd);
  7348. *Description*
  7349. Close a BFD. If the BFD was open for writing, then pending operations
  7350. are completed and the file written out and closed. If the created file
  7351. is executable, then 'chmod' is called to mark it as such.
  7352. All memory attached to the BFD is released.
  7353. The file descriptor associated with the BFD is closed (even if it was
  7354. passed in to BFD by 'bfd_fdopenr').
  7355. *Returns*
  7356. 'TRUE' is returned if all is ok, otherwise 'FALSE'.
  7357. 2.14.1.8 'bfd_close_all_done'
  7358. .............................
  7359. *Synopsis*
  7360. bfd_boolean bfd_close_all_done (bfd *);
  7361. *Description*
  7362. Close a BFD. Differs from 'bfd_close' since it does not complete any
  7363. pending operations. This routine would be used if the application had
  7364. just used BFD for swapping and didn't want to use any of the writing
  7365. code.
  7366. If the created file is executable, then 'chmod' is called to mark it
  7367. as such.
  7368. All memory attached to the BFD is released.
  7369. *Returns*
  7370. 'TRUE' is returned if all is ok, otherwise 'FALSE'.
  7371. 2.14.1.9 'bfd_create'
  7372. .....................
  7373. *Synopsis*
  7374. bfd *bfd_create (const char *filename, bfd *templ);
  7375. *Description*
  7376. Create a new BFD in the manner of 'bfd_openw', but without opening a
  7377. file. The new BFD takes the target from the target used by TEMPL. The
  7378. format is always set to 'bfd_object'.
  7379. A copy of the FILENAME argument is stored in the newly created BFD.
  7380. It can be accessed via the bfd_get_filename() macro.
  7381. 2.14.1.10 'bfd_make_writable'
  7382. .............................
  7383. *Synopsis*
  7384. bfd_boolean bfd_make_writable (bfd *abfd);
  7385. *Description*
  7386. Takes a BFD as created by 'bfd_create' and converts it into one like as
  7387. returned by 'bfd_openw'. It does this by converting the BFD to
  7388. BFD_IN_MEMORY. It's assumed that you will call 'bfd_make_readable' on
  7389. this bfd later.
  7390. *Returns*
  7391. 'TRUE' is returned if all is ok, otherwise 'FALSE'.
  7392. 2.14.1.11 'bfd_make_readable'
  7393. .............................
  7394. *Synopsis*
  7395. bfd_boolean bfd_make_readable (bfd *abfd);
  7396. *Description*
  7397. Takes a BFD as created by 'bfd_create' and 'bfd_make_writable' and
  7398. converts it into one like as returned by 'bfd_openr'. It does this by
  7399. writing the contents out to the memory buffer, then reversing the
  7400. direction.
  7401. *Returns*
  7402. 'TRUE' is returned if all is ok, otherwise 'FALSE'.
  7403. 2.14.1.12 'bfd_alloc'
  7404. .....................
  7405. *Synopsis*
  7406. void *bfd_alloc (bfd *abfd, bfd_size_type wanted);
  7407. *Description*
  7408. Allocate a block of WANTED bytes of memory attached to 'abfd' and return
  7409. a pointer to it.
  7410. 2.14.1.13 'bfd_alloc2'
  7411. ......................
  7412. *Synopsis*
  7413. void *bfd_alloc2 (bfd *abfd, bfd_size_type nmemb, bfd_size_type size);
  7414. *Description*
  7415. Allocate a block of NMEMB elements of SIZE bytes each of memory attached
  7416. to 'abfd' and return a pointer to it.
  7417. 2.14.1.14 'bfd_zalloc'
  7418. ......................
  7419. *Synopsis*
  7420. void *bfd_zalloc (bfd *abfd, bfd_size_type wanted);
  7421. *Description*
  7422. Allocate a block of WANTED bytes of zeroed memory attached to 'abfd' and
  7423. return a pointer to it.
  7424. 2.14.1.15 'bfd_zalloc2'
  7425. .......................
  7426. *Synopsis*
  7427. void *bfd_zalloc2 (bfd *abfd, bfd_size_type nmemb, bfd_size_type size);
  7428. *Description*
  7429. Allocate a block of NMEMB elements of SIZE bytes each of zeroed memory
  7430. attached to 'abfd' and return a pointer to it.
  7431. 2.14.1.16 'bfd_calc_gnu_debuglink_crc32'
  7432. ........................................
  7433. *Synopsis*
  7434. unsigned long bfd_calc_gnu_debuglink_crc32
  7435. (unsigned long crc, const unsigned char *buf, bfd_size_type len);
  7436. *Description*
  7437. Computes a CRC value as used in the .gnu_debuglink section. Advances
  7438. the previously computed CRC value by computing and adding in the crc32
  7439. for LEN bytes of BUF.
  7440. *Returns*
  7441. Return the updated CRC32 value.
  7442. 2.14.1.17 'bfd_get_debug_link_info'
  7443. ...................................
  7444. *Synopsis*
  7445. char *bfd_get_debug_link_info (bfd *abfd, unsigned long *crc32_out);
  7446. *Description*
  7447. Fetch the filename and CRC32 value for any separate debuginfo associated
  7448. with ABFD. Return NULL if no such info found, otherwise return filename
  7449. and update CRC32_OUT. The returned filename is allocated with 'malloc';
  7450. freeing it is the responsibility of the caller.
  7451. 2.14.1.18 'bfd_get_alt_debug_link_info'
  7452. .......................................
  7453. *Synopsis*
  7454. char *bfd_get_alt_debug_link_info (bfd * abfd,
  7455. bfd_size_type *buildid_len,
  7456. bfd_byte **buildid_out);
  7457. *Description*
  7458. Fetch the filename and BuildID value for any alternate debuginfo
  7459. associated with ABFD. Return NULL if no such info found, otherwise
  7460. return filename and update BUILDID_LEN and BUILDID_OUT. The returned
  7461. filename and build_id are allocated with 'malloc'; freeing them is the
  7462. responsibility of the caller.
  7463. 2.14.1.19 'separate_debug_file_exists'
  7464. ......................................
  7465. *Synopsis*
  7466. bfd_boolean separate_debug_file_exists
  7467. (char *name, unsigned long crc32);
  7468. *Description*
  7469. Checks to see if NAME is a file and if its contents match CRC32.
  7470. 2.14.1.20 'separate_alt_debug_file_exists'
  7471. ..........................................
  7472. *Synopsis*
  7473. bfd_boolean separate_alt_debug_file_exists
  7474. (char *name, unsigned long buildid);
  7475. *Description*
  7476. Checks to see if NAME is a file and if its BuildID matches BUILDID.
  7477. 2.14.1.21 'find_separate_debug_file'
  7478. ....................................
  7479. *Synopsis*
  7480. char *find_separate_debug_file
  7481. (bfd *abfd, const char *dir, bfd_boolean include_dirs,
  7482. get_func_type get, check_func_type check);
  7483. *Description*
  7484. Searches for a debug information file corresponding to ABFD. The name
  7485. of the separate debug info file is returned by the GET function. This
  7486. function scans various fixed locations in the filesystem, including the
  7487. file tree rooted at DIR. If the INCLUDE_DIRS parameter is true then the
  7488. directory components of ABFD's filename will be included in the searched
  7489. locations.
  7490. Returns the filename of the first file to be found which receives a
  7491. TRUE result from the CHECK function. Returns NULL if no valid file
  7492. could be found.
  7493. 2.14.1.22 'bfd_follow_gnu_debuglink'
  7494. ....................................
  7495. *Synopsis*
  7496. char *bfd_follow_gnu_debuglink (bfd *abfd, const char *dir);
  7497. *Description*
  7498. Takes a BFD and searches it for a .gnu_debuglink section. If this
  7499. section is found, it examines the section for the name and checksum of a
  7500. '.debug' file containing auxiliary debugging information. It then
  7501. searches the filesystem for this .debug file in some standard locations,
  7502. including the directory tree rooted at DIR, and if found returns the
  7503. full filename.
  7504. If DIR is NULL, the search will take place starting at the current
  7505. directory.
  7506. *Returns*
  7507. 'NULL' on any errors or failure to locate the .debug file, otherwise a
  7508. pointer to a heap-allocated string containing the filename. The caller
  7509. is responsible for freeing this string.
  7510. 2.14.1.23 'bfd_follow_gnu_debugaltlink'
  7511. .......................................
  7512. *Synopsis*
  7513. char *bfd_follow_gnu_debugaltlink (bfd *abfd, const char *dir);
  7514. *Description*
  7515. Takes a BFD and searches it for a .gnu_debugaltlink section. If this
  7516. section is found, it examines the section for the name of a file
  7517. containing auxiliary debugging information. It then searches the
  7518. filesystem for this file in a set of standard locations, including the
  7519. directory tree rooted at DIR, and if found returns the full filename.
  7520. If DIR is NULL, the search will take place starting at the current
  7521. directory.
  7522. *Returns*
  7523. 'NULL' on any errors or failure to locate the debug file, otherwise a
  7524. pointer to a heap-allocated string containing the filename. The caller
  7525. is responsible for freeing this string.
  7526. 2.14.1.24 'bfd_create_gnu_debuglink_section'
  7527. ............................................
  7528. *Synopsis*
  7529. struct bfd_section *bfd_create_gnu_debuglink_section
  7530. (bfd *abfd, const char *filename);
  7531. *Description*
  7532. Takes a BFD and adds a .gnu_debuglink section to it. The section is
  7533. sized to be big enough to contain a link to the specified FILENAME.
  7534. *Returns*
  7535. A pointer to the new section is returned if all is ok. Otherwise 'NULL'
  7536. is returned and bfd_error is set.
  7537. 2.14.1.25 'bfd_fill_in_gnu_debuglink_section'
  7538. .............................................
  7539. *Synopsis*
  7540. bfd_boolean bfd_fill_in_gnu_debuglink_section
  7541. (bfd *abfd, struct bfd_section *sect, const char *filename);
  7542. *Description*
  7543. Takes a BFD and containing a .gnu_debuglink section SECT and fills in
  7544. the contents of the section to contain a link to the specified FILENAME.
  7545. The filename should be relative to the current directory.
  7546. *Returns*
  7547. 'TRUE' is returned if all is ok. Otherwise 'FALSE' is returned and
  7548. bfd_error is set.
  7549. 2.14.1.26 'get_build_id'
  7550. ........................
  7551. *Synopsis*
  7552. struct bfd_build_id * get_build_id
  7553. (bfd *abfd);
  7554. *Description*
  7555. Finds the build-id associated with ABFD. If the build-id is extracted
  7556. from the note section then a build-id structure is built for it, using
  7557. memory allocated to ABFD, and this is then attached to the ABFD.
  7558. Returns a pointer to the build-id structure if a build-id could be
  7559. found. If no build-id is found NULL is returned and error code is set.
  7560. 2.14.1.27 'get_build_id_name'
  7561. .............................
  7562. *Synopsis*
  7563. char * get_build_id_name
  7564. (bfd *abfd, unsigned long *build_id_out)
  7565. *Description*
  7566. Searches ABFD for a build-id, and then constructs a pathname from it.
  7567. The path is computed as .build-id/NN/NN+NN.debug where NNNN+NN is the
  7568. build-id value as a hexadecimal string.
  7569. Returns the constructed filename or NULL upon error. It is the
  7570. caller's responsibility to free the memory used to hold the filename.
  7571. If a filename is returned then the BUILD_ID_OUT parameter is set to a
  7572. pointer to the build_id structure.
  7573. 2.14.1.28 'check_build_id_file'
  7574. ...............................
  7575. *Synopsis*
  7576. bfd_boolean check_build_id_file
  7577. (char *name, unsigned long buildid);
  7578. *Description*
  7579. Checks to see if NAME is a readable file and if its build-id matches
  7580. BUILDID.
  7581. Returns TRUE if the file exists, is readable, and contains a build-id
  7582. which matches BUILD-ID.
  7583. 2.14.1.29 'bfd_follow_build_id_debuglink'
  7584. .........................................
  7585. *Synopsis*
  7586. char *bfd_follow_build_id_debuglink (bfd *abfd, const char *dir);
  7587. *Description*
  7588. Takes ABFD and searches it for a .note.gnu.build-id section. If this
  7589. section is found, it extracts the value of the NT_GNU_BUILD_ID note,
  7590. which should be a hexadecimal value NNNN+NN (for 32+ hex digits). It
  7591. then searches the filesystem for a file named .BUILD-ID/NN/NN+NN.DEBUG
  7592. in a set of standard locations, including the directory tree rooted at
  7593. DIR. The filename of the first matching file to be found is returned.
  7594. A matching file should contain a .note.gnu.build-id section with the
  7595. same NNNN+NN note as ABFD, although this check is currently not
  7596. implemented.
  7597. If DIR is NULL, the search will take place starting at the current
  7598. directory.
  7599. *Returns*
  7600. 'NULL' on any errors or failure to locate the debug file, otherwise a
  7601. pointer to a heap-allocated string containing the filename. The caller
  7602. is responsible for freeing this string.
  7603. 
  7604. File: bfd.info, Node: Internal, Next: File Caching, Prev: Opening and Closing, Up: BFD front end
  7605. 2.15 Implementation details
  7606. ===========================
  7607. 2.15.1 Internal functions
  7608. -------------------------
  7609. *Description*
  7610. These routines are used within BFD. They are not intended for export,
  7611. but are documented here for completeness.
  7612. 2.15.1.1 'bfd_write_bigendian_4byte_int'
  7613. ........................................
  7614. *Synopsis*
  7615. bfd_boolean bfd_write_bigendian_4byte_int (bfd *, unsigned int);
  7616. *Description*
  7617. Write a 4 byte integer I to the output BFD ABFD, in big endian order
  7618. regardless of what else is going on. This is useful in archives.
  7619. 2.15.1.2 'bfd_put_size'
  7620. .......................
  7621. 2.15.1.3 'bfd_get_size'
  7622. .......................
  7623. *Description*
  7624. These macros as used for reading and writing raw data in sections; each
  7625. access (except for bytes) is vectored through the target format of the
  7626. BFD and mangled accordingly. The mangling performs any necessary endian
  7627. translations and removes alignment restrictions. Note that types
  7628. accepted and returned by these macros are identical so they can be
  7629. swapped around in macros--for example, 'libaout.h' defines 'GET_WORD' to
  7630. either 'bfd_get_32' or 'bfd_get_64'.
  7631. In the put routines, VAL must be a 'bfd_vma'. If we are on a system
  7632. without prototypes, the caller is responsible for making sure that is
  7633. true, with a cast if necessary. We don't cast them in the macro
  7634. definitions because that would prevent 'lint' or 'gcc -Wall' from
  7635. detecting sins such as passing a pointer. To detect calling these with
  7636. less than a 'bfd_vma', use 'gcc -Wconversion' on a host with 64 bit
  7637. 'bfd_vma''s.
  7638. /* Byte swapping macros for user section data. */
  7639. #define bfd_put_8(abfd, val, ptr) \
  7640. ((void) (*((unsigned char *) (ptr)) = (val) & 0xff))
  7641. #define bfd_put_signed_8 \
  7642. bfd_put_8
  7643. #define bfd_get_8(abfd, ptr) \
  7644. (*(const unsigned char *) (ptr) & 0xff)
  7645. #define bfd_get_signed_8(abfd, ptr) \
  7646. (((*(const unsigned char *) (ptr) & 0xff) ^ 0x80) - 0x80)
  7647. #define bfd_put_16(abfd, val, ptr) \
  7648. BFD_SEND (abfd, bfd_putx16, ((val),(ptr)))
  7649. #define bfd_put_signed_16 \
  7650. bfd_put_16
  7651. #define bfd_get_16(abfd, ptr) \
  7652. BFD_SEND (abfd, bfd_getx16, (ptr))
  7653. #define bfd_get_signed_16(abfd, ptr) \
  7654. BFD_SEND (abfd, bfd_getx_signed_16, (ptr))
  7655. #define bfd_put_32(abfd, val, ptr) \
  7656. BFD_SEND (abfd, bfd_putx32, ((val),(ptr)))
  7657. #define bfd_put_signed_32 \
  7658. bfd_put_32
  7659. #define bfd_get_32(abfd, ptr) \
  7660. BFD_SEND (abfd, bfd_getx32, (ptr))
  7661. #define bfd_get_signed_32(abfd, ptr) \
  7662. BFD_SEND (abfd, bfd_getx_signed_32, (ptr))
  7663. #define bfd_put_64(abfd, val, ptr) \
  7664. BFD_SEND (abfd, bfd_putx64, ((val), (ptr)))
  7665. #define bfd_put_signed_64 \
  7666. bfd_put_64
  7667. #define bfd_get_64(abfd, ptr) \
  7668. BFD_SEND (abfd, bfd_getx64, (ptr))
  7669. #define bfd_get_signed_64(abfd, ptr) \
  7670. BFD_SEND (abfd, bfd_getx_signed_64, (ptr))
  7671. #define bfd_get(bits, abfd, ptr) \
  7672. ((bits) == 8 ? (bfd_vma) bfd_get_8 (abfd, ptr) \
  7673. : (bits) == 16 ? bfd_get_16 (abfd, ptr) \
  7674. : (bits) == 32 ? bfd_get_32 (abfd, ptr) \
  7675. : (bits) == 64 ? bfd_get_64 (abfd, ptr) \
  7676. : (abort (), (bfd_vma) - 1))
  7677. #define bfd_put(bits, abfd, val, ptr) \
  7678. ((bits) == 8 ? bfd_put_8 (abfd, val, ptr) \
  7679. : (bits) == 16 ? bfd_put_16 (abfd, val, ptr) \
  7680. : (bits) == 32 ? bfd_put_32 (abfd, val, ptr) \
  7681. : (bits) == 64 ? bfd_put_64 (abfd, val, ptr) \
  7682. : (abort (), (void) 0))
  7683. 2.15.1.4 'bfd_h_put_size'
  7684. .........................
  7685. *Description*
  7686. These macros have the same function as their 'bfd_get_x' brethren,
  7687. except that they are used for removing information for the header
  7688. records of object files. Believe it or not, some object files keep
  7689. their header records in big endian order and their data in little endian
  7690. order.
  7691. /* Byte swapping macros for file header data. */
  7692. #define bfd_h_put_8(abfd, val, ptr) \
  7693. bfd_put_8 (abfd, val, ptr)
  7694. #define bfd_h_put_signed_8(abfd, val, ptr) \
  7695. bfd_put_8 (abfd, val, ptr)
  7696. #define bfd_h_get_8(abfd, ptr) \
  7697. bfd_get_8 (abfd, ptr)
  7698. #define bfd_h_get_signed_8(abfd, ptr) \
  7699. bfd_get_signed_8 (abfd, ptr)
  7700. #define bfd_h_put_16(abfd, val, ptr) \
  7701. BFD_SEND (abfd, bfd_h_putx16, (val, ptr))
  7702. #define bfd_h_put_signed_16 \
  7703. bfd_h_put_16
  7704. #define bfd_h_get_16(abfd, ptr) \
  7705. BFD_SEND (abfd, bfd_h_getx16, (ptr))
  7706. #define bfd_h_get_signed_16(abfd, ptr) \
  7707. BFD_SEND (abfd, bfd_h_getx_signed_16, (ptr))
  7708. #define bfd_h_put_32(abfd, val, ptr) \
  7709. BFD_SEND (abfd, bfd_h_putx32, (val, ptr))
  7710. #define bfd_h_put_signed_32 \
  7711. bfd_h_put_32
  7712. #define bfd_h_get_32(abfd, ptr) \
  7713. BFD_SEND (abfd, bfd_h_getx32, (ptr))
  7714. #define bfd_h_get_signed_32(abfd, ptr) \
  7715. BFD_SEND (abfd, bfd_h_getx_signed_32, (ptr))
  7716. #define bfd_h_put_64(abfd, val, ptr) \
  7717. BFD_SEND (abfd, bfd_h_putx64, (val, ptr))
  7718. #define bfd_h_put_signed_64 \
  7719. bfd_h_put_64
  7720. #define bfd_h_get_64(abfd, ptr) \
  7721. BFD_SEND (abfd, bfd_h_getx64, (ptr))
  7722. #define bfd_h_get_signed_64(abfd, ptr) \
  7723. BFD_SEND (abfd, bfd_h_getx_signed_64, (ptr))
  7724. /* Aliases for the above, which should eventually go away. */
  7725. #define H_PUT_64 bfd_h_put_64
  7726. #define H_PUT_32 bfd_h_put_32
  7727. #define H_PUT_16 bfd_h_put_16
  7728. #define H_PUT_8 bfd_h_put_8
  7729. #define H_PUT_S64 bfd_h_put_signed_64
  7730. #define H_PUT_S32 bfd_h_put_signed_32
  7731. #define H_PUT_S16 bfd_h_put_signed_16
  7732. #define H_PUT_S8 bfd_h_put_signed_8
  7733. #define H_GET_64 bfd_h_get_64
  7734. #define H_GET_32 bfd_h_get_32
  7735. #define H_GET_16 bfd_h_get_16
  7736. #define H_GET_8 bfd_h_get_8
  7737. #define H_GET_S64 bfd_h_get_signed_64
  7738. #define H_GET_S32 bfd_h_get_signed_32
  7739. #define H_GET_S16 bfd_h_get_signed_16
  7740. #define H_GET_S8 bfd_h_get_signed_8
  7741. 2.15.1.5 'bfd_log2'
  7742. ...................
  7743. *Synopsis*
  7744. unsigned int bfd_log2 (bfd_vma x);
  7745. *Description*
  7746. Return the log base 2 of the value supplied, rounded up. E.g., an X of
  7747. 1025 returns 11. A X of 0 returns 0.
  7748. 
  7749. File: bfd.info, Node: File Caching, Next: Linker Functions, Prev: Internal, Up: BFD front end
  7750. 2.16 File caching
  7751. =================
  7752. The file caching mechanism is embedded within BFD and allows the
  7753. application to open as many BFDs as it wants without regard to the
  7754. underlying operating system's file descriptor limit (often as low as 20
  7755. open files). The module in 'cache.c' maintains a least recently used
  7756. list of 'bfd_cache_max_open' files, and exports the name
  7757. 'bfd_cache_lookup', which runs around and makes sure that the required
  7758. BFD is open. If not, then it chooses a file to close, closes it and
  7759. opens the one wanted, returning its file handle.
  7760. 2.16.1 Caching functions
  7761. ------------------------
  7762. 2.16.1.1 'bfd_cache_init'
  7763. .........................
  7764. *Synopsis*
  7765. bfd_boolean bfd_cache_init (bfd *abfd);
  7766. *Description*
  7767. Add a newly opened BFD to the cache.
  7768. 2.16.1.2 'bfd_cache_close'
  7769. ..........................
  7770. *Synopsis*
  7771. bfd_boolean bfd_cache_close (bfd *abfd);
  7772. *Description*
  7773. Remove the BFD ABFD from the cache. If the attached file is open, then
  7774. close it too.
  7775. *Returns*
  7776. 'FALSE' is returned if closing the file fails, 'TRUE' is returned if all
  7777. is well.
  7778. 2.16.1.3 'bfd_cache_close_all'
  7779. ..............................
  7780. *Synopsis*
  7781. bfd_boolean bfd_cache_close_all (void);
  7782. *Description*
  7783. Remove all BFDs from the cache. If the attached file is open, then
  7784. close it too.
  7785. *Returns*
  7786. 'FALSE' is returned if closing one of the file fails, 'TRUE' is returned
  7787. if all is well.
  7788. 2.16.1.4 'bfd_open_file'
  7789. ........................
  7790. *Synopsis*
  7791. FILE* bfd_open_file (bfd *abfd);
  7792. *Description*
  7793. Call the OS to open a file for ABFD. Return the 'FILE *' (possibly
  7794. 'NULL') that results from this operation. Set up the BFD so that future
  7795. accesses know the file is open. If the 'FILE *' returned is 'NULL',
  7796. then it won't have been put in the cache, so it won't have to be removed
  7797. from it.
  7798. 
  7799. File: bfd.info, Node: Linker Functions, Next: Hash Tables, Prev: File Caching, Up: BFD front end
  7800. 2.17 Linker Functions
  7801. =====================
  7802. The linker uses three special entry points in the BFD target vector. It
  7803. is not necessary to write special routines for these entry points when
  7804. creating a new BFD back end, since generic versions are provided.
  7805. However, writing them can speed up linking and make it use significantly
  7806. less runtime memory.
  7807. The first routine creates a hash table used by the other routines.
  7808. The second routine adds the symbols from an object file to the hash
  7809. table. The third routine takes all the object files and links them
  7810. together to create the output file. These routines are designed so that
  7811. the linker proper does not need to know anything about the symbols in
  7812. the object files that it is linking. The linker merely arranges the
  7813. sections as directed by the linker script and lets BFD handle the
  7814. details of symbols and relocs.
  7815. The second routine and third routines are passed a pointer to a
  7816. 'struct bfd_link_info' structure (defined in 'bfdlink.h') which holds
  7817. information relevant to the link, including the linker hash table (which
  7818. was created by the first routine) and a set of callback functions to the
  7819. linker proper.
  7820. The generic linker routines are in 'linker.c', and use the header
  7821. file 'genlink.h'. As of this writing, the only back ends which have
  7822. implemented versions of these routines are a.out (in 'aoutx.h') and
  7823. ECOFF (in 'ecoff.c'). The a.out routines are used as examples
  7824. throughout this section.
  7825. * Menu:
  7826. * Creating a Linker Hash Table::
  7827. * Adding Symbols to the Hash Table::
  7828. * Performing the Final Link::
  7829. 
  7830. File: bfd.info, Node: Creating a Linker Hash Table, Next: Adding Symbols to the Hash Table, Prev: Linker Functions, Up: Linker Functions
  7831. 2.17.1 Creating a linker hash table
  7832. -----------------------------------
  7833. The linker routines must create a hash table, which must be derived from
  7834. 'struct bfd_link_hash_table' described in 'bfdlink.c'. *Note Hash
  7835. Tables::, for information on how to create a derived hash table. This
  7836. entry point is called using the target vector of the linker output file.
  7837. The '_bfd_link_hash_table_create' entry point must allocate and
  7838. initialize an instance of the desired hash table. If the back end does
  7839. not require any additional information to be stored with the entries in
  7840. the hash table, the entry point may simply create a 'struct
  7841. bfd_link_hash_table'. Most likely, however, some additional information
  7842. will be needed.
  7843. For example, with each entry in the hash table the a.out linker keeps
  7844. the index the symbol has in the final output file (this index number is
  7845. used so that when doing a relocatable link the symbol index used in the
  7846. output file can be quickly filled in when copying over a reloc). The
  7847. a.out linker code defines the required structures and functions for a
  7848. hash table derived from 'struct bfd_link_hash_table'. The a.out linker
  7849. hash table is created by the function
  7850. 'NAME(aout,link_hash_table_create)'; it simply allocates space for the
  7851. hash table, initializes it, and returns a pointer to it.
  7852. When writing the linker routines for a new back end, you will
  7853. generally not know exactly which fields will be required until you have
  7854. finished. You should simply create a new hash table which defines no
  7855. additional fields, and then simply add fields as they become necessary.
  7856. 
  7857. File: bfd.info, Node: Adding Symbols to the Hash Table, Next: Performing the Final Link, Prev: Creating a Linker Hash Table, Up: Linker Functions
  7858. 2.17.2 Adding symbols to the hash table
  7859. ---------------------------------------
  7860. The linker proper will call the '_bfd_link_add_symbols' entry point for
  7861. each object file or archive which is to be linked (typically these are
  7862. the files named on the command line, but some may also come from the
  7863. linker script). The entry point is responsible for examining the file.
  7864. For an object file, BFD must add any relevant symbol information to the
  7865. hash table. For an archive, BFD must determine which elements of the
  7866. archive should be used and adding them to the link.
  7867. The a.out version of this entry point is
  7868. 'NAME(aout,link_add_symbols)'.
  7869. * Menu:
  7870. * Differing file formats::
  7871. * Adding symbols from an object file::
  7872. * Adding symbols from an archive::
  7873. 
  7874. File: bfd.info, Node: Differing file formats, Next: Adding symbols from an object file, Prev: Adding Symbols to the Hash Table, Up: Adding Symbols to the Hash Table
  7875. 2.17.2.1 Differing file formats
  7876. ...............................
  7877. Normally all the files involved in a link will be of the same format,
  7878. but it is also possible to link together different format object files,
  7879. and the back end must support that. The '_bfd_link_add_symbols' entry
  7880. point is called via the target vector of the file to be added. This has
  7881. an important consequence: the function may not assume that the hash
  7882. table is the type created by the corresponding
  7883. '_bfd_link_hash_table_create' vector. All the '_bfd_link_add_symbols'
  7884. function can assume about the hash table is that it is derived from
  7885. 'struct bfd_link_hash_table'.
  7886. Sometimes the '_bfd_link_add_symbols' function must store some
  7887. information in the hash table entry to be used by the '_bfd_final_link'
  7888. function. In such a case the output bfd xvec must be checked to make
  7889. sure that the hash table was created by an object file of the same
  7890. format.
  7891. The '_bfd_final_link' routine must be prepared to handle a hash entry
  7892. without any extra information added by the '_bfd_link_add_symbols'
  7893. function. A hash entry without extra information will also occur when
  7894. the linker script directs the linker to create a symbol. Note that,
  7895. regardless of how a hash table entry is added, all the fields will be
  7896. initialized to some sort of null value by the hash table entry
  7897. initialization function.
  7898. See 'ecoff_link_add_externals' for an example of how to check the
  7899. output bfd before saving information (in this case, the ECOFF external
  7900. symbol debugging information) in a hash table entry.
  7901. 
  7902. File: bfd.info, Node: Adding symbols from an object file, Next: Adding symbols from an archive, Prev: Differing file formats, Up: Adding Symbols to the Hash Table
  7903. 2.17.2.2 Adding symbols from an object file
  7904. ...........................................
  7905. When the '_bfd_link_add_symbols' routine is passed an object file, it
  7906. must add all externally visible symbols in that object file to the hash
  7907. table. The actual work of adding the symbol to the hash table is
  7908. normally handled by the function '_bfd_generic_link_add_one_symbol'.
  7909. The '_bfd_link_add_symbols' routine is responsible for reading all the
  7910. symbols from the object file and passing the correct information to
  7911. '_bfd_generic_link_add_one_symbol'.
  7912. The '_bfd_link_add_symbols' routine should not use
  7913. 'bfd_canonicalize_symtab' to read the symbols. The point of providing
  7914. this routine is to avoid the overhead of converting the symbols into
  7915. generic 'asymbol' structures.
  7916. '_bfd_generic_link_add_one_symbol' handles the details of combining
  7917. common symbols, warning about multiple definitions, and so forth. It
  7918. takes arguments which describe the symbol to add, notably symbol flags,
  7919. a section, and an offset. The symbol flags include such things as
  7920. 'BSF_WEAK' or 'BSF_INDIRECT'. The section is a section in the object
  7921. file, or something like 'bfd_und_section_ptr' for an undefined symbol or
  7922. 'bfd_com_section_ptr' for a common symbol.
  7923. If the '_bfd_final_link' routine is also going to need to read the
  7924. symbol information, the '_bfd_link_add_symbols' routine should save it
  7925. somewhere attached to the object file BFD. However, the information
  7926. should only be saved if the 'keep_memory' field of the 'info' argument
  7927. is TRUE, so that the '-no-keep-memory' linker switch is effective.
  7928. The a.out function which adds symbols from an object file is
  7929. 'aout_link_add_object_symbols', and most of the interesting work is in
  7930. 'aout_link_add_symbols'. The latter saves pointers to the hash tables
  7931. entries created by '_bfd_generic_link_add_one_symbol' indexed by symbol
  7932. number, so that the '_bfd_final_link' routine does not have to call the
  7933. hash table lookup routine to locate the entry.
  7934. 
  7935. File: bfd.info, Node: Adding symbols from an archive, Prev: Adding symbols from an object file, Up: Adding Symbols to the Hash Table
  7936. 2.17.2.3 Adding symbols from an archive
  7937. .......................................
  7938. When the '_bfd_link_add_symbols' routine is passed an archive, it must
  7939. look through the symbols defined by the archive and decide which
  7940. elements of the archive should be included in the link. For each such
  7941. element it must call the 'add_archive_element' linker callback, and it
  7942. must add the symbols from the object file to the linker hash table.
  7943. (The callback may in fact indicate that a replacement BFD should be
  7944. used, in which case the symbols from that BFD should be added to the
  7945. linker hash table instead.)
  7946. In most cases the work of looking through the symbols in the archive
  7947. should be done by the '_bfd_generic_link_add_archive_symbols' function.
  7948. '_bfd_generic_link_add_archive_symbols' is passed a function to call to
  7949. make the final decision about adding an archive element to the link and
  7950. to do the actual work of adding the symbols to the linker hash table.
  7951. If the element is to be included, the 'add_archive_element' linker
  7952. callback routine must be called with the element as an argument, and the
  7953. element's symbols must be added to the linker hash table just as though
  7954. the element had itself been passed to the '_bfd_link_add_symbols'
  7955. function.
  7956. When the a.out '_bfd_link_add_symbols' function receives an archive,
  7957. it calls '_bfd_generic_link_add_archive_symbols' passing
  7958. 'aout_link_check_archive_element' as the function argument.
  7959. 'aout_link_check_archive_element' calls 'aout_link_check_ar_symbols'.
  7960. If the latter decides to add the element (an element is only added if it
  7961. provides a real, non-common, definition for a previously undefined or
  7962. common symbol) it calls the 'add_archive_element' callback and then
  7963. 'aout_link_check_archive_element' calls 'aout_link_add_symbols' to
  7964. actually add the symbols to the linker hash table - possibly those of a
  7965. substitute BFD, if the 'add_archive_element' callback avails itself of
  7966. that option.
  7967. The ECOFF back end is unusual in that it does not normally call
  7968. '_bfd_generic_link_add_archive_symbols', because ECOFF archives already
  7969. contain a hash table of symbols. The ECOFF back end searches the
  7970. archive itself to avoid the overhead of creating a new hash table.
  7971. 
  7972. File: bfd.info, Node: Performing the Final Link, Prev: Adding Symbols to the Hash Table, Up: Linker Functions
  7973. 2.17.3 Performing the final link
  7974. --------------------------------
  7975. When all the input files have been processed, the linker calls the
  7976. '_bfd_final_link' entry point of the output BFD. This routine is
  7977. responsible for producing the final output file, which has several
  7978. aspects. It must relocate the contents of the input sections and copy
  7979. the data into the output sections. It must build an output symbol table
  7980. including any local symbols from the input files and the global symbols
  7981. from the hash table. When producing relocatable output, it must modify
  7982. the input relocs and write them into the output file. There may also be
  7983. object format dependent work to be done.
  7984. The linker will also call the 'write_object_contents' entry point
  7985. when the BFD is closed. The two entry points must work together in
  7986. order to produce the correct output file.
  7987. The details of how this works are inevitably dependent upon the
  7988. specific object file format. The a.out '_bfd_final_link' routine is
  7989. 'NAME(aout,final_link)'.
  7990. * Menu:
  7991. * Information provided by the linker::
  7992. * Relocating the section contents::
  7993. * Writing the symbol table::
  7994. 
  7995. File: bfd.info, Node: Information provided by the linker, Next: Relocating the section contents, Prev: Performing the Final Link, Up: Performing the Final Link
  7996. 2.17.3.1 Information provided by the linker
  7997. ...........................................
  7998. Before the linker calls the '_bfd_final_link' entry point, it sets up
  7999. some data structures for the function to use.
  8000. The 'input_bfds' field of the 'bfd_link_info' structure will point to
  8001. a list of all the input files included in the link. These files are
  8002. linked through the 'link.next' field of the 'bfd' structure.
  8003. Each section in the output file will have a list of 'link_order'
  8004. structures attached to the 'map_head.link_order' field (the 'link_order'
  8005. structure is defined in 'bfdlink.h'). These structures describe how to
  8006. create the contents of the output section in terms of the contents of
  8007. various input sections, fill constants, and, eventually, other types of
  8008. information. They also describe relocs that must be created by the BFD
  8009. backend, but do not correspond to any input file; this is used to
  8010. support -Ur, which builds constructors while generating a relocatable
  8011. object file.
  8012. 
  8013. File: bfd.info, Node: Relocating the section contents, Next: Writing the symbol table, Prev: Information provided by the linker, Up: Performing the Final Link
  8014. 2.17.3.2 Relocating the section contents
  8015. ........................................
  8016. The '_bfd_final_link' function should look through the 'link_order'
  8017. structures attached to each section of the output file. Each
  8018. 'link_order' structure should either be handled specially, or it should
  8019. be passed to the function '_bfd_default_link_order' which will do the
  8020. right thing ('_bfd_default_link_order' is defined in 'linker.c').
  8021. For efficiency, a 'link_order' of type 'bfd_indirect_link_order'
  8022. whose associated section belongs to a BFD of the same format as the
  8023. output BFD must be handled specially. This type of 'link_order'
  8024. describes part of an output section in terms of a section belonging to
  8025. one of the input files. The '_bfd_final_link' function should read the
  8026. contents of the section and any associated relocs, apply the relocs to
  8027. the section contents, and write out the modified section contents. If
  8028. performing a relocatable link, the relocs themselves must also be
  8029. modified and written out.
  8030. The functions '_bfd_relocate_contents' and '_bfd_final_link_relocate'
  8031. provide some general support for performing the actual relocations,
  8032. notably overflow checking. Their arguments include information about
  8033. the symbol the relocation is against and a 'reloc_howto_type' argument
  8034. which describes the relocation to perform. These functions are defined
  8035. in 'reloc.c'.
  8036. The a.out function which handles reading, relocating, and writing
  8037. section contents is 'aout_link_input_section'. The actual relocation is
  8038. done in 'aout_link_input_section_std' and 'aout_link_input_section_ext'.
  8039. 
  8040. File: bfd.info, Node: Writing the symbol table, Prev: Relocating the section contents, Up: Performing the Final Link
  8041. 2.17.3.3 Writing the symbol table
  8042. .................................
  8043. The '_bfd_final_link' function must gather all the symbols in the input
  8044. files and write them out. It must also write out all the symbols in the
  8045. global hash table. This must be controlled by the 'strip' and 'discard'
  8046. fields of the 'bfd_link_info' structure.
  8047. The local symbols of the input files will not have been entered into
  8048. the linker hash table. The '_bfd_final_link' routine must consider each
  8049. input file and include the symbols in the output file. It may be
  8050. convenient to do this when looking through the 'link_order' structures,
  8051. or it may be done by stepping through the 'input_bfds' list.
  8052. The '_bfd_final_link' routine must also traverse the global hash
  8053. table to gather all the externally visible symbols. It is possible that
  8054. most of the externally visible symbols may be written out when
  8055. considering the symbols of each input file, but it is still necessary to
  8056. traverse the hash table since the linker script may have defined some
  8057. symbols that are not in any of the input files.
  8058. The 'strip' field of the 'bfd_link_info' structure controls which
  8059. symbols are written out. The possible values are listed in 'bfdlink.h'.
  8060. If the value is 'strip_some', then the 'keep_hash' field of the
  8061. 'bfd_link_info' structure is a hash table of symbols to keep; each
  8062. symbol should be looked up in this hash table, and only symbols which
  8063. are present should be included in the output file.
  8064. If the 'strip' field of the 'bfd_link_info' structure permits local
  8065. symbols to be written out, the 'discard' field is used to further
  8066. controls which local symbols are included in the output file. If the
  8067. value is 'discard_l', then all local symbols which begin with a certain
  8068. prefix are discarded; this is controlled by the
  8069. 'bfd_is_local_label_name' entry point.
  8070. The a.out backend handles symbols by calling
  8071. 'aout_link_write_symbols' on each input BFD and then traversing the
  8072. global hash table with the function 'aout_link_write_other_symbol'. It
  8073. builds a string table while writing out the symbols, which is written to
  8074. the output file at the end of 'NAME(aout,final_link)'.
  8075. 2.17.3.4 'bfd_link_split_section'
  8076. .................................
  8077. *Synopsis*
  8078. bfd_boolean bfd_link_split_section (bfd *abfd, asection *sec);
  8079. *Description*
  8080. Return nonzero if SEC should be split during a reloceatable or final
  8081. link.
  8082. #define bfd_link_split_section(abfd, sec) \
  8083. BFD_SEND (abfd, _bfd_link_split_section, (abfd, sec))
  8084. 2.17.3.5 'bfd_section_already_linked'
  8085. .....................................
  8086. *Synopsis*
  8087. bfd_boolean bfd_section_already_linked (bfd *abfd,
  8088. asection *sec,
  8089. struct bfd_link_info *info);
  8090. *Description*
  8091. Check if DATA has been already linked during a reloceatable or final
  8092. link. Return TRUE if it has.
  8093. #define bfd_section_already_linked(abfd, sec, info) \
  8094. BFD_SEND (abfd, _section_already_linked, (abfd, sec, info))
  8095. 2.17.3.6 'bfd_generic_define_common_symbol'
  8096. ...........................................
  8097. *Synopsis*
  8098. bfd_boolean bfd_generic_define_common_symbol
  8099. (bfd *output_bfd, struct bfd_link_info *info,
  8100. struct bfd_link_hash_entry *h);
  8101. *Description*
  8102. Convert common symbol H into a defined symbol. Return TRUE on success
  8103. and FALSE on failure.
  8104. #define bfd_define_common_symbol(output_bfd, info, h) \
  8105. BFD_SEND (output_bfd, _bfd_define_common_symbol, (output_bfd, info, h))
  8106. 2.17.3.7 'bfd_find_version_for_sym'
  8107. ...................................
  8108. *Synopsis*
  8109. struct bfd_elf_version_tree * bfd_find_version_for_sym
  8110. (struct bfd_elf_version_tree *verdefs,
  8111. const char *sym_name, bfd_boolean *hide);
  8112. *Description*
  8113. Search an elf version script tree for symbol versioning info and export
  8114. / don't-export status for a given symbol. Return non-NULL on success
  8115. and NULL on failure; also sets the output 'hide' boolean parameter.
  8116. 2.17.3.8 'bfd_hide_sym_by_version'
  8117. ..................................
  8118. *Synopsis*
  8119. bfd_boolean bfd_hide_sym_by_version
  8120. (struct bfd_elf_version_tree *verdefs, const char *sym_name);
  8121. *Description*
  8122. Search an elf version script tree for symbol versioning info for a given
  8123. symbol. Return TRUE if the symbol is hidden.
  8124. 2.17.3.9 'bfd_link_check_relocs'
  8125. ................................
  8126. *Synopsis*
  8127. bfd_boolean bfd_link_check_relocs
  8128. (bfd *abfd, struct bfd_link_info *info);
  8129. *Description*
  8130. Checks the relocs in ABFD for validity. Does not execute the relocs.
  8131. Return TRUE if everything is OK, FALSE otherwise. This is the external
  8132. entry point to this code.
  8133. 2.17.3.10 '_bfd_generic_link_check_relocs'
  8134. ..........................................
  8135. *Synopsis*
  8136. bfd_boolean _bfd_generic_link_check_relocs
  8137. (bfd *abfd, struct bfd_link_info *info);
  8138. *Description*
  8139. Stub function for targets that do not implement reloc checking. Return
  8140. TRUE. This is an internal function. It should not be called from
  8141. outside the BFD library.
  8142. 2.17.3.11 'bfd_merge_private_bfd_data'
  8143. ......................................
  8144. *Synopsis*
  8145. bfd_boolean bfd_merge_private_bfd_data
  8146. (bfd *ibfd, struct bfd_link_info *info);
  8147. *Description*
  8148. Merge private BFD information from the BFD IBFD to the the output file
  8149. BFD when linking. Return 'TRUE' on success, 'FALSE' on error. Possible
  8150. error returns are:
  8151. * 'bfd_error_no_memory' - Not enough memory exists to create private
  8152. data for OBFD.
  8153. #define bfd_merge_private_bfd_data(ibfd, info) \
  8154. BFD_SEND ((info)->output_bfd, _bfd_merge_private_bfd_data, \
  8155. (ibfd, info))
  8156. 2.17.3.12 '_bfd_generic_verify_endian_match'
  8157. ............................................
  8158. *Synopsis*
  8159. bfd_boolean _bfd_generic_verify_endian_match
  8160. (bfd *ibfd, struct bfd_link_info *info);
  8161. *Description*
  8162. Can be used from / for bfd_merge_private_bfd_data to check that
  8163. endianness matches between input and output file. Returns TRUE for a
  8164. match, otherwise returns FALSE and emits an error.
  8165. 
  8166. File: bfd.info, Node: Hash Tables, Prev: Linker Functions, Up: BFD front end
  8167. 2.18 Hash Tables
  8168. ================
  8169. BFD provides a simple set of hash table functions. Routines are
  8170. provided to initialize a hash table, to free a hash table, to look up a
  8171. string in a hash table and optionally create an entry for it, and to
  8172. traverse a hash table. There is currently no routine to delete an
  8173. string from a hash table.
  8174. The basic hash table does not permit any data to be stored with a
  8175. string. However, a hash table is designed to present a base class from
  8176. which other types of hash tables may be derived. These derived types
  8177. may store additional information with the string. Hash tables were
  8178. implemented in this way, rather than simply providing a data pointer in
  8179. a hash table entry, because they were designed for use by the linker
  8180. back ends. The linker may create thousands of hash table entries, and
  8181. the overhead of allocating private data and storing and following
  8182. pointers becomes noticeable.
  8183. The basic hash table code is in 'hash.c'.
  8184. * Menu:
  8185. * Creating and Freeing a Hash Table::
  8186. * Looking Up or Entering a String::
  8187. * Traversing a Hash Table::
  8188. * Deriving a New Hash Table Type::
  8189. 
  8190. File: bfd.info, Node: Creating and Freeing a Hash Table, Next: Looking Up or Entering a String, Prev: Hash Tables, Up: Hash Tables
  8191. 2.18.1 Creating and freeing a hash table
  8192. ----------------------------------------
  8193. To create a hash table, create an instance of a 'struct bfd_hash_table'
  8194. (defined in 'bfd.h') and call 'bfd_hash_table_init' (if you know
  8195. approximately how many entries you will need, the function
  8196. 'bfd_hash_table_init_n', which takes a SIZE argument, may be used).
  8197. 'bfd_hash_table_init' returns 'FALSE' if some sort of error occurs.
  8198. The function 'bfd_hash_table_init' take as an argument a function to
  8199. use to create new entries. For a basic hash table, use the function
  8200. 'bfd_hash_newfunc'. *Note Deriving a New Hash Table Type::, for why you
  8201. would want to use a different value for this argument.
  8202. 'bfd_hash_table_init' will create an objalloc which will be used to
  8203. allocate new entries. You may allocate memory on this objalloc using
  8204. 'bfd_hash_allocate'.
  8205. Use 'bfd_hash_table_free' to free up all the memory that has been
  8206. allocated for a hash table. This will not free up the 'struct
  8207. bfd_hash_table' itself, which you must provide.
  8208. Use 'bfd_hash_set_default_size' to set the default size of hash table
  8209. to use.
  8210. 
  8211. File: bfd.info, Node: Looking Up or Entering a String, Next: Traversing a Hash Table, Prev: Creating and Freeing a Hash Table, Up: Hash Tables
  8212. 2.18.2 Looking up or entering a string
  8213. --------------------------------------
  8214. The function 'bfd_hash_lookup' is used both to look up a string in the
  8215. hash table and to create a new entry.
  8216. If the CREATE argument is 'FALSE', 'bfd_hash_lookup' will look up a
  8217. string. If the string is found, it will returns a pointer to a 'struct
  8218. bfd_hash_entry'. If the string is not found in the table
  8219. 'bfd_hash_lookup' will return 'NULL'. You should not modify any of the
  8220. fields in the returns 'struct bfd_hash_entry'.
  8221. If the CREATE argument is 'TRUE', the string will be entered into the
  8222. hash table if it is not already there. Either way a pointer to a
  8223. 'struct bfd_hash_entry' will be returned, either to the existing
  8224. structure or to a newly created one. In this case, a 'NULL' return
  8225. means that an error occurred.
  8226. If the CREATE argument is 'TRUE', and a new entry is created, the
  8227. COPY argument is used to decide whether to copy the string onto the hash
  8228. table objalloc or not. If COPY is passed as 'FALSE', you must be
  8229. careful not to deallocate or modify the string as long as the hash table
  8230. exists.
  8231. 
  8232. File: bfd.info, Node: Traversing a Hash Table, Next: Deriving a New Hash Table Type, Prev: Looking Up or Entering a String, Up: Hash Tables
  8233. 2.18.3 Traversing a hash table
  8234. ------------------------------
  8235. The function 'bfd_hash_traverse' may be used to traverse a hash table,
  8236. calling a function on each element. The traversal is done in a random
  8237. order.
  8238. 'bfd_hash_traverse' takes as arguments a function and a generic 'void
  8239. *' pointer. The function is called with a hash table entry (a 'struct
  8240. bfd_hash_entry *') and the generic pointer passed to
  8241. 'bfd_hash_traverse'. The function must return a 'boolean' value, which
  8242. indicates whether to continue traversing the hash table. If the
  8243. function returns 'FALSE', 'bfd_hash_traverse' will stop the traversal
  8244. and return immediately.
  8245. 
  8246. File: bfd.info, Node: Deriving a New Hash Table Type, Prev: Traversing a Hash Table, Up: Hash Tables
  8247. 2.18.4 Deriving a new hash table type
  8248. -------------------------------------
  8249. Many uses of hash tables want to store additional information which each
  8250. entry in the hash table. Some also find it convenient to store
  8251. additional information with the hash table itself. This may be done
  8252. using a derived hash table.
  8253. Since C is not an object oriented language, creating a derived hash
  8254. table requires sticking together some boilerplate routines with a few
  8255. differences specific to the type of hash table you want to create.
  8256. An example of a derived hash table is the linker hash table. The
  8257. structures for this are defined in 'bfdlink.h'. The functions are in
  8258. 'linker.c'.
  8259. You may also derive a hash table from an already derived hash table.
  8260. For example, the a.out linker backend code uses a hash table derived
  8261. from the linker hash table.
  8262. * Menu:
  8263. * Define the Derived Structures::
  8264. * Write the Derived Creation Routine::
  8265. * Write Other Derived Routines::
  8266. 
  8267. File: bfd.info, Node: Define the Derived Structures, Next: Write the Derived Creation Routine, Prev: Deriving a New Hash Table Type, Up: Deriving a New Hash Table Type
  8268. 2.18.4.1 Define the derived structures
  8269. ......................................
  8270. You must define a structure for an entry in the hash table, and a
  8271. structure for the hash table itself.
  8272. The first field in the structure for an entry in the hash table must
  8273. be of the type used for an entry in the hash table you are deriving
  8274. from. If you are deriving from a basic hash table this is 'struct
  8275. bfd_hash_entry', which is defined in 'bfd.h'. The first field in the
  8276. structure for the hash table itself must be of the type of the hash
  8277. table you are deriving from itself. If you are deriving from a basic
  8278. hash table, this is 'struct bfd_hash_table'.
  8279. For example, the linker hash table defines 'struct
  8280. bfd_link_hash_entry' (in 'bfdlink.h'). The first field, 'root', is of
  8281. type 'struct bfd_hash_entry'. Similarly, the first field in 'struct
  8282. bfd_link_hash_table', 'table', is of type 'struct bfd_hash_table'.
  8283. 
  8284. File: bfd.info, Node: Write the Derived Creation Routine, Next: Write Other Derived Routines, Prev: Define the Derived Structures, Up: Deriving a New Hash Table Type
  8285. 2.18.4.2 Write the derived creation routine
  8286. ...........................................
  8287. You must write a routine which will create and initialize an entry in
  8288. the hash table. This routine is passed as the function argument to
  8289. 'bfd_hash_table_init'.
  8290. In order to permit other hash tables to be derived from the hash
  8291. table you are creating, this routine must be written in a standard way.
  8292. The first argument to the creation routine is a pointer to a hash
  8293. table entry. This may be 'NULL', in which case the routine should
  8294. allocate the right amount of space. Otherwise the space has already
  8295. been allocated by a hash table type derived from this one.
  8296. After allocating space, the creation routine must call the creation
  8297. routine of the hash table type it is derived from, passing in a pointer
  8298. to the space it just allocated. This will initialize any fields used by
  8299. the base hash table.
  8300. Finally the creation routine must initialize any local fields for the
  8301. new hash table type.
  8302. Here is a boilerplate example of a creation routine. FUNCTION_NAME
  8303. is the name of the routine. ENTRY_TYPE is the type of an entry in the
  8304. hash table you are creating. BASE_NEWFUNC is the name of the creation
  8305. routine of the hash table type your hash table is derived from.
  8306. struct bfd_hash_entry *
  8307. FUNCTION_NAME (struct bfd_hash_entry *entry,
  8308. struct bfd_hash_table *table,
  8309. const char *string)
  8310. {
  8311. struct ENTRY_TYPE *ret = (ENTRY_TYPE *) entry;
  8312. /* Allocate the structure if it has not already been allocated by a
  8313. derived class. */
  8314. if (ret == NULL)
  8315. {
  8316. ret = bfd_hash_allocate (table, sizeof (* ret));
  8317. if (ret == NULL)
  8318. return NULL;
  8319. }
  8320. /* Call the allocation method of the base class. */
  8321. ret = ((ENTRY_TYPE *)
  8322. BASE_NEWFUNC ((struct bfd_hash_entry *) ret, table, string));
  8323. /* Initialize the local fields here. */
  8324. return (struct bfd_hash_entry *) ret;
  8325. }
  8326. *Description*
  8327. The creation routine for the linker hash table, which is in 'linker.c',
  8328. looks just like this example. FUNCTION_NAME is
  8329. '_bfd_link_hash_newfunc'. ENTRY_TYPE is 'struct bfd_link_hash_entry'.
  8330. BASE_NEWFUNC is 'bfd_hash_newfunc', the creation routine for a basic
  8331. hash table.
  8332. '_bfd_link_hash_newfunc' also initializes the local fields in a
  8333. linker hash table entry: 'type', 'written' and 'next'.
  8334. 
  8335. File: bfd.info, Node: Write Other Derived Routines, Prev: Write the Derived Creation Routine, Up: Deriving a New Hash Table Type
  8336. 2.18.4.3 Write other derived routines
  8337. .....................................
  8338. You will want to write other routines for your new hash table, as well.
  8339. You will want an initialization routine which calls the
  8340. initialization routine of the hash table you are deriving from and
  8341. initializes any other local fields. For the linker hash table, this is
  8342. '_bfd_link_hash_table_init' in 'linker.c'.
  8343. You will want a lookup routine which calls the lookup routine of the
  8344. hash table you are deriving from and casts the result. The linker hash
  8345. table uses 'bfd_link_hash_lookup' in 'linker.c' (this actually takes an
  8346. additional argument which it uses to decide how to return the looked up
  8347. value).
  8348. You may want a traversal routine. This should just call the
  8349. traversal routine of the hash table you are deriving from with
  8350. appropriate casts. The linker hash table uses 'bfd_link_hash_traverse'
  8351. in 'linker.c'.
  8352. These routines may simply be defined as macros. For example, the
  8353. a.out backend linker hash table, which is derived from the linker hash
  8354. table, uses macros for the lookup and traversal routines. These are
  8355. 'aout_link_hash_lookup' and 'aout_link_hash_traverse' in aoutx.h.
  8356. 
  8357. File: bfd.info, Node: BFD back ends, Next: GNU Free Documentation License, Prev: BFD front end, Up: Top
  8358. 3 BFD back ends
  8359. ***************
  8360. * Menu:
  8361. * What to Put Where::
  8362. * aout :: a.out backends
  8363. * coff :: coff backends
  8364. * elf :: elf backends
  8365. * mmo :: mmo backend
  8366. 
  8367. File: bfd.info, Node: What to Put Where, Next: aout, Prev: BFD back ends, Up: BFD back ends
  8368. 3.1 What to Put Where
  8369. =====================
  8370. All of BFD lives in one directory.
  8371. 
  8372. File: bfd.info, Node: aout, Next: coff, Prev: What to Put Where, Up: BFD back ends
  8373. 3.2 a.out backends
  8374. ==================
  8375. *Description*
  8376. BFD supports a number of different flavours of a.out format, though the
  8377. major differences are only the sizes of the structures on disk, and the
  8378. shape of the relocation information.
  8379. The support is split into a basic support file 'aoutx.h' and other
  8380. files which derive functions from the base. One derivation file is
  8381. 'aoutf1.h' (for a.out flavour 1), and adds to the basic a.out functions
  8382. support for sun3, sun4, 386 and 29k a.out files, to create a target jump
  8383. vector for a specific target.
  8384. This information is further split out into more specific files for
  8385. each machine, including 'sunos.c' for sun3 and sun4, 'newsos3.c' for the
  8386. Sony NEWS, and 'demo64.c' for a demonstration of a 64 bit a.out format.
  8387. The base file 'aoutx.h' defines general mechanisms for reading and
  8388. writing records to and from disk and various other methods which BFD
  8389. requires. It is included by 'aout32.c' and 'aout64.c' to form the names
  8390. 'aout_32_swap_exec_header_in', 'aout_64_swap_exec_header_in', etc.
  8391. As an example, this is what goes on to make the back end for a sun4,
  8392. from 'aout32.c':
  8393. #define ARCH_SIZE 32
  8394. #include "aoutx.h"
  8395. Which exports names:
  8396. ...
  8397. aout_32_canonicalize_reloc
  8398. aout_32_find_nearest_line
  8399. aout_32_get_lineno
  8400. aout_32_get_reloc_upper_bound
  8401. ...
  8402. from 'sunos.c':
  8403. #define TARGET_NAME "a.out-sunos-big"
  8404. #define VECNAME sparc_aout_sunos_be_vec
  8405. #include "aoutf1.h"
  8406. requires all the names from 'aout32.c', and produces the jump vector
  8407. sparc_aout_sunos_be_vec
  8408. The file 'host-aout.c' is a special case. It is for a large set of
  8409. hosts that use "more or less standard" a.out files, and for which
  8410. cross-debugging is not interesting. It uses the standard 32-bit a.out
  8411. support routines, but determines the file offsets and addresses of the
  8412. text, data, and BSS sections, the machine architecture and machine type,
  8413. and the entry point address, in a host-dependent manner. Once these
  8414. values have been determined, generic code is used to handle the object
  8415. file.
  8416. When porting it to run on a new system, you must supply:
  8417. HOST_PAGE_SIZE
  8418. HOST_SEGMENT_SIZE
  8419. HOST_MACHINE_ARCH (optional)
  8420. HOST_MACHINE_MACHINE (optional)
  8421. HOST_TEXT_START_ADDR
  8422. HOST_STACK_END_ADDR
  8423. in the file '../include/sys/h-XXX.h' (for your host). These values,
  8424. plus the structures and macros defined in 'a.out.h' on your host system,
  8425. will produce a BFD target that will access ordinary a.out files on your
  8426. host. To configure a new machine to use 'host-aout.c', specify:
  8427. TDEFAULTS = -DDEFAULT_VECTOR=host_aout_big_vec
  8428. TDEPFILES= host-aout.o trad-core.o
  8429. in the 'config/XXX.mt' file, and modify 'configure.ac' to use the
  8430. 'XXX.mt' file (by setting "'bfd_target=XXX'") when your configuration is
  8431. selected.
  8432. 3.2.1 Relocations
  8433. -----------------
  8434. *Description*
  8435. The file 'aoutx.h' provides for both the _standard_ and _extended_ forms
  8436. of a.out relocation records.
  8437. The standard records contain only an address, a symbol index, and a
  8438. type field. The extended records (used on 29ks and sparcs) also have a
  8439. full integer for an addend.
  8440. 3.2.2 Internal entry points
  8441. ---------------------------
  8442. *Description*
  8443. 'aoutx.h' exports several routines for accessing the contents of an
  8444. a.out file, which are gathered and exported in turn by various format
  8445. specific files (eg sunos.c).
  8446. 3.2.2.1 'aout_SIZE_swap_exec_header_in'
  8447. .......................................
  8448. *Synopsis*
  8449. void aout_SIZE_swap_exec_header_in,
  8450. (bfd *abfd,
  8451. struct external_exec *bytes,
  8452. struct internal_exec *execp);
  8453. *Description*
  8454. Swap the information in an executable header RAW_BYTES taken from a raw
  8455. byte stream memory image into the internal exec header structure EXECP.
  8456. 3.2.2.2 'aout_SIZE_swap_exec_header_out'
  8457. ........................................
  8458. *Synopsis*
  8459. void aout_SIZE_swap_exec_header_out
  8460. (bfd *abfd,
  8461. struct internal_exec *execp,
  8462. struct external_exec *raw_bytes);
  8463. *Description*
  8464. Swap the information in an internal exec header structure EXECP into the
  8465. buffer RAW_BYTES ready for writing to disk.
  8466. 3.2.2.3 'aout_SIZE_some_aout_object_p'
  8467. ......................................
  8468. *Synopsis*
  8469. const bfd_target *aout_SIZE_some_aout_object_p
  8470. (bfd *abfd,
  8471. struct internal_exec *execp,
  8472. const bfd_target *(*callback_to_real_object_p) (bfd *));
  8473. *Description*
  8474. Some a.out variant thinks that the file open in ABFD checking is an
  8475. a.out file. Do some more checking, and set up for access if it really
  8476. is. Call back to the calling environment's "finish up" function just
  8477. before returning, to handle any last-minute setup.
  8478. 3.2.2.4 'aout_SIZE_mkobject'
  8479. ............................
  8480. *Synopsis*
  8481. bfd_boolean aout_SIZE_mkobject, (bfd *abfd);
  8482. *Description*
  8483. Initialize BFD ABFD for use with a.out files.
  8484. 3.2.2.5 'aout_SIZE_machine_type'
  8485. ................................
  8486. *Synopsis*
  8487. enum machine_type aout_SIZE_machine_type
  8488. (enum bfd_architecture arch,
  8489. unsigned long machine,
  8490. bfd_boolean *unknown);
  8491. *Description*
  8492. Keep track of machine architecture and machine type for a.out's. Return
  8493. the 'machine_type' for a particular architecture and machine, or
  8494. 'M_UNKNOWN' if that exact architecture and machine can't be represented
  8495. in a.out format.
  8496. If the architecture is understood, machine type 0 (default) is always
  8497. understood.
  8498. 3.2.2.6 'aout_SIZE_set_arch_mach'
  8499. .................................
  8500. *Synopsis*
  8501. bfd_boolean aout_SIZE_set_arch_mach,
  8502. (bfd *,
  8503. enum bfd_architecture arch,
  8504. unsigned long machine);
  8505. *Description*
  8506. Set the architecture and the machine of the BFD ABFD to the values ARCH
  8507. and MACHINE. Verify that ABFD's format can support the architecture
  8508. required.
  8509. 3.2.2.7 'aout_SIZE_new_section_hook'
  8510. ....................................
  8511. *Synopsis*
  8512. bfd_boolean aout_SIZE_new_section_hook,
  8513. (bfd *abfd,
  8514. asection *newsect);
  8515. *Description*
  8516. Called by the BFD in response to a 'bfd_make_section' request.
  8517. 
  8518. File: bfd.info, Node: coff, Next: elf, Prev: aout, Up: BFD back ends
  8519. 3.3 coff backends
  8520. =================
  8521. BFD supports a number of different flavours of coff format. The major
  8522. differences between formats are the sizes and alignments of fields in
  8523. structures on disk, and the occasional extra field.
  8524. Coff in all its varieties is implemented with a few common files and
  8525. a number of implementation specific files. For example, The 88k bcs
  8526. coff format is implemented in the file 'coff-m88k.c'. This file
  8527. '#include's 'coff/m88k.h' which defines the external structure of the
  8528. coff format for the 88k, and 'coff/internal.h' which defines the
  8529. internal structure. 'coff-m88k.c' also defines the relocations used by
  8530. the 88k format *Note Relocations::.
  8531. The Intel i960 processor version of coff is implemented in
  8532. 'coff-i960.c'. This file has the same structure as 'coff-m88k.c',
  8533. except that it includes 'coff/i960.h' rather than 'coff-m88k.h'.
  8534. 3.3.1 Porting to a new version of coff
  8535. --------------------------------------
  8536. The recommended method is to select from the existing implementations
  8537. the version of coff which is most like the one you want to use. For
  8538. example, we'll say that i386 coff is the one you select, and that your
  8539. coff flavour is called foo. Copy 'i386coff.c' to 'foocoff.c', copy
  8540. '../include/coff/i386.h' to '../include/coff/foo.h', and add the lines
  8541. to 'targets.c' and 'Makefile.in' so that your new back end is used.
  8542. Alter the shapes of the structures in '../include/coff/foo.h' so that
  8543. they match what you need. You will probably also have to add '#ifdef's
  8544. to the code in 'coff/internal.h' and 'coffcode.h' if your version of
  8545. coff is too wild.
  8546. You can verify that your new BFD backend works quite simply by
  8547. building 'objdump' from the 'binutils' directory, and making sure that
  8548. its version of what's going on and your host system's idea (assuming it
  8549. has the pretty standard coff dump utility, usually called 'att-dump' or
  8550. just 'dump') are the same. Then clean up your code, and send what
  8551. you've done to Cygnus. Then your stuff will be in the next release, and
  8552. you won't have to keep integrating it.
  8553. 3.3.2 How the coff backend works
  8554. --------------------------------
  8555. 3.3.2.1 File layout
  8556. ...................
  8557. The Coff backend is split into generic routines that are applicable to
  8558. any Coff target and routines that are specific to a particular target.
  8559. The target-specific routines are further split into ones which are
  8560. basically the same for all Coff targets except that they use the
  8561. external symbol format or use different values for certain constants.
  8562. The generic routines are in 'coffgen.c'. These routines work for any
  8563. Coff target. They use some hooks into the target specific code; the
  8564. hooks are in a 'bfd_coff_backend_data' structure, one of which exists
  8565. for each target.
  8566. The essentially similar target-specific routines are in 'coffcode.h'.
  8567. This header file includes executable C code. The various Coff targets
  8568. first include the appropriate Coff header file, make any special defines
  8569. that are needed, and then include 'coffcode.h'.
  8570. Some of the Coff targets then also have additional routines in the
  8571. target source file itself.
  8572. For example, 'coff-i960.c' includes 'coff/internal.h' and
  8573. 'coff/i960.h'. It then defines a few constants, such as 'I960', and
  8574. includes 'coffcode.h'. Since the i960 has complex relocation types,
  8575. 'coff-i960.c' also includes some code to manipulate the i960 relocs.
  8576. This code is not in 'coffcode.h' because it would not be used by any
  8577. other target.
  8578. 3.3.2.2 Coff long section names
  8579. ...............................
  8580. In the standard Coff object format, section names are limited to the
  8581. eight bytes available in the 's_name' field of the 'SCNHDR' section
  8582. header structure. The format requires the field to be NUL-padded, but
  8583. not necessarily NUL-terminated, so the longest section names permitted
  8584. are a full eight characters.
  8585. The Microsoft PE variants of the Coff object file format add an
  8586. extension to support the use of long section names. This extension is
  8587. defined in section 4 of the Microsoft PE/COFF specification (rev 8.1).
  8588. If a section name is too long to fit into the section header's 's_name'
  8589. field, it is instead placed into the string table, and the 's_name'
  8590. field is filled with a slash ("/") followed by the ASCII decimal
  8591. representation of the offset of the full name relative to the string
  8592. table base.
  8593. Note that this implies that the extension can only be used in object
  8594. files, as executables do not contain a string table. The standard
  8595. specifies that long section names from objects emitted into executable
  8596. images are to be truncated.
  8597. However, as a GNU extension, BFD can generate executable images that
  8598. contain a string table and long section names. This would appear to be
  8599. technically valid, as the standard only says that Coff debugging
  8600. information is deprecated, not forbidden, and in practice it works,
  8601. although some tools that parse PE files expecting the MS standard format
  8602. may become confused; 'PEview' is one known example.
  8603. The functionality is supported in BFD by code implemented under the
  8604. control of the macro 'COFF_LONG_SECTION_NAMES'. If not defined, the
  8605. format does not support long section names in any way. If defined, it
  8606. is used to initialise a flag, '_bfd_coff_long_section_names', and a hook
  8607. function pointer, '_bfd_coff_set_long_section_names', in the Coff
  8608. backend data structure. The flag controls the generation of long
  8609. section names in output BFDs at runtime; if it is false, as it will be
  8610. by default when generating an executable image, long section names are
  8611. truncated; if true, the long section names extension is employed. The
  8612. hook points to a function that allows the value of the flag to be
  8613. altered at runtime, on formats that support long section names at all;
  8614. on other formats it points to a stub that returns an error indication.
  8615. With input BFDs, the flag is set according to whether any long
  8616. section names are detected while reading the section headers. For a
  8617. completely new BFD, the flag is set to the default for the target
  8618. format. This information can be used by a client of the BFD library
  8619. when deciding what output format to generate, and means that a BFD that
  8620. is opened for read and subsequently converted to a writeable BFD and
  8621. modified in-place will retain whatever format it had on input.
  8622. If 'COFF_LONG_SECTION_NAMES' is simply defined (blank), or is defined
  8623. to the value "1", then long section names are enabled by default; if it
  8624. is defined to the value zero, they are disabled by default (but still
  8625. accepted in input BFDs). The header 'coffcode.h' defines a macro,
  8626. 'COFF_DEFAULT_LONG_SECTION_NAMES', which is used in the backends to
  8627. initialise the backend data structure fields appropriately; see the
  8628. comments for further detail.
  8629. 3.3.2.3 Bit twiddling
  8630. .....................
  8631. Each flavour of coff supported in BFD has its own header file describing
  8632. the external layout of the structures. There is also an internal
  8633. description of the coff layout, in 'coff/internal.h'. A major function
  8634. of the coff backend is swapping the bytes and twiddling the bits to
  8635. translate the external form of the structures into the normal internal
  8636. form. This is all performed in the 'bfd_swap'_thing_direction routines.
  8637. Some elements are different sizes between different versions of coff; it
  8638. is the duty of the coff version specific include file to override the
  8639. definitions of various packing routines in 'coffcode.h'. E.g., the size
  8640. of line number entry in coff is sometimes 16 bits, and sometimes 32
  8641. bits. '#define'ing 'PUT_LNSZ_LNNO' and 'GET_LNSZ_LNNO' will select the
  8642. correct one. No doubt, some day someone will find a version of coff
  8643. which has a varying field size not catered to at the moment. To port
  8644. BFD, that person will have to add more '#defines'. Three of the bit
  8645. twiddling routines are exported to 'gdb'; 'coff_swap_aux_in',
  8646. 'coff_swap_sym_in' and 'coff_swap_lineno_in'. 'GDB' reads the symbol
  8647. table on its own, but uses BFD to fix things up. More of the bit
  8648. twiddlers are exported for 'gas'; 'coff_swap_aux_out',
  8649. 'coff_swap_sym_out', 'coff_swap_lineno_out', 'coff_swap_reloc_out',
  8650. 'coff_swap_filehdr_out', 'coff_swap_aouthdr_out',
  8651. 'coff_swap_scnhdr_out'. 'Gas' currently keeps track of all the symbol
  8652. table and reloc drudgery itself, thereby saving the internal BFD
  8653. overhead, but uses BFD to swap things on the way out, making cross ports
  8654. much safer. Doing so also allows BFD (and thus the linker) to use the
  8655. same header files as 'gas', which makes one avenue to disaster
  8656. disappear.
  8657. 3.3.2.4 Symbol reading
  8658. ......................
  8659. The simple canonical form for symbols used by BFD is not rich enough to
  8660. keep all the information available in a coff symbol table. The back end
  8661. gets around this problem by keeping the original symbol table around,
  8662. "behind the scenes".
  8663. When a symbol table is requested (through a call to
  8664. 'bfd_canonicalize_symtab'), a request gets through to
  8665. 'coff_get_normalized_symtab'. This reads the symbol table from the coff
  8666. file and swaps all the structures inside into the internal form. It
  8667. also fixes up all the pointers in the table (represented in the file by
  8668. offsets from the first symbol in the table) into physical pointers to
  8669. elements in the new internal table. This involves some work since the
  8670. meanings of fields change depending upon context: a field that is a
  8671. pointer to another structure in the symbol table at one moment may be
  8672. the size in bytes of a structure at the next. Another pass is made over
  8673. the table. All symbols which mark file names ('C_FILE' symbols) are
  8674. modified so that the internal string points to the value in the auxent
  8675. (the real filename) rather than the normal text associated with the
  8676. symbol ('".file"').
  8677. At this time the symbol names are moved around. Coff stores all
  8678. symbols less than nine characters long physically within the symbol
  8679. table; longer strings are kept at the end of the file in the string
  8680. table. This pass moves all strings into memory and replaces them with
  8681. pointers to the strings.
  8682. The symbol table is massaged once again, this time to create the
  8683. canonical table used by the BFD application. Each symbol is inspected
  8684. in turn, and a decision made (using the 'sclass' field) about the
  8685. various flags to set in the 'asymbol'. *Note Symbols::. The generated
  8686. canonical table shares strings with the hidden internal symbol table.
  8687. Any linenumbers are read from the coff file too, and attached to the
  8688. symbols which own the functions the linenumbers belong to.
  8689. 3.3.2.5 Symbol writing
  8690. ......................
  8691. Writing a symbol to a coff file which didn't come from a coff file will
  8692. lose any debugging information. The 'asymbol' structure remembers the
  8693. BFD from which the symbol was taken, and on output the back end makes
  8694. sure that the same destination target as source target is present.
  8695. When the symbols have come from a coff file then all the debugging
  8696. information is preserved.
  8697. Symbol tables are provided for writing to the back end in a vector of
  8698. pointers to pointers. This allows applications like the linker to
  8699. accumulate and output large symbol tables without having to do too much
  8700. byte copying.
  8701. This function runs through the provided symbol table and patches each
  8702. symbol marked as a file place holder ('C_FILE') to point to the next
  8703. file place holder in the list. It also marks each 'offset' field in the
  8704. list with the offset from the first symbol of the current symbol.
  8705. Another function of this procedure is to turn the canonical value
  8706. form of BFD into the form used by coff. Internally, BFD expects symbol
  8707. values to be offsets from a section base; so a symbol physically at
  8708. 0x120, but in a section starting at 0x100, would have the value 0x20.
  8709. Coff expects symbols to contain their final value, so symbols have their
  8710. values changed at this point to reflect their sum with their owning
  8711. section. This transformation uses the 'output_section' field of the
  8712. 'asymbol''s 'asection' *Note Sections::.
  8713. * 'coff_mangle_symbols'
  8714. This routine runs though the provided symbol table and uses the
  8715. offsets generated by the previous pass and the pointers generated when
  8716. the symbol table was read in to create the structured hierarchy required
  8717. by coff. It changes each pointer to a symbol into the index into the
  8718. symbol table of the asymbol.
  8719. * 'coff_write_symbols'
  8720. This routine runs through the symbol table and patches up the symbols
  8721. from their internal form into the coff way, calls the bit twiddlers, and
  8722. writes out the table to the file.
  8723. 3.3.2.6 'coff_symbol_type'
  8724. ..........................
  8725. *Description*
  8726. The hidden information for an 'asymbol' is described in a
  8727. 'combined_entry_type':
  8728. typedef struct coff_ptr_struct
  8729. {
  8730. /* Remembers the offset from the first symbol in the file for
  8731. this symbol. Generated by coff_renumber_symbols. */
  8732. unsigned int offset;
  8733. /* Should the value of this symbol be renumbered. Used for
  8734. XCOFF C_BSTAT symbols. Set by coff_slurp_symbol_table. */
  8735. unsigned int fix_value : 1;
  8736. /* Should the tag field of this symbol be renumbered.
  8737. Created by coff_pointerize_aux. */
  8738. unsigned int fix_tag : 1;
  8739. /* Should the endidx field of this symbol be renumbered.
  8740. Created by coff_pointerize_aux. */
  8741. unsigned int fix_end : 1;
  8742. /* Should the x_csect.x_scnlen field be renumbered.
  8743. Created by coff_pointerize_aux. */
  8744. unsigned int fix_scnlen : 1;
  8745. /* Fix up an XCOFF C_BINCL/C_EINCL symbol. The value is the
  8746. index into the line number entries. Set by coff_slurp_symbol_table. */
  8747. unsigned int fix_line : 1;
  8748. /* The container for the symbol structure as read and translated
  8749. from the file. */
  8750. union
  8751. {
  8752. union internal_auxent auxent;
  8753. struct internal_syment syment;
  8754. } u;
  8755. /* Selector for the union above. */
  8756. bfd_boolean is_sym;
  8757. } combined_entry_type;
  8758. /* Each canonical asymbol really looks like this: */
  8759. typedef struct coff_symbol_struct
  8760. {
  8761. /* The actual symbol which the rest of BFD works with */
  8762. asymbol symbol;
  8763. /* A pointer to the hidden information for this symbol */
  8764. combined_entry_type *native;
  8765. /* A pointer to the linenumber information for this symbol */
  8766. struct lineno_cache_entry *lineno;
  8767. /* Have the line numbers been relocated yet ? */
  8768. bfd_boolean done_lineno;
  8769. } coff_symbol_type;
  8770. 3.3.2.7 'bfd_coff_backend_data'
  8771. ...............................
  8772. /* COFF symbol classifications. */
  8773. enum coff_symbol_classification
  8774. {
  8775. /* Global symbol. */
  8776. COFF_SYMBOL_GLOBAL,
  8777. /* Common symbol. */
  8778. COFF_SYMBOL_COMMON,
  8779. /* Undefined symbol. */
  8780. COFF_SYMBOL_UNDEFINED,
  8781. /* Local symbol. */
  8782. COFF_SYMBOL_LOCAL,
  8783. /* PE section symbol. */
  8784. COFF_SYMBOL_PE_SECTION
  8785. };
  8786. typedef asection * (*coff_gc_mark_hook_fn)
  8787. (asection *, struct bfd_link_info *, struct internal_reloc *,
  8788. struct coff_link_hash_entry *, struct internal_syment *);
  8789. Special entry points for gdb to swap in coff symbol table parts:
  8790. typedef struct
  8791. {
  8792. void (*_bfd_coff_swap_aux_in)
  8793. (bfd *, void *, int, int, int, int, void *);
  8794. void (*_bfd_coff_swap_sym_in)
  8795. (bfd *, void *, void *);
  8796. void (*_bfd_coff_swap_lineno_in)
  8797. (bfd *, void *, void *);
  8798. unsigned int (*_bfd_coff_swap_aux_out)
  8799. (bfd *, void *, int, int, int, int, void *);
  8800. unsigned int (*_bfd_coff_swap_sym_out)
  8801. (bfd *, void *, void *);
  8802. unsigned int (*_bfd_coff_swap_lineno_out)
  8803. (bfd *, void *, void *);
  8804. unsigned int (*_bfd_coff_swap_reloc_out)
  8805. (bfd *, void *, void *);
  8806. unsigned int (*_bfd_coff_swap_filehdr_out)
  8807. (bfd *, void *, void *);
  8808. unsigned int (*_bfd_coff_swap_aouthdr_out)
  8809. (bfd *, void *, void *);
  8810. unsigned int (*_bfd_coff_swap_scnhdr_out)
  8811. (bfd *, void *, void *);
  8812. unsigned int _bfd_filhsz;
  8813. unsigned int _bfd_aoutsz;
  8814. unsigned int _bfd_scnhsz;
  8815. unsigned int _bfd_symesz;
  8816. unsigned int _bfd_auxesz;
  8817. unsigned int _bfd_relsz;
  8818. unsigned int _bfd_linesz;
  8819. unsigned int _bfd_filnmlen;
  8820. bfd_boolean _bfd_coff_long_filenames;
  8821. bfd_boolean _bfd_coff_long_section_names;
  8822. bfd_boolean (*_bfd_coff_set_long_section_names)
  8823. (bfd *, int);
  8824. unsigned int _bfd_coff_default_section_alignment_power;
  8825. bfd_boolean _bfd_coff_force_symnames_in_strings;
  8826. unsigned int _bfd_coff_debug_string_prefix_length;
  8827. unsigned int _bfd_coff_max_nscns;
  8828. void (*_bfd_coff_swap_filehdr_in)
  8829. (bfd *, void *, void *);
  8830. void (*_bfd_coff_swap_aouthdr_in)
  8831. (bfd *, void *, void *);
  8832. void (*_bfd_coff_swap_scnhdr_in)
  8833. (bfd *, void *, void *);
  8834. void (*_bfd_coff_swap_reloc_in)
  8835. (bfd *abfd, void *, void *);
  8836. bfd_boolean (*_bfd_coff_bad_format_hook)
  8837. (bfd *, void *);
  8838. bfd_boolean (*_bfd_coff_set_arch_mach_hook)
  8839. (bfd *, void *);
  8840. void * (*_bfd_coff_mkobject_hook)
  8841. (bfd *, void *, void *);
  8842. bfd_boolean (*_bfd_styp_to_sec_flags_hook)
  8843. (bfd *, void *, const char *, asection *, flagword *);
  8844. void (*_bfd_set_alignment_hook)
  8845. (bfd *, asection *, void *);
  8846. bfd_boolean (*_bfd_coff_slurp_symbol_table)
  8847. (bfd *);
  8848. bfd_boolean (*_bfd_coff_symname_in_debug)
  8849. (bfd *, struct internal_syment *);
  8850. bfd_boolean (*_bfd_coff_pointerize_aux_hook)
  8851. (bfd *, combined_entry_type *, combined_entry_type *,
  8852. unsigned int, combined_entry_type *);
  8853. bfd_boolean (*_bfd_coff_print_aux)
  8854. (bfd *, FILE *, combined_entry_type *, combined_entry_type *,
  8855. combined_entry_type *, unsigned int);
  8856. void (*_bfd_coff_reloc16_extra_cases)
  8857. (bfd *, struct bfd_link_info *, struct bfd_link_order *, arelent *,
  8858. bfd_byte *, unsigned int *, unsigned int *);
  8859. int (*_bfd_coff_reloc16_estimate)
  8860. (bfd *, asection *, arelent *, unsigned int,
  8861. struct bfd_link_info *);
  8862. enum coff_symbol_classification (*_bfd_coff_classify_symbol)
  8863. (bfd *, struct internal_syment *);
  8864. bfd_boolean (*_bfd_coff_compute_section_file_positions)
  8865. (bfd *);
  8866. bfd_boolean (*_bfd_coff_start_final_link)
  8867. (bfd *, struct bfd_link_info *);
  8868. bfd_boolean (*_bfd_coff_relocate_section)
  8869. (bfd *, struct bfd_link_info *, bfd *, asection *, bfd_byte *,
  8870. struct internal_reloc *, struct internal_syment *, asection **);
  8871. reloc_howto_type *(*_bfd_coff_rtype_to_howto)
  8872. (bfd *, asection *, struct internal_reloc *,
  8873. struct coff_link_hash_entry *, struct internal_syment *,
  8874. bfd_vma *);
  8875. bfd_boolean (*_bfd_coff_adjust_symndx)
  8876. (bfd *, struct bfd_link_info *, bfd *, asection *,
  8877. struct internal_reloc *, bfd_boolean *);
  8878. bfd_boolean (*_bfd_coff_link_add_one_symbol)
  8879. (struct bfd_link_info *, bfd *, const char *, flagword,
  8880. asection *, bfd_vma, const char *, bfd_boolean, bfd_boolean,
  8881. struct bfd_link_hash_entry **);
  8882. bfd_boolean (*_bfd_coff_link_output_has_begun)
  8883. (bfd *, struct coff_final_link_info *);
  8884. bfd_boolean (*_bfd_coff_final_link_postscript)
  8885. (bfd *, struct coff_final_link_info *);
  8886. bfd_boolean (*_bfd_coff_print_pdata)
  8887. (bfd *, void *);
  8888. } bfd_coff_backend_data;
  8889. #define coff_backend_info(abfd) \
  8890. ((bfd_coff_backend_data *) (abfd)->xvec->backend_data)
  8891. #define bfd_coff_swap_aux_in(a,e,t,c,ind,num,i) \
  8892. ((coff_backend_info (a)->_bfd_coff_swap_aux_in) (a,e,t,c,ind,num,i))
  8893. #define bfd_coff_swap_sym_in(a,e,i) \
  8894. ((coff_backend_info (a)->_bfd_coff_swap_sym_in) (a,e,i))
  8895. #define bfd_coff_swap_lineno_in(a,e,i) \
  8896. ((coff_backend_info ( a)->_bfd_coff_swap_lineno_in) (a,e,i))
  8897. #define bfd_coff_swap_reloc_out(abfd, i, o) \
  8898. ((coff_backend_info (abfd)->_bfd_coff_swap_reloc_out) (abfd, i, o))
  8899. #define bfd_coff_swap_lineno_out(abfd, i, o) \
  8900. ((coff_backend_info (abfd)->_bfd_coff_swap_lineno_out) (abfd, i, o))
  8901. #define bfd_coff_swap_aux_out(a,i,t,c,ind,num,o) \
  8902. ((coff_backend_info (a)->_bfd_coff_swap_aux_out) (a,i,t,c,ind,num,o))
  8903. #define bfd_coff_swap_sym_out(abfd, i,o) \
  8904. ((coff_backend_info (abfd)->_bfd_coff_swap_sym_out) (abfd, i, o))
  8905. #define bfd_coff_swap_scnhdr_out(abfd, i,o) \
  8906. ((coff_backend_info (abfd)->_bfd_coff_swap_scnhdr_out) (abfd, i, o))
  8907. #define bfd_coff_swap_filehdr_out(abfd, i,o) \
  8908. ((coff_backend_info (abfd)->_bfd_coff_swap_filehdr_out) (abfd, i, o))
  8909. #define bfd_coff_swap_aouthdr_out(abfd, i,o) \
  8910. ((coff_backend_info (abfd)->_bfd_coff_swap_aouthdr_out) (abfd, i, o))
  8911. #define bfd_coff_filhsz(abfd) (coff_backend_info (abfd)->_bfd_filhsz)
  8912. #define bfd_coff_aoutsz(abfd) (coff_backend_info (abfd)->_bfd_aoutsz)
  8913. #define bfd_coff_scnhsz(abfd) (coff_backend_info (abfd)->_bfd_scnhsz)
  8914. #define bfd_coff_symesz(abfd) (coff_backend_info (abfd)->_bfd_symesz)
  8915. #define bfd_coff_auxesz(abfd) (coff_backend_info (abfd)->_bfd_auxesz)
  8916. #define bfd_coff_relsz(abfd) (coff_backend_info (abfd)->_bfd_relsz)
  8917. #define bfd_coff_linesz(abfd) (coff_backend_info (abfd)->_bfd_linesz)
  8918. #define bfd_coff_filnmlen(abfd) (coff_backend_info (abfd)->_bfd_filnmlen)
  8919. #define bfd_coff_long_filenames(abfd) \
  8920. (coff_backend_info (abfd)->_bfd_coff_long_filenames)
  8921. #define bfd_coff_long_section_names(abfd) \
  8922. (coff_backend_info (abfd)->_bfd_coff_long_section_names)
  8923. #define bfd_coff_set_long_section_names(abfd, enable) \
  8924. ((coff_backend_info (abfd)->_bfd_coff_set_long_section_names) (abfd, enable))
  8925. #define bfd_coff_default_section_alignment_power(abfd) \
  8926. (coff_backend_info (abfd)->_bfd_coff_default_section_alignment_power)
  8927. #define bfd_coff_max_nscns(abfd) \
  8928. (coff_backend_info (abfd)->_bfd_coff_max_nscns)
  8929. #define bfd_coff_swap_filehdr_in(abfd, i,o) \
  8930. ((coff_backend_info (abfd)->_bfd_coff_swap_filehdr_in) (abfd, i, o))
  8931. #define bfd_coff_swap_aouthdr_in(abfd, i,o) \
  8932. ((coff_backend_info (abfd)->_bfd_coff_swap_aouthdr_in) (abfd, i, o))
  8933. #define bfd_coff_swap_scnhdr_in(abfd, i,o) \
  8934. ((coff_backend_info (abfd)->_bfd_coff_swap_scnhdr_in) (abfd, i, o))
  8935. #define bfd_coff_swap_reloc_in(abfd, i, o) \
  8936. ((coff_backend_info (abfd)->_bfd_coff_swap_reloc_in) (abfd, i, o))
  8937. #define bfd_coff_bad_format_hook(abfd, filehdr) \
  8938. ((coff_backend_info (abfd)->_bfd_coff_bad_format_hook) (abfd, filehdr))
  8939. #define bfd_coff_set_arch_mach_hook(abfd, filehdr)\
  8940. ((coff_backend_info (abfd)->_bfd_coff_set_arch_mach_hook) (abfd, filehdr))
  8941. #define bfd_coff_mkobject_hook(abfd, filehdr, aouthdr)\
  8942. ((coff_backend_info (abfd)->_bfd_coff_mkobject_hook)\
  8943. (abfd, filehdr, aouthdr))
  8944. #define bfd_coff_styp_to_sec_flags_hook(abfd, scnhdr, name, section, flags_ptr)\
  8945. ((coff_backend_info (abfd)->_bfd_styp_to_sec_flags_hook)\
  8946. (abfd, scnhdr, name, section, flags_ptr))
  8947. #define bfd_coff_set_alignment_hook(abfd, sec, scnhdr)\
  8948. ((coff_backend_info (abfd)->_bfd_set_alignment_hook) (abfd, sec, scnhdr))
  8949. #define bfd_coff_slurp_symbol_table(abfd)\
  8950. ((coff_backend_info (abfd)->_bfd_coff_slurp_symbol_table) (abfd))
  8951. #define bfd_coff_symname_in_debug(abfd, sym)\
  8952. ((coff_backend_info (abfd)->_bfd_coff_symname_in_debug) (abfd, sym))
  8953. #define bfd_coff_force_symnames_in_strings(abfd)\
  8954. (coff_backend_info (abfd)->_bfd_coff_force_symnames_in_strings)
  8955. #define bfd_coff_debug_string_prefix_length(abfd)\
  8956. (coff_backend_info (abfd)->_bfd_coff_debug_string_prefix_length)
  8957. #define bfd_coff_print_aux(abfd, file, base, symbol, aux, indaux)\
  8958. ((coff_backend_info (abfd)->_bfd_coff_print_aux)\
  8959. (abfd, file, base, symbol, aux, indaux))
  8960. #define bfd_coff_reloc16_extra_cases(abfd, link_info, link_order,\
  8961. reloc, data, src_ptr, dst_ptr)\
  8962. ((coff_backend_info (abfd)->_bfd_coff_reloc16_extra_cases)\
  8963. (abfd, link_info, link_order, reloc, data, src_ptr, dst_ptr))
  8964. #define bfd_coff_reloc16_estimate(abfd, section, reloc, shrink, link_info)\
  8965. ((coff_backend_info (abfd)->_bfd_coff_reloc16_estimate)\
  8966. (abfd, section, reloc, shrink, link_info))
  8967. #define bfd_coff_classify_symbol(abfd, sym)\
  8968. ((coff_backend_info (abfd)->_bfd_coff_classify_symbol)\
  8969. (abfd, sym))
  8970. #define bfd_coff_compute_section_file_positions(abfd)\
  8971. ((coff_backend_info (abfd)->_bfd_coff_compute_section_file_positions)\
  8972. (abfd))
  8973. #define bfd_coff_start_final_link(obfd, info)\
  8974. ((coff_backend_info (obfd)->_bfd_coff_start_final_link)\
  8975. (obfd, info))
  8976. #define bfd_coff_relocate_section(obfd,info,ibfd,o,con,rel,isyms,secs)\
  8977. ((coff_backend_info (ibfd)->_bfd_coff_relocate_section)\
  8978. (obfd, info, ibfd, o, con, rel, isyms, secs))
  8979. #define bfd_coff_rtype_to_howto(abfd, sec, rel, h, sym, addendp)\
  8980. ((coff_backend_info (abfd)->_bfd_coff_rtype_to_howto)\
  8981. (abfd, sec, rel, h, sym, addendp))
  8982. #define bfd_coff_adjust_symndx(obfd, info, ibfd, sec, rel, adjustedp)\
  8983. ((coff_backend_info (abfd)->_bfd_coff_adjust_symndx)\
  8984. (obfd, info, ibfd, sec, rel, adjustedp))
  8985. #define bfd_coff_link_add_one_symbol(info, abfd, name, flags, section,\
  8986. value, string, cp, coll, hashp)\
  8987. ((coff_backend_info (abfd)->_bfd_coff_link_add_one_symbol)\
  8988. (info, abfd, name, flags, section, value, string, cp, coll, hashp))
  8989. #define bfd_coff_link_output_has_begun(a,p) \
  8990. ((coff_backend_info (a)->_bfd_coff_link_output_has_begun) (a, p))
  8991. #define bfd_coff_final_link_postscript(a,p) \
  8992. ((coff_backend_info (a)->_bfd_coff_final_link_postscript) (a, p))
  8993. #define bfd_coff_have_print_pdata(a) \
  8994. (coff_backend_info (a)->_bfd_coff_print_pdata)
  8995. #define bfd_coff_print_pdata(a,p) \
  8996. ((coff_backend_info (a)->_bfd_coff_print_pdata) (a, p))
  8997. /* Macro: Returns true if the bfd is a PE executable as opposed to a
  8998. PE object file. */
  8999. #define bfd_pei_p(abfd) \
  9000. (CONST_STRNEQ ((abfd)->xvec->name, "pei-"))
  9001. 3.3.2.8 Writing relocations
  9002. ...........................
  9003. To write relocations, the back end steps though the canonical relocation
  9004. table and create an 'internal_reloc'. The symbol index to use is
  9005. removed from the 'offset' field in the symbol table supplied. The
  9006. address comes directly from the sum of the section base address and the
  9007. relocation offset; the type is dug directly from the howto field. Then
  9008. the 'internal_reloc' is swapped into the shape of an 'external_reloc'
  9009. and written out to disk.
  9010. 3.3.2.9 Reading linenumbers
  9011. ...........................
  9012. Creating the linenumber table is done by reading in the entire coff
  9013. linenumber table, and creating another table for internal use.
  9014. A coff linenumber table is structured so that each function is marked
  9015. as having a line number of 0. Each line within the function is an
  9016. offset from the first line in the function. The base of the line number
  9017. information for the table is stored in the symbol associated with the
  9018. function.
  9019. Note: The PE format uses line number 0 for a flag indicating a new
  9020. source file.
  9021. The information is copied from the external to the internal table,
  9022. and each symbol which marks a function is marked by pointing its...
  9023. How does this work ?
  9024. 3.3.2.10 Reading relocations
  9025. ............................
  9026. Coff relocations are easily transformed into the internal BFD form
  9027. ('arelent').
  9028. Reading a coff relocation table is done in the following stages:
  9029. * Read the entire coff relocation table into memory.
  9030. * Process each relocation in turn; first swap it from the external to
  9031. the internal form.
  9032. * Turn the symbol referenced in the relocation's symbol index into a
  9033. pointer into the canonical symbol table. This table is the same as
  9034. the one returned by a call to 'bfd_canonicalize_symtab'. The back
  9035. end will call that routine and save the result if a
  9036. canonicalization hasn't been done.
  9037. * The reloc index is turned into a pointer to a howto structure, in a
  9038. back end specific way. For instance, the 386 and 960 use the
  9039. 'r_type' to directly produce an index into a howto table vector;
  9040. the 88k subtracts a number from the 'r_type' field and creates an
  9041. addend field.
  9042. 
  9043. File: bfd.info, Node: elf, Next: mmo, Prev: coff, Up: BFD back ends
  9044. 3.4 ELF backends
  9045. ================
  9046. BFD support for ELF formats is being worked on. Currently, the best
  9047. supported back ends are for sparc and i386 (running svr4 or Solaris 2).
  9048. Documentation of the internals of the support code still needs to be
  9049. written. The code is changing quickly enough that we haven't bothered
  9050. yet.
  9051. 
  9052. File: bfd.info, Node: mmo, Prev: elf, Up: BFD back ends
  9053. 3.5 mmo backend
  9054. ===============
  9055. The mmo object format is used exclusively together with Professor Donald
  9056. E. Knuth's educational 64-bit processor MMIX. The simulator 'mmix' which
  9057. is available at <http://mmix.cs.hm.edu/src/index.html> understands this
  9058. format. That package also includes a combined assembler and linker
  9059. called 'mmixal'. The mmo format has no advantages feature-wise compared
  9060. to e.g. ELF. It is a simple non-relocatable object format with no
  9061. support for archives or debugging information, except for symbol value
  9062. information and line numbers (which is not yet implemented in BFD). See
  9063. <http://mmix.cs.hm.edu/> for more information about MMIX. The ELF format
  9064. is used for intermediate object files in the BFD implementation.
  9065. * Menu:
  9066. * File layout::
  9067. * Symbol-table::
  9068. * mmo section mapping::
  9069. 
  9070. File: bfd.info, Node: File layout, Next: Symbol-table, Prev: mmo, Up: mmo
  9071. 3.5.1 File layout
  9072. -----------------
  9073. The mmo file contents is not partitioned into named sections as with
  9074. e.g. ELF. Memory areas is formed by specifying the location of the data
  9075. that follows. Only the memory area '0x0000...00' to '0x01ff...ff' is
  9076. executable, so it is used for code (and constants) and the area
  9077. '0x2000...00' to '0x20ff...ff' is used for writable data. *Note mmo
  9078. section mapping::.
  9079. There is provision for specifying "special data" of 65536 different
  9080. types. We use type 80 (decimal), arbitrarily chosen the same as the ELF
  9081. 'e_machine' number for MMIX, filling it with section information
  9082. normally found in ELF objects. *Note mmo section mapping::.
  9083. Contents is entered as 32-bit words, xor:ed over previous contents,
  9084. always zero-initialized. A word that starts with the byte '0x98' forms
  9085. a command called a 'lopcode', where the next byte distinguished between
  9086. the thirteen lopcodes. The two remaining bytes, called the 'Y' and 'Z'
  9087. fields, or the 'YZ' field (a 16-bit big-endian number), are used for
  9088. various purposes different for each lopcode. As documented in
  9089. <http://mmix.cs.hm.edu/doc/mmixal.pdf>, the lopcodes are:
  9090. 'lop_quote'
  9091. 0x98000001. The next word is contents, regardless of whether it
  9092. starts with 0x98 or not.
  9093. 'lop_loc'
  9094. 0x9801YYZZ, where 'Z' is 1 or 2. This is a location directive,
  9095. setting the location for the next data to the next 32-bit word (for
  9096. Z = 1) or 64-bit word (for Z = 2), plus Y * 2^56. Normally 'Y' is
  9097. 0 for the text segment and 2 for the data segment. Beware that the
  9098. low bits of non- tetrabyte-aligned values are silently discarded
  9099. when being automatically incremented and when storing contents (in
  9100. contrast to e.g. its use as current location when followed by
  9101. lop_fixo et al before the next possibly-quoted tetrabyte contents).
  9102. 'lop_skip'
  9103. 0x9802YYZZ. Increase the current location by 'YZ' bytes.
  9104. 'lop_fixo'
  9105. 0x9803YYZZ, where 'Z' is 1 or 2. Store the current location as 64
  9106. bits into the location pointed to by the next 32-bit (Z = 1) or
  9107. 64-bit (Z = 2) word, plus Y * 2^56.
  9108. 'lop_fixr'
  9109. 0x9804YYZZ. 'YZ' is stored into the current location plus 2 - 4 *
  9110. YZ.
  9111. 'lop_fixrx'
  9112. 0x980500ZZ. 'Z' is 16 or 24. A value 'L' derived from the
  9113. following 32-bit word are used in a manner similar to 'YZ' in
  9114. lop_fixr: it is xor:ed into the current location minus 4 * L. The
  9115. first byte of the word is 0 or 1. If it is 1, then L = (LOWEST 24
  9116. BITS OF WORD) - 2^Z, if 0, then L = (LOWEST 24 BITS OF WORD).
  9117. 'lop_file'
  9118. 0x9806YYZZ. 'Y' is the file number, 'Z' is count of 32-bit words.
  9119. Set the file number to 'Y' and the line counter to 0. The next Z *
  9120. 4 bytes contain the file name, padded with zeros if the count is
  9121. not a multiple of four. The same 'Y' may occur multiple times, but
  9122. 'Z' must be 0 for all but the first occurrence.
  9123. 'lop_line'
  9124. 0x9807YYZZ. 'YZ' is the line number. Together with lop_file, it
  9125. forms the source location for the next 32-bit word. Note that for
  9126. each non-lopcode 32-bit word, line numbers are assumed incremented
  9127. by one.
  9128. 'lop_spec'
  9129. 0x9808YYZZ. 'YZ' is the type number. Data until the next lopcode
  9130. other than lop_quote forms special data of type 'YZ'. *Note mmo
  9131. section mapping::.
  9132. Other types than 80, (or type 80 with a content that does not
  9133. parse) is stored in sections named '.MMIX.spec_data.N' where N is
  9134. the 'YZ'-type. The flags for such a sections say not to allocate
  9135. or load the data. The vma is 0. Contents of multiple occurrences
  9136. of special data N is concatenated to the data of the previous
  9137. lop_spec Ns. The location in data or code at which the lop_spec
  9138. occurred is lost.
  9139. 'lop_pre'
  9140. 0x980901ZZ. The first lopcode in a file. The 'Z' field forms the
  9141. length of header information in 32-bit words, where the first word
  9142. tells the time in seconds since '00:00:00 GMT Jan 1 1970'.
  9143. 'lop_post'
  9144. 0x980a00ZZ. Z > 32. This lopcode follows after all
  9145. content-generating lopcodes in a program. The 'Z' field denotes
  9146. the value of 'rG' at the beginning of the program. The following
  9147. 256 - Z big-endian 64-bit words are loaded into global registers
  9148. '$G' ... '$255'.
  9149. 'lop_stab'
  9150. 0x980b0000. The next-to-last lopcode in a program. Must follow
  9151. immediately after the lop_post lopcode and its data. After this
  9152. lopcode follows all symbols in a compressed format (*note
  9153. Symbol-table::).
  9154. 'lop_end'
  9155. 0x980cYYZZ. The last lopcode in a program. It must follow the
  9156. lop_stab lopcode and its data. The 'YZ' field contains the number
  9157. of 32-bit words of symbol table information after the preceding
  9158. lop_stab lopcode.
  9159. Note that the lopcode "fixups"; 'lop_fixr', 'lop_fixrx' and
  9160. 'lop_fixo' are not generated by BFD, but are handled. They are
  9161. generated by 'mmixal'.
  9162. This trivial one-label, one-instruction file:
  9163. :Main TRAP 1,2,3
  9164. can be represented this way in mmo:
  9165. 0x98090101 - lop_pre, one 32-bit word with timestamp.
  9166. <timestamp>
  9167. 0x98010002 - lop_loc, text segment, using a 64-bit address.
  9168. Note that mmixal does not emit this for the file above.
  9169. 0x00000000 - Address, high 32 bits.
  9170. 0x00000000 - Address, low 32 bits.
  9171. 0x98060002 - lop_file, 2 32-bit words for file-name.
  9172. 0x74657374 - "test"
  9173. 0x2e730000 - ".s\0\0"
  9174. 0x98070001 - lop_line, line 1.
  9175. 0x00010203 - TRAP 1,2,3
  9176. 0x980a00ff - lop_post, setting $255 to 0.
  9177. 0x00000000
  9178. 0x00000000
  9179. 0x980b0000 - lop_stab for ":Main" = 0, serial 1.
  9180. 0x203a4040 *Note Symbol-table::.
  9181. 0x10404020
  9182. 0x4d206120
  9183. 0x69016e00
  9184. 0x81000000
  9185. 0x980c0005 - lop_end; symbol table contained five 32-bit words.
  9186. 
  9187. File: bfd.info, Node: Symbol-table, Next: mmo section mapping, Prev: File layout, Up: mmo
  9188. 3.5.2 Symbol table format
  9189. -------------------------
  9190. From mmixal.w (or really, the generated mmixal.tex) in the MMIXware
  9191. package which also contains the 'mmix' simulator: "Symbols are stored
  9192. and retrieved by means of a 'ternary search trie', following ideas of
  9193. Bentley and Sedgewick. (See ACM-SIAM Symp. on Discrete Algorithms '8'
  9194. (1997), 360-369; R.Sedgewick, 'Algorithms in C' (Reading, Mass.
  9195. Addison-Wesley, 1998), '15.4'.) Each trie node stores a character, and
  9196. there are branches to subtries for the cases where a given character is
  9197. less than, equal to, or greater than the character in the trie. There
  9198. also is a pointer to a symbol table entry if a symbol ends at the
  9199. current node."
  9200. So it's a tree encoded as a stream of bytes. The stream of bytes
  9201. acts on a single virtual global symbol, adding and removing characters
  9202. and signalling complete symbol points. Here, we read the stream and
  9203. create symbols at the completion points.
  9204. First, there's a control byte 'm'. If any of the listed bits in 'm'
  9205. is nonzero, we execute what stands at the right, in the listed order:
  9206. (MMO3_LEFT)
  9207. 0x40 - Traverse left trie.
  9208. (Read a new command byte and recurse.)
  9209. (MMO3_SYMBITS)
  9210. 0x2f - Read the next byte as a character and store it in the
  9211. current character position; increment character position.
  9212. Test the bits of m:
  9213. (MMO3_WCHAR)
  9214. 0x80 - The character is 16-bit (so read another byte,
  9215. merge into current character.
  9216. (MMO3_TYPEBITS)
  9217. 0xf - We have a complete symbol; parse the type, value
  9218. and serial number and do what should be done
  9219. with a symbol. The type and length information
  9220. is in j = (m & 0xf).
  9221. (MMO3_REGQUAL_BITS)
  9222. j == 0xf: A register variable. The following
  9223. byte tells which register.
  9224. j <= 8: An absolute symbol. Read j bytes as the
  9225. big-endian number the symbol equals.
  9226. A j = 2 with two zero bytes denotes an
  9227. unknown symbol.
  9228. j > 8: As with j <= 8, but add (0x20 << 56)
  9229. to the value in the following j - 8
  9230. bytes.
  9231. Then comes the serial number, as a variant of
  9232. uleb128, but better named ubeb128:
  9233. Read bytes and shift the previous value left 7
  9234. (multiply by 128). Add in the new byte, repeat
  9235. until a byte has bit 7 set. The serial number
  9236. is the computed value minus 128.
  9237. (MMO3_MIDDLE)
  9238. 0x20 - Traverse middle trie. (Read a new command byte
  9239. and recurse.) Decrement character position.
  9240. (MMO3_RIGHT)
  9241. 0x10 - Traverse right trie. (Read a new command byte and
  9242. recurse.)
  9243. Let's look again at the 'lop_stab' for the trivial file (*note File
  9244. layout::).
  9245. 0x980b0000 - lop_stab for ":Main" = 0, serial 1.
  9246. 0x203a4040
  9247. 0x10404020
  9248. 0x4d206120
  9249. 0x69016e00
  9250. 0x81000000
  9251. This forms the trivial trie (note that the path between ":" and "M"
  9252. is redundant):
  9253. 203a ":"
  9254. 40 /
  9255. 40 /
  9256. 10 \
  9257. 40 /
  9258. 40 /
  9259. 204d "M"
  9260. 2061 "a"
  9261. 2069 "i"
  9262. 016e "n" is the last character in a full symbol, and
  9263. with a value represented in one byte.
  9264. 00 The value is 0.
  9265. 81 The serial number is 1.
  9266. 
  9267. File: bfd.info, Node: mmo section mapping, Prev: Symbol-table, Up: mmo
  9268. 3.5.3 mmo section mapping
  9269. -------------------------
  9270. The implementation in BFD uses special data type 80 (decimal) to
  9271. encapsulate and describe named sections, containing e.g. debug
  9272. information. If needed, any datum in the encapsulation will be quoted
  9273. using lop_quote. First comes a 32-bit word holding the number of 32-bit
  9274. words containing the zero-terminated zero-padded segment name. After
  9275. the name there's a 32-bit word holding flags describing the section
  9276. type. Then comes a 64-bit big-endian word with the section length (in
  9277. bytes), then another with the section start address. Depending on the
  9278. type of section, the contents might follow, zero-padded to 32-bit
  9279. boundary. For a loadable section (such as data or code), the contents
  9280. might follow at some later point, not necessarily immediately, as a
  9281. lop_loc with the same start address as in the section description,
  9282. followed by the contents. This in effect forms a descriptor that must
  9283. be emitted before the actual contents. Sections described this way must
  9284. not overlap.
  9285. For areas that don't have such descriptors, synthetic sections are
  9286. formed by BFD. Consecutive contents in the two memory areas
  9287. '0x0000...00' to '0x01ff...ff' and '0x2000...00' to '0x20ff...ff' are
  9288. entered in sections named '.text' and '.data' respectively. If an area
  9289. is not otherwise described, but would together with a neighboring lower
  9290. area be less than '0x40000000' bytes long, it is joined with the lower
  9291. area and the gap is zero-filled. For other cases, a new section is
  9292. formed, named '.MMIX.sec.N'. Here, N is a number, a running count
  9293. through the mmo file, starting at 0.
  9294. A loadable section specified as:
  9295. .section secname,"ax"
  9296. TETRA 1,2,3,4,-1,-2009
  9297. BYTE 80
  9298. and linked to address '0x4', is represented by the sequence:
  9299. 0x98080050 - lop_spec 80
  9300. 0x00000002 - two 32-bit words for the section name
  9301. 0x7365636e - "secn"
  9302. 0x616d6500 - "ame\0"
  9303. 0x00000033 - flags CODE, READONLY, LOAD, ALLOC
  9304. 0x00000000 - high 32 bits of section length
  9305. 0x0000001c - section length is 28 bytes; 6 * 4 + 1 + alignment to 32 bits
  9306. 0x00000000 - high 32 bits of section address
  9307. 0x00000004 - section address is 4
  9308. 0x98010002 - 64 bits with address of following data
  9309. 0x00000000 - high 32 bits of address
  9310. 0x00000004 - low 32 bits: data starts at address 4
  9311. 0x00000001 - 1
  9312. 0x00000002 - 2
  9313. 0x00000003 - 3
  9314. 0x00000004 - 4
  9315. 0xffffffff - -1
  9316. 0xfffff827 - -2009
  9317. 0x50000000 - 80 as a byte, padded with zeros.
  9318. Note that the lop_spec wrapping does not include the section
  9319. contents. Compare this to a non-loaded section specified as:
  9320. .section thirdsec
  9321. TETRA 200001,100002
  9322. BYTE 38,40
  9323. This, when linked to address '0x200000000000001c', is represented by:
  9324. 0x98080050 - lop_spec 80
  9325. 0x00000002 - two 32-bit words for the section name
  9326. 0x7365636e - "thir"
  9327. 0x616d6500 - "dsec"
  9328. 0x00000010 - flag READONLY
  9329. 0x00000000 - high 32 bits of section length
  9330. 0x0000000c - section length is 12 bytes; 2 * 4 + 2 + alignment to 32 bits
  9331. 0x20000000 - high 32 bits of address
  9332. 0x0000001c - low 32 bits of address 0x200000000000001c
  9333. 0x00030d41 - 200001
  9334. 0x000186a2 - 100002
  9335. 0x26280000 - 38, 40 as bytes, padded with zeros
  9336. For the latter example, the section contents must not be loaded in
  9337. memory, and is therefore specified as part of the special data. The
  9338. address is usually unimportant but might provide information for e.g.
  9339. the DWARF 2 debugging format.
  9340. 
  9341. File: bfd.info, Node: GNU Free Documentation License, Next: BFD Index, Prev: BFD back ends, Up: Top
  9342. Version 1.3, 3 November 2008
  9343. Copyright (C) 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.
  9344. <http://fsf.org/>
  9345. Everyone is permitted to copy and distribute verbatim copies
  9346. of this license document, but changing it is not allowed.
  9347. 0. PREAMBLE
  9348. The purpose of this License is to make a manual, textbook, or other
  9349. functional and useful document "free" in the sense of freedom: to
  9350. assure everyone the effective freedom to copy and redistribute it,
  9351. with or without modifying it, either commercially or
  9352. noncommercially. Secondarily, this License preserves for the
  9353. author and publisher a way to get credit for their work, while not
  9354. being considered responsible for modifications made by others.
  9355. This License is a kind of "copyleft", which means that derivative
  9356. works of the document must themselves be free in the same sense.
  9357. It complements the GNU General Public License, which is a copyleft
  9358. license designed for free software.
  9359. We have designed this License in order to use it for manuals for
  9360. free software, because free software needs free documentation: a
  9361. free program should come with manuals providing the same freedoms
  9362. that the software does. But this License is not limited to
  9363. software manuals; it can be used for any textual work, regardless
  9364. of subject matter or whether it is published as a printed book. We
  9365. recommend this License principally for works whose purpose is
  9366. instruction or reference.
  9367. 1. APPLICABILITY AND DEFINITIONS
  9368. This License applies to any manual or other work, in any medium,
  9369. that contains a notice placed by the copyright holder saying it can
  9370. be distributed under the terms of this License. Such a notice
  9371. grants a world-wide, royalty-free license, unlimited in duration,
  9372. to use that work under the conditions stated herein. The
  9373. "Document", below, refers to any such manual or work. Any member
  9374. of the public is a licensee, and is addressed as "you". You accept
  9375. the license if you copy, modify or distribute the work in a way
  9376. requiring permission under copyright law.
  9377. A "Modified Version" of the Document means any work containing the
  9378. Document or a portion of it, either copied verbatim, or with
  9379. modifications and/or translated into another language.
  9380. A "Secondary Section" is a named appendix or a front-matter section
  9381. of the Document that deals exclusively with the relationship of the
  9382. publishers or authors of the Document to the Document's overall
  9383. subject (or to related matters) and contains nothing that could
  9384. fall directly within that overall subject. (Thus, if the Document
  9385. is in part a textbook of mathematics, a Secondary Section may not
  9386. explain any mathematics.) The relationship could be a matter of
  9387. historical connection with the subject or with related matters, or
  9388. of legal, commercial, philosophical, ethical or political position
  9389. regarding them.
  9390. The "Invariant Sections" are certain Secondary Sections whose
  9391. titles are designated, as being those of Invariant Sections, in the
  9392. notice that says that the Document is released under this License.
  9393. If a section does not fit the above definition of Secondary then it
  9394. is not allowed to be designated as Invariant. The Document may
  9395. contain zero Invariant Sections. If the Document does not identify
  9396. any Invariant Sections then there are none.
  9397. The "Cover Texts" are certain short passages of text that are
  9398. listed, as Front-Cover Texts or Back-Cover Texts, in the notice
  9399. that says that the Document is released under this License. A
  9400. Front-Cover Text may be at most 5 words, and a Back-Cover Text may
  9401. be at most 25 words.
  9402. A "Transparent" copy of the Document means a machine-readable copy,
  9403. represented in a format whose specification is available to the
  9404. general public, that is suitable for revising the document
  9405. straightforwardly with generic text editors or (for images composed
  9406. of pixels) generic paint programs or (for drawings) some widely
  9407. available drawing editor, and that is suitable for input to text
  9408. formatters or for automatic translation to a variety of formats
  9409. suitable for input to text formatters. A copy made in an otherwise
  9410. Transparent file format whose markup, or absence of markup, has
  9411. been arranged to thwart or discourage subsequent modification by
  9412. readers is not Transparent. An image format is not Transparent if
  9413. used for any substantial amount of text. A copy that is not
  9414. "Transparent" is called "Opaque".
  9415. Examples of suitable formats for Transparent copies include plain
  9416. ASCII without markup, Texinfo input format, LaTeX input format,
  9417. SGML or XML using a publicly available DTD, and standard-conforming
  9418. simple HTML, PostScript or PDF designed for human modification.
  9419. Examples of transparent image formats include PNG, XCF and JPG.
  9420. Opaque formats include proprietary formats that can be read and
  9421. edited only by proprietary word processors, SGML or XML for which
  9422. the DTD and/or processing tools are not generally available, and
  9423. the machine-generated HTML, PostScript or PDF produced by some word
  9424. processors for output purposes only.
  9425. The "Title Page" means, for a printed book, the title page itself,
  9426. plus such following pages as are needed to hold, legibly, the
  9427. material this License requires to appear in the title page. For
  9428. works in formats which do not have any title page as such, "Title
  9429. Page" means the text near the most prominent appearance of the
  9430. work's title, preceding the beginning of the body of the text.
  9431. The "publisher" means any person or entity that distributes copies
  9432. of the Document to the public.
  9433. A section "Entitled XYZ" means a named subunit of the Document
  9434. whose title either is precisely XYZ or contains XYZ in parentheses
  9435. following text that translates XYZ in another language. (Here XYZ
  9436. stands for a specific section name mentioned below, such as
  9437. "Acknowledgements", "Dedications", "Endorsements", or "History".)
  9438. To "Preserve the Title" of such a section when you modify the
  9439. Document means that it remains a section "Entitled XYZ" according
  9440. to this definition.
  9441. The Document may include Warranty Disclaimers next to the notice
  9442. which states that this License applies to the Document. These
  9443. Warranty Disclaimers are considered to be included by reference in
  9444. this License, but only as regards disclaiming warranties: any other
  9445. implication that these Warranty Disclaimers may have is void and
  9446. has no effect on the meaning of this License.
  9447. 2. VERBATIM COPYING
  9448. You may copy and distribute the Document in any medium, either
  9449. commercially or noncommercially, provided that this License, the
  9450. copyright notices, and the license notice saying this License
  9451. applies to the Document are reproduced in all copies, and that you
  9452. add no other conditions whatsoever to those of this License. You
  9453. may not use technical measures to obstruct or control the reading
  9454. or further copying of the copies you make or distribute. However,
  9455. you may accept compensation in exchange for copies. If you
  9456. distribute a large enough number of copies you must also follow the
  9457. conditions in section 3.
  9458. You may also lend copies, under the same conditions stated above,
  9459. and you may publicly display copies.
  9460. 3. COPYING IN QUANTITY
  9461. If you publish printed copies (or copies in media that commonly
  9462. have printed covers) of the Document, numbering more than 100, and
  9463. the Document's license notice requires Cover Texts, you must
  9464. enclose the copies in covers that carry, clearly and legibly, all
  9465. these Cover Texts: Front-Cover Texts on the front cover, and
  9466. Back-Cover Texts on the back cover. Both covers must also clearly
  9467. and legibly identify you as the publisher of these copies. The
  9468. front cover must present the full title with all words of the title
  9469. equally prominent and visible. You may add other material on the
  9470. covers in addition. Copying with changes limited to the covers, as
  9471. long as they preserve the title of the Document and satisfy these
  9472. conditions, can be treated as verbatim copying in other respects.
  9473. If the required texts for either cover are too voluminous to fit
  9474. legibly, you should put the first ones listed (as many as fit
  9475. reasonably) on the actual cover, and continue the rest onto
  9476. adjacent pages.
  9477. If you publish or distribute Opaque copies of the Document
  9478. numbering more than 100, you must either include a machine-readable
  9479. Transparent copy along with each Opaque copy, or state in or with
  9480. each Opaque copy a computer-network location from which the general
  9481. network-using public has access to download using public-standard
  9482. network protocols a complete Transparent copy of the Document, free
  9483. of added material. If you use the latter option, you must take
  9484. reasonably prudent steps, when you begin distribution of Opaque
  9485. copies in quantity, to ensure that this Transparent copy will
  9486. remain thus accessible at the stated location until at least one
  9487. year after the last time you distribute an Opaque copy (directly or
  9488. through your agents or retailers) of that edition to the public.
  9489. It is requested, but not required, that you contact the authors of
  9490. the Document well before redistributing any large number of copies,
  9491. to give them a chance to provide you with an updated version of the
  9492. Document.
  9493. 4. MODIFICATIONS
  9494. You may copy and distribute a Modified Version of the Document
  9495. under the conditions of sections 2 and 3 above, provided that you
  9496. release the Modified Version under precisely this License, with the
  9497. Modified Version filling the role of the Document, thus licensing
  9498. distribution and modification of the Modified Version to whoever
  9499. possesses a copy of it. In addition, you must do these things in
  9500. the Modified Version:
  9501. A. Use in the Title Page (and on the covers, if any) a title
  9502. distinct from that of the Document, and from those of previous
  9503. versions (which should, if there were any, be listed in the
  9504. History section of the Document). You may use the same title
  9505. as a previous version if the original publisher of that
  9506. version gives permission.
  9507. B. List on the Title Page, as authors, one or more persons or
  9508. entities responsible for authorship of the modifications in
  9509. the Modified Version, together with at least five of the
  9510. principal authors of the Document (all of its principal
  9511. authors, if it has fewer than five), unless they release you
  9512. from this requirement.
  9513. C. State on the Title page the name of the publisher of the
  9514. Modified Version, as the publisher.
  9515. D. Preserve all the copyright notices of the Document.
  9516. E. Add an appropriate copyright notice for your modifications
  9517. adjacent to the other copyright notices.
  9518. F. Include, immediately after the copyright notices, a license
  9519. notice giving the public permission to use the Modified
  9520. Version under the terms of this License, in the form shown in
  9521. the Addendum below.
  9522. G. Preserve in that license notice the full lists of Invariant
  9523. Sections and required Cover Texts given in the Document's
  9524. license notice.
  9525. H. Include an unaltered copy of this License.
  9526. I. Preserve the section Entitled "History", Preserve its Title,
  9527. and add to it an item stating at least the title, year, new
  9528. authors, and publisher of the Modified Version as given on the
  9529. Title Page. If there is no section Entitled "History" in the
  9530. Document, create one stating the title, year, authors, and
  9531. publisher of the Document as given on its Title Page, then add
  9532. an item describing the Modified Version as stated in the
  9533. previous sentence.
  9534. J. Preserve the network location, if any, given in the Document
  9535. for public access to a Transparent copy of the Document, and
  9536. likewise the network locations given in the Document for
  9537. previous versions it was based on. These may be placed in the
  9538. "History" section. You may omit a network location for a work
  9539. that was published at least four years before the Document
  9540. itself, or if the original publisher of the version it refers
  9541. to gives permission.
  9542. K. For any section Entitled "Acknowledgements" or "Dedications",
  9543. Preserve the Title of the section, and preserve in the section
  9544. all the substance and tone of each of the contributor
  9545. acknowledgements and/or dedications given therein.
  9546. L. Preserve all the Invariant Sections of the Document, unaltered
  9547. in their text and in their titles. Section numbers or the
  9548. equivalent are not considered part of the section titles.
  9549. M. Delete any section Entitled "Endorsements". Such a section
  9550. may not be included in the Modified Version.
  9551. N. Do not retitle any existing section to be Entitled
  9552. "Endorsements" or to conflict in title with any Invariant
  9553. Section.
  9554. O. Preserve any Warranty Disclaimers.
  9555. If the Modified Version includes new front-matter sections or
  9556. appendices that qualify as Secondary Sections and contain no
  9557. material copied from the Document, you may at your option designate
  9558. some or all of these sections as invariant. To do this, add their
  9559. titles to the list of Invariant Sections in the Modified Version's
  9560. license notice. These titles must be distinct from any other
  9561. section titles.
  9562. You may add a section Entitled "Endorsements", provided it contains
  9563. nothing but endorsements of your Modified Version by various
  9564. parties--for example, statements of peer review or that the text
  9565. has been approved by an organization as the authoritative
  9566. definition of a standard.
  9567. You may add a passage of up to five words as a Front-Cover Text,
  9568. and a passage of up to 25 words as a Back-Cover Text, to the end of
  9569. the list of Cover Texts in the Modified Version. Only one passage
  9570. of Front-Cover Text and one of Back-Cover Text may be added by (or
  9571. through arrangements made by) any one entity. If the Document
  9572. already includes a cover text for the same cover, previously added
  9573. by you or by arrangement made by the same entity you are acting on
  9574. behalf of, you may not add another; but you may replace the old
  9575. one, on explicit permission from the previous publisher that added
  9576. the old one.
  9577. The author(s) and publisher(s) of the Document do not by this
  9578. License give permission to use their names for publicity for or to
  9579. assert or imply endorsement of any Modified Version.
  9580. 5. COMBINING DOCUMENTS
  9581. You may combine the Document with other documents released under
  9582. this License, under the terms defined in section 4 above for
  9583. modified versions, provided that you include in the combination all
  9584. of the Invariant Sections of all of the original documents,
  9585. unmodified, and list them all as Invariant Sections of your
  9586. combined work in its license notice, and that you preserve all
  9587. their Warranty Disclaimers.
  9588. The combined work need only contain one copy of this License, and
  9589. multiple identical Invariant Sections may be replaced with a single
  9590. copy. If there are multiple Invariant Sections with the same name
  9591. but different contents, make the title of each such section unique
  9592. by adding at the end of it, in parentheses, the name of the
  9593. original author or publisher of that section if known, or else a
  9594. unique number. Make the same adjustment to the section titles in
  9595. the list of Invariant Sections in the license notice of the
  9596. combined work.
  9597. In the combination, you must combine any sections Entitled
  9598. "History" in the various original documents, forming one section
  9599. Entitled "History"; likewise combine any sections Entitled
  9600. "Acknowledgements", and any sections Entitled "Dedications". You
  9601. must delete all sections Entitled "Endorsements."
  9602. 6. COLLECTIONS OF DOCUMENTS
  9603. You may make a collection consisting of the Document and other
  9604. documents released under this License, and replace the individual
  9605. copies of this License in the various documents with a single copy
  9606. that is included in the collection, provided that you follow the
  9607. rules of this License for verbatim copying of each of the documents
  9608. in all other respects.
  9609. You may extract a single document from such a collection, and
  9610. distribute it individually under this License, provided you insert
  9611. a copy of this License into the extracted document, and follow this
  9612. License in all other respects regarding verbatim copying of that
  9613. document.
  9614. 7. AGGREGATION WITH INDEPENDENT WORKS
  9615. A compilation of the Document or its derivatives with other
  9616. separate and independent documents or works, in or on a volume of a
  9617. storage or distribution medium, is called an "aggregate" if the
  9618. copyright resulting from the compilation is not used to limit the
  9619. legal rights of the compilation's users beyond what the individual
  9620. works permit. When the Document is included in an aggregate, this
  9621. License does not apply to the other works in the aggregate which
  9622. are not themselves derivative works of the Document.
  9623. If the Cover Text requirement of section 3 is applicable to these
  9624. copies of the Document, then if the Document is less than one half
  9625. of the entire aggregate, the Document's Cover Texts may be placed
  9626. on covers that bracket the Document within the aggregate, or the
  9627. electronic equivalent of covers if the Document is in electronic
  9628. form. Otherwise they must appear on printed covers that bracket
  9629. the whole aggregate.
  9630. 8. TRANSLATION
  9631. Translation is considered a kind of modification, so you may
  9632. distribute translations of the Document under the terms of section
  9633. 4. Replacing Invariant Sections with translations requires special
  9634. permission from their copyright holders, but you may include
  9635. translations of some or all Invariant Sections in addition to the
  9636. original versions of these Invariant Sections. You may include a
  9637. translation of this License, and all the license notices in the
  9638. Document, and any Warranty Disclaimers, provided that you also
  9639. include the original English version of this License and the
  9640. original versions of those notices and disclaimers. In case of a
  9641. disagreement between the translation and the original version of
  9642. this License or a notice or disclaimer, the original version will
  9643. prevail.
  9644. If a section in the Document is Entitled "Acknowledgements",
  9645. "Dedications", or "History", the requirement (section 4) to
  9646. Preserve its Title (section 1) will typically require changing the
  9647. actual title.
  9648. 9. TERMINATION
  9649. You may not copy, modify, sublicense, or distribute the Document
  9650. except as expressly provided under this License. Any attempt
  9651. otherwise to copy, modify, sublicense, or distribute it is void,
  9652. and will automatically terminate your rights under this License.
  9653. However, if you cease all violation of this License, then your
  9654. license from a particular copyright holder is reinstated (a)
  9655. provisionally, unless and until the copyright holder explicitly and
  9656. finally terminates your license, and (b) permanently, if the
  9657. copyright holder fails to notify you of the violation by some
  9658. reasonable means prior to 60 days after the cessation.
  9659. Moreover, your license from a particular copyright holder is
  9660. reinstated permanently if the copyright holder notifies you of the
  9661. violation by some reasonable means, this is the first time you have
  9662. received notice of violation of this License (for any work) from
  9663. that copyright holder, and you cure the violation prior to 30 days
  9664. after your receipt of the notice.
  9665. Termination of your rights under this section does not terminate
  9666. the licenses of parties who have received copies or rights from you
  9667. under this License. If your rights have been terminated and not
  9668. permanently reinstated, receipt of a copy of some or all of the
  9669. same material does not give you any rights to use it.
  9670. 10. FUTURE REVISIONS OF THIS LICENSE
  9671. The Free Software Foundation may publish new, revised versions of
  9672. the GNU Free Documentation License from time to time. Such new
  9673. versions will be similar in spirit to the present version, but may
  9674. differ in detail to address new problems or concerns. See
  9675. <http://www.gnu.org/copyleft/>.
  9676. Each version of the License is given a distinguishing version
  9677. number. If the Document specifies that a particular numbered
  9678. version of this License "or any later version" applies to it, you
  9679. have the option of following the terms and conditions either of
  9680. that specified version or of any later version that has been
  9681. published (not as a draft) by the Free Software Foundation. If the
  9682. Document does not specify a version number of this License, you may
  9683. choose any version ever published (not as a draft) by the Free
  9684. Software Foundation. If the Document specifies that a proxy can
  9685. decide which future versions of this License can be used, that
  9686. proxy's public statement of acceptance of a version permanently
  9687. authorizes you to choose that version for the Document.
  9688. 11. RELICENSING
  9689. "Massive Multiauthor Collaboration Site" (or "MMC Site") means any
  9690. World Wide Web server that publishes copyrightable works and also
  9691. provides prominent facilities for anybody to edit those works. A
  9692. public wiki that anybody can edit is an example of such a server.
  9693. A "Massive Multiauthor Collaboration" (or "MMC") contained in the
  9694. site means any set of copyrightable works thus published on the MMC
  9695. site.
  9696. "CC-BY-SA" means the Creative Commons Attribution-Share Alike 3.0
  9697. license published by Creative Commons Corporation, a not-for-profit
  9698. corporation with a principal place of business in San Francisco,
  9699. California, as well as future copyleft versions of that license
  9700. published by that same organization.
  9701. "Incorporate" means to publish or republish a Document, in whole or
  9702. in part, as part of another Document.
  9703. An MMC is "eligible for relicensing" if it is licensed under this
  9704. License, and if all works that were first published under this
  9705. License somewhere other than this MMC, and subsequently
  9706. incorporated in whole or in part into the MMC, (1) had no cover
  9707. texts or invariant sections, and (2) were thus incorporated prior
  9708. to November 1, 2008.
  9709. The operator of an MMC Site may republish an MMC contained in the
  9710. site under CC-BY-SA on the same site at any time before August 1,
  9711. 2009, provided the MMC is eligible for relicensing.
  9712. ADDENDUM: How to use this License for your documents
  9713. ====================================================
  9714. To use this License in a document you have written, include a copy of
  9715. the License in the document and put the following copyright and license
  9716. notices just after the title page:
  9717. Copyright (C) YEAR YOUR NAME.
  9718. Permission is granted to copy, distribute and/or modify this document
  9719. under the terms of the GNU Free Documentation License, Version 1.3
  9720. or any later version published by the Free Software Foundation;
  9721. with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
  9722. Texts. A copy of the license is included in the section entitled ``GNU
  9723. Free Documentation License''.
  9724. If you have Invariant Sections, Front-Cover Texts and Back-Cover
  9725. Texts, replace the "with...Texts." line with this:
  9726. with the Invariant Sections being LIST THEIR TITLES, with
  9727. the Front-Cover Texts being LIST, and with the Back-Cover Texts
  9728. being LIST.
  9729. If you have Invariant Sections without Cover Texts, or some other
  9730. combination of the three, merge those two alternatives to suit the
  9731. situation.
  9732. If your document contains nontrivial examples of program code, we
  9733. recommend releasing these examples in parallel under your choice of free
  9734. software license, such as the GNU General Public License, to permit
  9735. their use in free software.
  9736. 
  9737. File: bfd.info, Node: BFD Index, Prev: GNU Free Documentation License, Up: Top
  9738. BFD Index
  9739. *********
  9740. �[index�]
  9741. * Menu:
  9742. * _bfd_final_link_relocate: Relocating the section contents.
  9743. (line 22)
  9744. * _bfd_generic_link_add_archive_symbols: Adding symbols from an archive.
  9745. (line 15)
  9746. * _bfd_generic_link_add_one_symbol: Adding symbols from an object file.
  9747. (line 19)
  9748. * _bfd_generic_link_check_relocs: Writing the symbol table.
  9749. (line 116)
  9750. * _bfd_generic_make_empty_symbol: symbol handling functions.
  9751. (line 96)
  9752. * _bfd_generic_verify_endian_match: Writing the symbol table.
  9753. (line 144)
  9754. * _bfd_link_add_symbols in target vector: Adding Symbols to the Hash Table.
  9755. (line 6)
  9756. * _bfd_link_final_link in target vector: Performing the Final Link.
  9757. (line 6)
  9758. * _bfd_link_hash_table_create in target vector: Creating a Linker Hash Table.
  9759. (line 6)
  9760. * _bfd_relocate_contents: Relocating the section contents.
  9761. (line 22)
  9762. * aout_SIZE_machine_type: aout. (line 145)
  9763. * aout_SIZE_mkobject: aout. (line 137)
  9764. * aout_SIZE_new_section_hook: aout. (line 175)
  9765. * aout_SIZE_set_arch_mach: aout. (line 162)
  9766. * aout_SIZE_some_aout_object_p: aout. (line 123)
  9767. * aout_SIZE_swap_exec_header_in: aout. (line 99)
  9768. * aout_SIZE_swap_exec_header_out: aout. (line 111)
  9769. * arelent_chain: typedef arelent. (line 340)
  9770. * BFD: Overview. (line 6)
  9771. * BFD canonical format: Canonical format. (line 11)
  9772. * bfd_alloc: Opening and Closing.
  9773. (line 238)
  9774. * bfd_alloc2: Opening and Closing.
  9775. (line 247)
  9776. * bfd_alt_mach_code: Miscellaneous. (line 286)
  9777. * bfd_arch_bits_per_address: Architectures. (line 630)
  9778. * bfd_arch_bits_per_byte: Architectures. (line 622)
  9779. * bfd_arch_default_fill: Architectures. (line 711)
  9780. * bfd_arch_get_compatible: Architectures. (line 565)
  9781. * bfd_arch_list: Architectures. (line 556)
  9782. * bfd_arch_mach_octets_per_byte: Architectures. (line 699)
  9783. * BFD_ARELOC_BFIN_ADD: howto manager. (line 1090)
  9784. * BFD_ARELOC_BFIN_ADDR: howto manager. (line 1124)
  9785. * BFD_ARELOC_BFIN_AND: howto manager. (line 1104)
  9786. * BFD_ARELOC_BFIN_COMP: howto manager. (line 1118)
  9787. * BFD_ARELOC_BFIN_CONST: howto manager. (line 1088)
  9788. * BFD_ARELOC_BFIN_DIV: howto manager. (line 1096)
  9789. * BFD_ARELOC_BFIN_HWPAGE: howto manager. (line 1122)
  9790. * BFD_ARELOC_BFIN_LAND: howto manager. (line 1110)
  9791. * BFD_ARELOC_BFIN_LEN: howto manager. (line 1114)
  9792. * BFD_ARELOC_BFIN_LOR: howto manager. (line 1112)
  9793. * BFD_ARELOC_BFIN_LSHIFT: howto manager. (line 1100)
  9794. * BFD_ARELOC_BFIN_MOD: howto manager. (line 1098)
  9795. * BFD_ARELOC_BFIN_MULT: howto manager. (line 1094)
  9796. * BFD_ARELOC_BFIN_NEG: howto manager. (line 1116)
  9797. * BFD_ARELOC_BFIN_OR: howto manager. (line 1106)
  9798. * BFD_ARELOC_BFIN_PAGE: howto manager. (line 1120)
  9799. * BFD_ARELOC_BFIN_PUSH: howto manager. (line 1086)
  9800. * BFD_ARELOC_BFIN_RSHIFT: howto manager. (line 1102)
  9801. * BFD_ARELOC_BFIN_SUB: howto manager. (line 1092)
  9802. * BFD_ARELOC_BFIN_XOR: howto manager. (line 1108)
  9803. * bfd_cache_close: File Caching. (line 25)
  9804. * bfd_cache_close_all: File Caching. (line 38)
  9805. * bfd_cache_init: File Caching. (line 17)
  9806. * bfd_calc_gnu_debuglink_crc32: Opening and Closing.
  9807. (line 274)
  9808. * bfd_canonicalize_reloc: Miscellaneous. (line 18)
  9809. * bfd_canonicalize_symtab: symbol handling functions.
  9810. (line 52)
  9811. * bfd_check_compression_header: Miscellaneous. (line 358)
  9812. * bfd_check_format: Formats. (line 20)
  9813. * bfd_check_format_matches: Formats. (line 51)
  9814. * bfd_check_overflow: typedef arelent. (line 353)
  9815. * bfd_close: Opening and Closing.
  9816. (line 160)
  9817. * bfd_close_all_done: Opening and Closing.
  9818. (line 178)
  9819. * bfd_coff_backend_data: coff. (line 307)
  9820. * bfd_convert_section_contents: Miscellaneous. (line 394)
  9821. * bfd_convert_section_size: Miscellaneous. (line 384)
  9822. * bfd_copy_private_bfd_data: Miscellaneous. (line 157)
  9823. * bfd_copy_private_header_data: Miscellaneous. (line 140)
  9824. * bfd_copy_private_section_data: section prototypes. (line 287)
  9825. * bfd_copy_private_symbol_data: symbol handling functions.
  9826. (line 145)
  9827. * bfd_core_file_failing_command: Core Files. (line 11)
  9828. * bfd_core_file_failing_signal: Core Files. (line 20)
  9829. * bfd_core_file_pid: Core Files. (line 29)
  9830. * bfd_create: Opening and Closing.
  9831. (line 197)
  9832. * bfd_create_gnu_debuglink_section: Opening and Closing.
  9833. (line 391)
  9834. * bfd_decode_symclass: symbol handling functions.
  9835. (line 116)
  9836. * bfd_default_arch_struct: Architectures. (line 577)
  9837. * bfd_default_compatible: Architectures. (line 639)
  9838. * bfd_default_reloc_type_lookup: howto manager. (line 3226)
  9839. * bfd_default_scan: Architectures. (line 648)
  9840. * bfd_default_set_arch_mach: Architectures. (line 595)
  9841. * bfd_demangle: Miscellaneous. (line 337)
  9842. * bfd_emul_get_commonpagesize: Miscellaneous. (line 317)
  9843. * bfd_emul_get_maxpagesize: Miscellaneous. (line 297)
  9844. * bfd_emul_set_commonpagesize: Miscellaneous. (line 328)
  9845. * bfd_emul_set_maxpagesize: Miscellaneous. (line 308)
  9846. * bfd_errmsg: Error reporting. (line 67)
  9847. * bfd_fdopenr: Opening and Closing.
  9848. (line 56)
  9849. * bfd_fill_in_gnu_debuglink_section: Opening and Closing.
  9850. (line 405)
  9851. * bfd_find_target: bfd_target. (line 478)
  9852. * bfd_find_version_for_sym: Writing the symbol table.
  9853. (line 83)
  9854. * bfd_flavour_name: bfd_target. (line 541)
  9855. * bfd_follow_build_id_debuglink: Opening and Closing.
  9856. (line 463)
  9857. * bfd_follow_gnu_debugaltlink: Opening and Closing.
  9858. (line 371)
  9859. * bfd_follow_gnu_debuglink: Opening and Closing.
  9860. (line 350)
  9861. * bfd_fopen: Opening and Closing.
  9862. (line 11)
  9863. * bfd_format_string: Formats. (line 78)
  9864. * bfd_generic_define_common_symbol: Writing the symbol table.
  9865. (line 69)
  9866. * bfd_generic_discard_group: section prototypes. (line 312)
  9867. * bfd_generic_gc_sections: howto manager. (line 3257)
  9868. * bfd_generic_get_relocated_section_contents: howto manager. (line 3287)
  9869. * bfd_generic_is_group_section: section prototypes. (line 304)
  9870. * bfd_generic_lookup_section_flags: howto manager. (line 3267)
  9871. * bfd_generic_merge_sections: howto manager. (line 3277)
  9872. * bfd_generic_relax_section: howto manager. (line 3244)
  9873. * bfd_get_alt_debug_link_info: Opening and Closing.
  9874. (line 299)
  9875. * bfd_get_arch: Architectures. (line 606)
  9876. * bfd_get_arch_info: Architectures. (line 658)
  9877. * bfd_get_arch_size: Miscellaneous. (line 61)
  9878. * bfd_get_compression_header_size: Miscellaneous. (line 373)
  9879. * bfd_get_debug_link_info: Opening and Closing.
  9880. (line 288)
  9881. * bfd_get_error: Error reporting. (line 48)
  9882. * bfd_get_gp_size: Miscellaneous. (line 104)
  9883. * bfd_get_linker_section: section prototypes. (line 37)
  9884. * bfd_get_mach: Architectures. (line 614)
  9885. * bfd_get_mtime: Miscellaneous. (line 446)
  9886. * bfd_get_next_mapent: Archives. (line 57)
  9887. * bfd_get_next_section_by_name: section prototypes. (line 25)
  9888. * bfd_get_next_section_id: section prototypes. (line 154)
  9889. * bfd_get_reloc_code_name: howto manager. (line 3235)
  9890. * bfd_get_reloc_size: typedef arelent. (line 331)
  9891. * bfd_get_reloc_upper_bound: Miscellaneous. (line 8)
  9892. * bfd_get_section_by_name: section prototypes. (line 16)
  9893. * bfd_get_section_by_name_if: section prototypes. (line 46)
  9894. * bfd_get_section_contents: section prototypes. (line 260)
  9895. * bfd_get_sign_extend_vma: Miscellaneous. (line 76)
  9896. * bfd_get_size: Miscellaneous. (line 455)
  9897. * bfd_get_size <1>: Internal. (line 24)
  9898. * bfd_get_symtab_upper_bound: symbol handling functions.
  9899. (line 5)
  9900. * bfd_get_target_info: bfd_target. (line 494)
  9901. * bfd_get_unique_section_name: section prototypes. (line 65)
  9902. * bfd_hash_allocate: Creating and Freeing a Hash Table.
  9903. (line 17)
  9904. * bfd_hash_lookup: Looking Up or Entering a String.
  9905. (line 6)
  9906. * bfd_hash_newfunc: Creating and Freeing a Hash Table.
  9907. (line 12)
  9908. * bfd_hash_set_default_size: Creating and Freeing a Hash Table.
  9909. (line 25)
  9910. * bfd_hash_table_free: Creating and Freeing a Hash Table.
  9911. (line 21)
  9912. * bfd_hash_table_init: Creating and Freeing a Hash Table.
  9913. (line 6)
  9914. * bfd_hash_table_init_n: Creating and Freeing a Hash Table.
  9915. (line 6)
  9916. * bfd_hash_traverse: Traversing a Hash Table.
  9917. (line 6)
  9918. * bfd_hide_sym_by_version: Writing the symbol table.
  9919. (line 95)
  9920. * bfd_h_put_size: Internal. (line 97)
  9921. * bfd_init: Initialization. (line 10)
  9922. * bfd_install_relocation: typedef arelent. (line 394)
  9923. * bfd_is_local_label: symbol handling functions.
  9924. (line 17)
  9925. * bfd_is_local_label_name: symbol handling functions.
  9926. (line 26)
  9927. * bfd_is_target_special_symbol: symbol handling functions.
  9928. (line 39)
  9929. * bfd_is_undefined_symclass: symbol handling functions.
  9930. (line 125)
  9931. * bfd_iterate_over_targets: bfd_target. (line 529)
  9932. * bfd_link_check_relocs: Writing the symbol table.
  9933. (line 105)
  9934. * bfd_link_split_section: Writing the symbol table.
  9935. (line 43)
  9936. * bfd_log2: Internal. (line 166)
  9937. * bfd_lookup_arch: Architectures. (line 666)
  9938. * bfd_make_debug_symbol: symbol handling functions.
  9939. (line 106)
  9940. * bfd_make_empty_symbol: symbol handling functions.
  9941. (line 81)
  9942. * bfd_make_readable: Opening and Closing.
  9943. (line 224)
  9944. * bfd_make_section: section prototypes. (line 143)
  9945. * bfd_make_section_anyway: section prototypes. (line 115)
  9946. * bfd_make_section_anyway_with_flags: section prototypes. (line 97)
  9947. * bfd_make_section_old_way: section prototypes. (line 77)
  9948. * bfd_make_section_with_flags: section prototypes. (line 131)
  9949. * bfd_make_writable: Opening and Closing.
  9950. (line 210)
  9951. * bfd_malloc_and_get_section: section prototypes. (line 277)
  9952. * bfd_map_over_sections: section prototypes. (line 186)
  9953. * bfd_merge_private_bfd_data: Writing the symbol table.
  9954. (line 127)
  9955. * bfd_mmap: Miscellaneous. (line 483)
  9956. * bfd_octets_per_byte: Architectures. (line 689)
  9957. * bfd_openr: Opening and Closing.
  9958. (line 37)
  9959. * bfd_openr_iovec: Opening and Closing.
  9960. (line 94)
  9961. * bfd_openr_next_archived_file: Archives. (line 83)
  9962. * bfd_openstreamr: Opening and Closing.
  9963. (line 82)
  9964. * bfd_openw: Opening and Closing.
  9965. (line 145)
  9966. * bfd_open_file: File Caching. (line 51)
  9967. * bfd_perform_relocation: typedef arelent. (line 369)
  9968. * bfd_perror: Error reporting. (line 76)
  9969. * bfd_printable_arch_mach: Architectures. (line 677)
  9970. * bfd_printable_name: Architectures. (line 537)
  9971. * bfd_print_symbol_vandf: symbol handling functions.
  9972. (line 73)
  9973. * bfd_put_size: Internal. (line 21)
  9974. * BFD_RELOC_12_PCREL: howto manager. (line 37)
  9975. * BFD_RELOC_14: howto manager. (line 30)
  9976. * BFD_RELOC_16: howto manager. (line 29)
  9977. * BFD_RELOC_16C_ABS20: howto manager. (line 2214)
  9978. * BFD_RELOC_16C_ABS20_C: howto manager. (line 2215)
  9979. * BFD_RELOC_16C_ABS24: howto manager. (line 2216)
  9980. * BFD_RELOC_16C_ABS24_C: howto manager. (line 2217)
  9981. * BFD_RELOC_16C_DISP04: howto manager. (line 2194)
  9982. * BFD_RELOC_16C_DISP04_C: howto manager. (line 2195)
  9983. * BFD_RELOC_16C_DISP08: howto manager. (line 2196)
  9984. * BFD_RELOC_16C_DISP08_C: howto manager. (line 2197)
  9985. * BFD_RELOC_16C_DISP16: howto manager. (line 2198)
  9986. * BFD_RELOC_16C_DISP16_C: howto manager. (line 2199)
  9987. * BFD_RELOC_16C_DISP24: howto manager. (line 2200)
  9988. * BFD_RELOC_16C_DISP24a: howto manager. (line 2202)
  9989. * BFD_RELOC_16C_DISP24a_C: howto manager. (line 2203)
  9990. * BFD_RELOC_16C_DISP24_C: howto manager. (line 2201)
  9991. * BFD_RELOC_16C_IMM04: howto manager. (line 2218)
  9992. * BFD_RELOC_16C_IMM04_C: howto manager. (line 2219)
  9993. * BFD_RELOC_16C_IMM16: howto manager. (line 2220)
  9994. * BFD_RELOC_16C_IMM16_C: howto manager. (line 2221)
  9995. * BFD_RELOC_16C_IMM20: howto manager. (line 2222)
  9996. * BFD_RELOC_16C_IMM20_C: howto manager. (line 2223)
  9997. * BFD_RELOC_16C_IMM24: howto manager. (line 2224)
  9998. * BFD_RELOC_16C_IMM24_C: howto manager. (line 2225)
  9999. * BFD_RELOC_16C_IMM32: howto manager. (line 2226)
  10000. * BFD_RELOC_16C_IMM32_C: howto manager. (line 2227)
  10001. * BFD_RELOC_16C_NUM08: howto manager. (line 2188)
  10002. * BFD_RELOC_16C_NUM08_C: howto manager. (line 2189)
  10003. * BFD_RELOC_16C_NUM16: howto manager. (line 2190)
  10004. * BFD_RELOC_16C_NUM16_C: howto manager. (line 2191)
  10005. * BFD_RELOC_16C_NUM32: howto manager. (line 2192)
  10006. * BFD_RELOC_16C_NUM32_C: howto manager. (line 2193)
  10007. * BFD_RELOC_16C_REG04: howto manager. (line 2204)
  10008. * BFD_RELOC_16C_REG04a: howto manager. (line 2206)
  10009. * BFD_RELOC_16C_REG04a_C: howto manager. (line 2207)
  10010. * BFD_RELOC_16C_REG04_C: howto manager. (line 2205)
  10011. * BFD_RELOC_16C_REG14: howto manager. (line 2208)
  10012. * BFD_RELOC_16C_REG14_C: howto manager. (line 2209)
  10013. * BFD_RELOC_16C_REG16: howto manager. (line 2210)
  10014. * BFD_RELOC_16C_REG16_C: howto manager. (line 2211)
  10015. * BFD_RELOC_16C_REG20: howto manager. (line 2212)
  10016. * BFD_RELOC_16C_REG20_C: howto manager. (line 2213)
  10017. * BFD_RELOC_16_BASEREL: howto manager. (line 92)
  10018. * BFD_RELOC_16_GOTOFF: howto manager. (line 51)
  10019. * BFD_RELOC_16_GOT_PCREL: howto manager. (line 48)
  10020. * BFD_RELOC_16_PCREL: howto manager. (line 36)
  10021. * BFD_RELOC_16_PCREL_S2: howto manager. (line 102)
  10022. * BFD_RELOC_16_PLTOFF: howto manager. (line 63)
  10023. * BFD_RELOC_16_PLT_PCREL: howto manager. (line 59)
  10024. * BFD_RELOC_23_PCREL_S2: howto manager. (line 103)
  10025. * BFD_RELOC_24: howto manager. (line 28)
  10026. * BFD_RELOC_24_PCREL: howto manager. (line 35)
  10027. * BFD_RELOC_24_PLT_PCREL: howto manager. (line 58)
  10028. * BFD_RELOC_26: howto manager. (line 27)
  10029. * BFD_RELOC_32: howto manager. (line 26)
  10030. * BFD_RELOC_32_BASEREL: howto manager. (line 91)
  10031. * BFD_RELOC_32_GOTOFF: howto manager. (line 50)
  10032. * BFD_RELOC_32_GOT_PCREL: howto manager. (line 47)
  10033. * BFD_RELOC_32_PCREL: howto manager. (line 34)
  10034. * BFD_RELOC_32_PCREL_S2: howto manager. (line 101)
  10035. * BFD_RELOC_32_PLTOFF: howto manager. (line 62)
  10036. * BFD_RELOC_32_PLT_PCREL: howto manager. (line 57)
  10037. * BFD_RELOC_32_SECREL: howto manager. (line 45)
  10038. * BFD_RELOC_386_COPY: howto manager. (line 522)
  10039. * BFD_RELOC_386_GLOB_DAT: howto manager. (line 523)
  10040. * BFD_RELOC_386_GOT32: howto manager. (line 520)
  10041. * BFD_RELOC_386_GOT32X: howto manager. (line 544)
  10042. * BFD_RELOC_386_GOTOFF: howto manager. (line 526)
  10043. * BFD_RELOC_386_GOTPC: howto manager. (line 527)
  10044. * BFD_RELOC_386_IRELATIVE: howto manager. (line 543)
  10045. * BFD_RELOC_386_JUMP_SLOT: howto manager. (line 524)
  10046. * BFD_RELOC_386_PLT32: howto manager. (line 521)
  10047. * BFD_RELOC_386_RELATIVE: howto manager. (line 525)
  10048. * BFD_RELOC_386_TLS_DESC: howto manager. (line 542)
  10049. * BFD_RELOC_386_TLS_DESC_CALL: howto manager. (line 541)
  10050. * BFD_RELOC_386_TLS_DTPMOD32: howto manager. (line 537)
  10051. * BFD_RELOC_386_TLS_DTPOFF32: howto manager. (line 538)
  10052. * BFD_RELOC_386_TLS_GD: howto manager. (line 532)
  10053. * BFD_RELOC_386_TLS_GOTDESC: howto manager. (line 540)
  10054. * BFD_RELOC_386_TLS_GOTIE: howto manager. (line 530)
  10055. * BFD_RELOC_386_TLS_IE: howto manager. (line 529)
  10056. * BFD_RELOC_386_TLS_IE_32: howto manager. (line 535)
  10057. * BFD_RELOC_386_TLS_LDM: howto manager. (line 533)
  10058. * BFD_RELOC_386_TLS_LDO_32: howto manager. (line 534)
  10059. * BFD_RELOC_386_TLS_LE: howto manager. (line 531)
  10060. * BFD_RELOC_386_TLS_LE_32: howto manager. (line 536)
  10061. * BFD_RELOC_386_TLS_TPOFF: howto manager. (line 528)
  10062. * BFD_RELOC_386_TLS_TPOFF32: howto manager. (line 539)
  10063. * BFD_RELOC_390_12: howto manager. (line 1878)
  10064. * BFD_RELOC_390_20: howto manager. (line 1959)
  10065. * BFD_RELOC_390_COPY: howto manager. (line 1884)
  10066. * BFD_RELOC_390_GLOB_DAT: howto manager. (line 1886)
  10067. * BFD_RELOC_390_GOT12: howto manager. (line 1880)
  10068. * BFD_RELOC_390_GOT16: howto manager. (line 1894)
  10069. * BFD_RELOC_390_GOT20: howto manager. (line 1960)
  10070. * BFD_RELOC_390_GOT64: howto manager. (line 1914)
  10071. * BFD_RELOC_390_GOTENT: howto manager. (line 1918)
  10072. * BFD_RELOC_390_GOTOFF64: howto manager. (line 1920)
  10073. * BFD_RELOC_390_GOTPC: howto manager. (line 1892)
  10074. * BFD_RELOC_390_GOTPCDBL: howto manager. (line 1912)
  10075. * BFD_RELOC_390_GOTPLT12: howto manager. (line 1922)
  10076. * BFD_RELOC_390_GOTPLT16: howto manager. (line 1924)
  10077. * BFD_RELOC_390_GOTPLT20: howto manager. (line 1961)
  10078. * BFD_RELOC_390_GOTPLT32: howto manager. (line 1926)
  10079. * BFD_RELOC_390_GOTPLT64: howto manager. (line 1928)
  10080. * BFD_RELOC_390_GOTPLTENT: howto manager. (line 1930)
  10081. * BFD_RELOC_390_IRELATIVE: howto manager. (line 1964)
  10082. * BFD_RELOC_390_JMP_SLOT: howto manager. (line 1888)
  10083. * BFD_RELOC_390_PC12DBL: howto manager. (line 1896)
  10084. * BFD_RELOC_390_PC16DBL: howto manager. (line 1900)
  10085. * BFD_RELOC_390_PC24DBL: howto manager. (line 1904)
  10086. * BFD_RELOC_390_PC32DBL: howto manager. (line 1908)
  10087. * BFD_RELOC_390_PLT12DBL: howto manager. (line 1898)
  10088. * BFD_RELOC_390_PLT16DBL: howto manager. (line 1902)
  10089. * BFD_RELOC_390_PLT24DBL: howto manager. (line 1906)
  10090. * BFD_RELOC_390_PLT32: howto manager. (line 1882)
  10091. * BFD_RELOC_390_PLT32DBL: howto manager. (line 1910)
  10092. * BFD_RELOC_390_PLT64: howto manager. (line 1916)
  10093. * BFD_RELOC_390_PLTOFF16: howto manager. (line 1932)
  10094. * BFD_RELOC_390_PLTOFF32: howto manager. (line 1934)
  10095. * BFD_RELOC_390_PLTOFF64: howto manager. (line 1936)
  10096. * BFD_RELOC_390_RELATIVE: howto manager. (line 1890)
  10097. * BFD_RELOC_390_TLS_DTPMOD: howto manager. (line 1955)
  10098. * BFD_RELOC_390_TLS_DTPOFF: howto manager. (line 1956)
  10099. * BFD_RELOC_390_TLS_GD32: howto manager. (line 1941)
  10100. * BFD_RELOC_390_TLS_GD64: howto manager. (line 1942)
  10101. * BFD_RELOC_390_TLS_GDCALL: howto manager. (line 1939)
  10102. * BFD_RELOC_390_TLS_GOTIE12: howto manager. (line 1943)
  10103. * BFD_RELOC_390_TLS_GOTIE20: howto manager. (line 1962)
  10104. * BFD_RELOC_390_TLS_GOTIE32: howto manager. (line 1944)
  10105. * BFD_RELOC_390_TLS_GOTIE64: howto manager. (line 1945)
  10106. * BFD_RELOC_390_TLS_IE32: howto manager. (line 1948)
  10107. * BFD_RELOC_390_TLS_IE64: howto manager. (line 1949)
  10108. * BFD_RELOC_390_TLS_IEENT: howto manager. (line 1950)
  10109. * BFD_RELOC_390_TLS_LDCALL: howto manager. (line 1940)
  10110. * BFD_RELOC_390_TLS_LDM32: howto manager. (line 1946)
  10111. * BFD_RELOC_390_TLS_LDM64: howto manager. (line 1947)
  10112. * BFD_RELOC_390_TLS_LDO32: howto manager. (line 1953)
  10113. * BFD_RELOC_390_TLS_LDO64: howto manager. (line 1954)
  10114. * BFD_RELOC_390_TLS_LE32: howto manager. (line 1951)
  10115. * BFD_RELOC_390_TLS_LE64: howto manager. (line 1952)
  10116. * BFD_RELOC_390_TLS_LOAD: howto manager. (line 1938)
  10117. * BFD_RELOC_390_TLS_TPOFF: howto manager. (line 1957)
  10118. * BFD_RELOC_64: howto manager. (line 25)
  10119. * BFD_RELOC_64_PCREL: howto manager. (line 33)
  10120. * BFD_RELOC_64_PLTOFF: howto manager. (line 61)
  10121. * BFD_RELOC_64_PLT_PCREL: howto manager. (line 56)
  10122. * BFD_RELOC_68K_GLOB_DAT: howto manager. (line 72)
  10123. * BFD_RELOC_68K_JMP_SLOT: howto manager. (line 73)
  10124. * BFD_RELOC_68K_RELATIVE: howto manager. (line 74)
  10125. * BFD_RELOC_68K_TLS_GD16: howto manager. (line 76)
  10126. * BFD_RELOC_68K_TLS_GD32: howto manager. (line 75)
  10127. * BFD_RELOC_68K_TLS_GD8: howto manager. (line 77)
  10128. * BFD_RELOC_68K_TLS_IE16: howto manager. (line 85)
  10129. * BFD_RELOC_68K_TLS_IE32: howto manager. (line 84)
  10130. * BFD_RELOC_68K_TLS_IE8: howto manager. (line 86)
  10131. * BFD_RELOC_68K_TLS_LDM16: howto manager. (line 79)
  10132. * BFD_RELOC_68K_TLS_LDM32: howto manager. (line 78)
  10133. * BFD_RELOC_68K_TLS_LDM8: howto manager. (line 80)
  10134. * BFD_RELOC_68K_TLS_LDO16: howto manager. (line 82)
  10135. * BFD_RELOC_68K_TLS_LDO32: howto manager. (line 81)
  10136. * BFD_RELOC_68K_TLS_LDO8: howto manager. (line 83)
  10137. * BFD_RELOC_68K_TLS_LE16: howto manager. (line 88)
  10138. * BFD_RELOC_68K_TLS_LE32: howto manager. (line 87)
  10139. * BFD_RELOC_68K_TLS_LE8: howto manager. (line 89)
  10140. * BFD_RELOC_8: howto manager. (line 31)
  10141. * BFD_RELOC_860_COPY: howto manager. (line 2329)
  10142. * BFD_RELOC_860_GLOB_DAT: howto manager. (line 2330)
  10143. * BFD_RELOC_860_HAGOT: howto manager. (line 2355)
  10144. * BFD_RELOC_860_HAGOTOFF: howto manager. (line 2356)
  10145. * BFD_RELOC_860_HAPC: howto manager. (line 2357)
  10146. * BFD_RELOC_860_HIGH: howto manager. (line 2358)
  10147. * BFD_RELOC_860_HIGHADJ: howto manager. (line 2354)
  10148. * BFD_RELOC_860_HIGOT: howto manager. (line 2359)
  10149. * BFD_RELOC_860_HIGOTOFF: howto manager. (line 2360)
  10150. * BFD_RELOC_860_JUMP_SLOT: howto manager. (line 2331)
  10151. * BFD_RELOC_860_LOGOT0: howto manager. (line 2343)
  10152. * BFD_RELOC_860_LOGOT1: howto manager. (line 2345)
  10153. * BFD_RELOC_860_LOGOTOFF0: howto manager. (line 2347)
  10154. * BFD_RELOC_860_LOGOTOFF1: howto manager. (line 2349)
  10155. * BFD_RELOC_860_LOGOTOFF2: howto manager. (line 2351)
  10156. * BFD_RELOC_860_LOGOTOFF3: howto manager. (line 2352)
  10157. * BFD_RELOC_860_LOPC: howto manager. (line 2353)
  10158. * BFD_RELOC_860_LOW0: howto manager. (line 2336)
  10159. * BFD_RELOC_860_LOW1: howto manager. (line 2338)
  10160. * BFD_RELOC_860_LOW2: howto manager. (line 2340)
  10161. * BFD_RELOC_860_LOW3: howto manager. (line 2342)
  10162. * BFD_RELOC_860_PC16: howto manager. (line 2335)
  10163. * BFD_RELOC_860_PC26: howto manager. (line 2333)
  10164. * BFD_RELOC_860_PLT26: howto manager. (line 2334)
  10165. * BFD_RELOC_860_RELATIVE: howto manager. (line 2332)
  10166. * BFD_RELOC_860_SPGOT0: howto manager. (line 2344)
  10167. * BFD_RELOC_860_SPGOT1: howto manager. (line 2346)
  10168. * BFD_RELOC_860_SPGOTOFF0: howto manager. (line 2348)
  10169. * BFD_RELOC_860_SPGOTOFF1: howto manager. (line 2350)
  10170. * BFD_RELOC_860_SPLIT0: howto manager. (line 2337)
  10171. * BFD_RELOC_860_SPLIT1: howto manager. (line 2339)
  10172. * BFD_RELOC_860_SPLIT2: howto manager. (line 2341)
  10173. * BFD_RELOC_8_BASEREL: howto manager. (line 96)
  10174. * BFD_RELOC_8_FFnn: howto manager. (line 99)
  10175. * BFD_RELOC_8_GOTOFF: howto manager. (line 55)
  10176. * BFD_RELOC_8_GOT_PCREL: howto manager. (line 49)
  10177. * BFD_RELOC_8_PCREL: howto manager. (line 38)
  10178. * BFD_RELOC_8_PLTOFF: howto manager. (line 67)
  10179. * BFD_RELOC_8_PLT_PCREL: howto manager. (line 60)
  10180. * BFD_RELOC_AARCH64_16: howto manager. (line 2706)
  10181. * BFD_RELOC_AARCH64_16_PCREL: howto manager. (line 2712)
  10182. * BFD_RELOC_AARCH64_32: howto manager. (line 2705)
  10183. * BFD_RELOC_AARCH64_32_PCREL: howto manager. (line 2711)
  10184. * BFD_RELOC_AARCH64_64: howto manager. (line 2704)
  10185. * BFD_RELOC_AARCH64_64_PCREL: howto manager. (line 2710)
  10186. * BFD_RELOC_AARCH64_ADD_LO12: howto manager. (line 2762)
  10187. * BFD_RELOC_AARCH64_ADR_GOT_PAGE: howto manager. (line 2808)
  10188. * BFD_RELOC_AARCH64_ADR_HI21_NC_PCREL: howto manager. (line 2758)
  10189. * BFD_RELOC_AARCH64_ADR_HI21_PCREL: howto manager. (line 2755)
  10190. * BFD_RELOC_AARCH64_ADR_LO21_PCREL: howto manager. (line 2752)
  10191. * BFD_RELOC_AARCH64_BRANCH19: howto manager. (line 2774)
  10192. * BFD_RELOC_AARCH64_CALL26: howto manager. (line 2782)
  10193. * BFD_RELOC_AARCH64_COPY: howto manager. (line 2951)
  10194. * BFD_RELOC_AARCH64_GAS_INTERNAL_FIXUP: howto manager. (line 2975)
  10195. * BFD_RELOC_AARCH64_GLOB_DAT: howto manager. (line 2953)
  10196. * BFD_RELOC_AARCH64_GOT_LD_PREL19: howto manager. (line 2802)
  10197. * BFD_RELOC_AARCH64_IRELATIVE: howto manager. (line 2967)
  10198. * BFD_RELOC_AARCH64_JUMP26: howto manager. (line 2778)
  10199. * BFD_RELOC_AARCH64_JUMP_SLOT: howto manager. (line 2955)
  10200. * BFD_RELOC_AARCH64_LD32_GOTPAGE_LO14: howto manager. (line 2829)
  10201. * BFD_RELOC_AARCH64_LD32_GOT_LO12_NC: howto manager. (line 2816)
  10202. * BFD_RELOC_AARCH64_LD64_GOTOFF_LO15: howto manager. (line 2826)
  10203. * BFD_RELOC_AARCH64_LD64_GOTPAGE_LO15: howto manager. (line 2832)
  10204. * BFD_RELOC_AARCH64_LD64_GOT_LO12_NC: howto manager. (line 2812)
  10205. * BFD_RELOC_AARCH64_LDST128_LO12: howto manager. (line 2798)
  10206. * BFD_RELOC_AARCH64_LDST16_LO12: howto manager. (line 2786)
  10207. * BFD_RELOC_AARCH64_LDST32_LO12: howto manager. (line 2790)
  10208. * BFD_RELOC_AARCH64_LDST64_LO12: howto manager. (line 2794)
  10209. * BFD_RELOC_AARCH64_LDST8_LO12: howto manager. (line 2766)
  10210. * BFD_RELOC_AARCH64_LDST_LO12: howto manager. (line 2978)
  10211. * BFD_RELOC_AARCH64_LD_GOT_LO12_NC: howto manager. (line 2989)
  10212. * BFD_RELOC_AARCH64_LD_LO19_PCREL: howto manager. (line 2748)
  10213. * BFD_RELOC_AARCH64_MOVW_G0: howto manager. (line 2715)
  10214. * BFD_RELOC_AARCH64_MOVW_G0_NC: howto manager. (line 2718)
  10215. * BFD_RELOC_AARCH64_MOVW_G0_S: howto manager. (line 2736)
  10216. * BFD_RELOC_AARCH64_MOVW_G1: howto manager. (line 2721)
  10217. * BFD_RELOC_AARCH64_MOVW_G1_NC: howto manager. (line 2724)
  10218. * BFD_RELOC_AARCH64_MOVW_G1_S: howto manager. (line 2740)
  10219. * BFD_RELOC_AARCH64_MOVW_G2: howto manager. (line 2727)
  10220. * BFD_RELOC_AARCH64_MOVW_G2_NC: howto manager. (line 2730)
  10221. * BFD_RELOC_AARCH64_MOVW_G2_S: howto manager. (line 2744)
  10222. * BFD_RELOC_AARCH64_MOVW_G3: howto manager. (line 2733)
  10223. * BFD_RELOC_AARCH64_MOVW_GOTOFF_G0_NC: howto manager. (line 2820)
  10224. * BFD_RELOC_AARCH64_MOVW_GOTOFF_G1: howto manager. (line 2823)
  10225. * BFD_RELOC_AARCH64_NONE: howto manager. (line 2702)
  10226. * BFD_RELOC_AARCH64_NULL: howto manager. (line 2700)
  10227. * BFD_RELOC_AARCH64_RELATIVE: howto manager. (line 2957)
  10228. * BFD_RELOC_AARCH64_RELOC_END: howto manager. (line 2969)
  10229. * BFD_RELOC_AARCH64_RELOC_START: howto manager. (line 2695)
  10230. * BFD_RELOC_AARCH64_TLSDESC: howto manager. (line 2965)
  10231. * BFD_RELOC_AARCH64_TLSDESC_ADD: howto manager. (line 2947)
  10232. * BFD_RELOC_AARCH64_TLSDESC_ADD_LO12_NC: howto manager. (line 2939)
  10233. * BFD_RELOC_AARCH64_TLSDESC_ADR_PAGE21: howto manager. (line 2933)
  10234. * BFD_RELOC_AARCH64_TLSDESC_ADR_PREL21: howto manager. (line 2931)
  10235. * BFD_RELOC_AARCH64_TLSDESC_CALL: howto manager. (line 2949)
  10236. * BFD_RELOC_AARCH64_TLSDESC_LD32_LO12_NC: howto manager. (line 2937)
  10237. * BFD_RELOC_AARCH64_TLSDESC_LD64_LO12_NC: howto manager. (line 2935)
  10238. * BFD_RELOC_AARCH64_TLSDESC_LDR: howto manager. (line 2945)
  10239. * BFD_RELOC_AARCH64_TLSDESC_LD_LO12_NC: howto manager. (line 2995)
  10240. * BFD_RELOC_AARCH64_TLSDESC_LD_PREL19: howto manager. (line 2929)
  10241. * BFD_RELOC_AARCH64_TLSDESC_OFF_G0_NC: howto manager. (line 2943)
  10242. * BFD_RELOC_AARCH64_TLSDESC_OFF_G1: howto manager. (line 2941)
  10243. * BFD_RELOC_AARCH64_TLSGD_ADD_LO12_NC: howto manager. (line 2842)
  10244. * BFD_RELOC_AARCH64_TLSGD_ADR_PAGE21: howto manager. (line 2835)
  10245. * BFD_RELOC_AARCH64_TLSGD_ADR_PREL21: howto manager. (line 2840)
  10246. * BFD_RELOC_AARCH64_TLSGD_MOVW_G0_NC: howto manager. (line 2846)
  10247. * BFD_RELOC_AARCH64_TLSGD_MOVW_G1: howto manager. (line 2848)
  10248. * BFD_RELOC_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21: howto manager.
  10249. (line 2850)
  10250. * BFD_RELOC_AARCH64_TLSIE_LD32_GOTTPREL_LO12_NC: howto manager.
  10251. (line 2854)
  10252. * BFD_RELOC_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC: howto manager.
  10253. (line 2852)
  10254. * BFD_RELOC_AARCH64_TLSIE_LD_GOTTPREL_LO12_NC: howto manager.
  10255. (line 2992)
  10256. * BFD_RELOC_AARCH64_TLSIE_LD_GOTTPREL_PREL19: howto manager. (line 2856)
  10257. * BFD_RELOC_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC: howto manager.
  10258. (line 2858)
  10259. * BFD_RELOC_AARCH64_TLSIE_MOVW_GOTTPREL_G1: howto manager. (line 2860)
  10260. * BFD_RELOC_AARCH64_TLSLD_ADD_DTPREL_HI12: howto manager. (line 2862)
  10261. * BFD_RELOC_AARCH64_TLSLD_ADD_DTPREL_LO12: howto manager. (line 2864)
  10262. * BFD_RELOC_AARCH64_TLSLD_ADD_DTPREL_LO12_NC: howto manager. (line 2866)
  10263. * BFD_RELOC_AARCH64_TLSLD_ADD_LO12_NC: howto manager. (line 2869)
  10264. * BFD_RELOC_AARCH64_TLSLD_ADR_PAGE21: howto manager. (line 2873)
  10265. * BFD_RELOC_AARCH64_TLSLD_ADR_PREL21: howto manager. (line 2876)
  10266. * BFD_RELOC_AARCH64_TLSLD_LDST16_DTPREL_LO12: howto manager. (line 2879)
  10267. * BFD_RELOC_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC: howto manager.
  10268. (line 2882)
  10269. * BFD_RELOC_AARCH64_TLSLD_LDST32_DTPREL_LO12: howto manager. (line 2885)
  10270. * BFD_RELOC_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC: howto manager.
  10271. (line 2888)
  10272. * BFD_RELOC_AARCH64_TLSLD_LDST64_DTPREL_LO12: howto manager. (line 2891)
  10273. * BFD_RELOC_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC: howto manager.
  10274. (line 2894)
  10275. * BFD_RELOC_AARCH64_TLSLD_LDST8_DTPREL_LO12: howto manager. (line 2897)
  10276. * BFD_RELOC_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC: howto manager.
  10277. (line 2900)
  10278. * BFD_RELOC_AARCH64_TLSLD_LDST_DTPREL_LO12: howto manager. (line 2982)
  10279. * BFD_RELOC_AARCH64_TLSLD_LDST_DTPREL_LO12_NC: howto manager.
  10280. (line 2986)
  10281. * BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G0: howto manager. (line 2903)
  10282. * BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G0_NC: howto manager. (line 2905)
  10283. * BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G1: howto manager. (line 2907)
  10284. * BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G1_NC: howto manager. (line 2909)
  10285. * BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G2: howto manager. (line 2911)
  10286. * BFD_RELOC_AARCH64_TLSLE_ADD_TPREL_HI12: howto manager. (line 2923)
  10287. * BFD_RELOC_AARCH64_TLSLE_ADD_TPREL_LO12: howto manager. (line 2925)
  10288. * BFD_RELOC_AARCH64_TLSLE_ADD_TPREL_LO12_NC: howto manager. (line 2927)
  10289. * BFD_RELOC_AARCH64_TLSLE_MOVW_TPREL_G0: howto manager. (line 2919)
  10290. * BFD_RELOC_AARCH64_TLSLE_MOVW_TPREL_G0_NC: howto manager. (line 2921)
  10291. * BFD_RELOC_AARCH64_TLSLE_MOVW_TPREL_G1: howto manager. (line 2915)
  10292. * BFD_RELOC_AARCH64_TLSLE_MOVW_TPREL_G1_NC: howto manager. (line 2917)
  10293. * BFD_RELOC_AARCH64_TLSLE_MOVW_TPREL_G2: howto manager. (line 2913)
  10294. * BFD_RELOC_AARCH64_TLS_DTPMOD: howto manager. (line 2959)
  10295. * BFD_RELOC_AARCH64_TLS_DTPREL: howto manager. (line 2961)
  10296. * BFD_RELOC_AARCH64_TLS_TPREL: howto manager. (line 2963)
  10297. * BFD_RELOC_AARCH64_TSTBR14: howto manager. (line 2770)
  10298. * BFD_RELOC_AC_SECTOFF_S9: howto manager. (line 1009)
  10299. * BFD_RELOC_AC_SECTOFF_S9_1: howto manager. (line 1010)
  10300. * BFD_RELOC_AC_SECTOFF_S9_2: howto manager. (line 1011)
  10301. * BFD_RELOC_AC_SECTOFF_U8: howto manager. (line 1006)
  10302. * BFD_RELOC_AC_SECTOFF_U8_1: howto manager. (line 1007)
  10303. * BFD_RELOC_AC_SECTOFF_U8_2: howto manager. (line 1008)
  10304. * BFD_RELOC_ALPHA_BOH: howto manager. (line 292)
  10305. * BFD_RELOC_ALPHA_BRSGP: howto manager. (line 279)
  10306. * BFD_RELOC_ALPHA_BSR: howto manager. (line 286)
  10307. * BFD_RELOC_ALPHA_CODEADDR: howto manager. (line 272)
  10308. * BFD_RELOC_ALPHA_DTPMOD64: howto manager. (line 297)
  10309. * BFD_RELOC_ALPHA_DTPREL16: howto manager. (line 302)
  10310. * BFD_RELOC_ALPHA_DTPREL64: howto manager. (line 299)
  10311. * BFD_RELOC_ALPHA_DTPREL_HI16: howto manager. (line 300)
  10312. * BFD_RELOC_ALPHA_DTPREL_LO16: howto manager. (line 301)
  10313. * BFD_RELOC_ALPHA_ELF_LITERAL: howto manager. (line 240)
  10314. * BFD_RELOC_ALPHA_GOTDTPREL16: howto manager. (line 298)
  10315. * BFD_RELOC_ALPHA_GOTTPREL16: howto manager. (line 303)
  10316. * BFD_RELOC_ALPHA_GPDISP: howto manager. (line 235)
  10317. * BFD_RELOC_ALPHA_GPDISP_HI16: howto manager. (line 223)
  10318. * BFD_RELOC_ALPHA_GPDISP_LO16: howto manager. (line 230)
  10319. * BFD_RELOC_ALPHA_GPREL_HI16: howto manager. (line 275)
  10320. * BFD_RELOC_ALPHA_GPREL_LO16: howto manager. (line 276)
  10321. * BFD_RELOC_ALPHA_HINT: howto manager. (line 265)
  10322. * BFD_RELOC_ALPHA_LDA: howto manager. (line 289)
  10323. * BFD_RELOC_ALPHA_LINKAGE: howto manager. (line 269)
  10324. * BFD_RELOC_ALPHA_LITERAL: howto manager. (line 239)
  10325. * BFD_RELOC_ALPHA_LITUSE: howto manager. (line 241)
  10326. * BFD_RELOC_ALPHA_NOP: howto manager. (line 283)
  10327. * BFD_RELOC_ALPHA_TLSGD: howto manager. (line 295)
  10328. * BFD_RELOC_ALPHA_TLSLDM: howto manager. (line 296)
  10329. * BFD_RELOC_ALPHA_TPREL16: howto manager. (line 307)
  10330. * BFD_RELOC_ALPHA_TPREL64: howto manager. (line 304)
  10331. * BFD_RELOC_ALPHA_TPREL_HI16: howto manager. (line 305)
  10332. * BFD_RELOC_ALPHA_TPREL_LO16: howto manager. (line 306)
  10333. * BFD_RELOC_ARC_16: howto manager. (line 978)
  10334. * BFD_RELOC_ARC_24: howto manager. (line 979)
  10335. * BFD_RELOC_ARC_32: howto manager. (line 980)
  10336. * BFD_RELOC_ARC_32_ME: howto manager. (line 1000)
  10337. * BFD_RELOC_ARC_32_ME_S: howto manager. (line 1001)
  10338. * BFD_RELOC_ARC_32_PCREL: howto manager. (line 1018)
  10339. * BFD_RELOC_ARC_8: howto manager. (line 977)
  10340. * BFD_RELOC_ARC_COPY: howto manager. (line 1023)
  10341. * BFD_RELOC_ARC_GLOB_DAT: howto manager. (line 1024)
  10342. * BFD_RELOC_ARC_GOT32: howto manager. (line 1020)
  10343. * BFD_RELOC_ARC_GOTOFF: howto manager. (line 1027)
  10344. * BFD_RELOC_ARC_GOTPC: howto manager. (line 1028)
  10345. * BFD_RELOC_ARC_GOTPC32: howto manager. (line 1021)
  10346. * BFD_RELOC_ARC_JMP_SLOT: howto manager. (line 1025)
  10347. * BFD_RELOC_ARC_N16: howto manager. (line 982)
  10348. * BFD_RELOC_ARC_N24: howto manager. (line 983)
  10349. * BFD_RELOC_ARC_N32: howto manager. (line 984)
  10350. * BFD_RELOC_ARC_N32_ME: howto manager. (line 1002)
  10351. * BFD_RELOC_ARC_N8: howto manager. (line 981)
  10352. * BFD_RELOC_ARC_NONE: howto manager. (line 976)
  10353. * BFD_RELOC_ARC_NPS_CMEM16: howto manager. (line 1043)
  10354. * BFD_RELOC_ARC_PC32: howto manager. (line 1019)
  10355. * BFD_RELOC_ARC_PLT32: howto manager. (line 1022)
  10356. * BFD_RELOC_ARC_RELATIVE: howto manager. (line 1026)
  10357. * BFD_RELOC_ARC_S13_PCREL: howto manager. (line 998)
  10358. * BFD_RELOC_ARC_S21H_PCREL: howto manager. (line 987)
  10359. * BFD_RELOC_ARC_S21H_PCREL_PLT: howto manager. (line 1042)
  10360. * BFD_RELOC_ARC_S21W_PCREL: howto manager. (line 988)
  10361. * BFD_RELOC_ARC_S21W_PCREL_PLT: howto manager. (line 1029)
  10362. * BFD_RELOC_ARC_S25H_PCREL: howto manager. (line 989)
  10363. * BFD_RELOC_ARC_S25H_PCREL_PLT: howto manager. (line 1030)
  10364. * BFD_RELOC_ARC_S25W_PCREL: howto manager. (line 990)
  10365. * BFD_RELOC_ARC_S25W_PCREL_PLT: howto manager. (line 1041)
  10366. * BFD_RELOC_ARC_SDA: howto manager. (line 985)
  10367. * BFD_RELOC_ARC_SDA16_LD: howto manager. (line 995)
  10368. * BFD_RELOC_ARC_SDA16_LD1: howto manager. (line 996)
  10369. * BFD_RELOC_ARC_SDA16_LD2: howto manager. (line 997)
  10370. * BFD_RELOC_ARC_SDA16_ST2: howto manager. (line 1017)
  10371. * BFD_RELOC_ARC_SDA32: howto manager. (line 991)
  10372. * BFD_RELOC_ARC_SDA32_ME: howto manager. (line 1004)
  10373. * BFD_RELOC_ARC_SDA_12: howto manager. (line 1016)
  10374. * BFD_RELOC_ARC_SDA_LDST: howto manager. (line 992)
  10375. * BFD_RELOC_ARC_SDA_LDST1: howto manager. (line 993)
  10376. * BFD_RELOC_ARC_SDA_LDST2: howto manager. (line 994)
  10377. * BFD_RELOC_ARC_SECTOFF: howto manager. (line 986)
  10378. * BFD_RELOC_ARC_SECTOFF_1: howto manager. (line 1014)
  10379. * BFD_RELOC_ARC_SECTOFF_2: howto manager. (line 1015)
  10380. * BFD_RELOC_ARC_SECTOFF_ME: howto manager. (line 1003)
  10381. * BFD_RELOC_ARC_SECTOFF_ME_1: howto manager. (line 1012)
  10382. * BFD_RELOC_ARC_SECTOFF_ME_2: howto manager. (line 1013)
  10383. * BFD_RELOC_ARC_TLS_DTPMOD: howto manager. (line 1031)
  10384. * BFD_RELOC_ARC_TLS_DTPOFF: howto manager. (line 1037)
  10385. * BFD_RELOC_ARC_TLS_DTPOFF_S9: howto manager. (line 1038)
  10386. * BFD_RELOC_ARC_TLS_GD_CALL: howto manager. (line 1035)
  10387. * BFD_RELOC_ARC_TLS_GD_GOT: howto manager. (line 1033)
  10388. * BFD_RELOC_ARC_TLS_GD_LD: howto manager. (line 1034)
  10389. * BFD_RELOC_ARC_TLS_IE_GOT: howto manager. (line 1036)
  10390. * BFD_RELOC_ARC_TLS_LE_32: howto manager. (line 1040)
  10391. * BFD_RELOC_ARC_TLS_LE_S9: howto manager. (line 1039)
  10392. * BFD_RELOC_ARC_TLS_TPOFF: howto manager. (line 1032)
  10393. * BFD_RELOC_ARC_W: howto manager. (line 999)
  10394. * BFD_RELOC_ARC_W_ME: howto manager. (line 1005)
  10395. * BFD_RELOC_ARM_ADRL_IMMEDIATE: howto manager. (line 850)
  10396. * BFD_RELOC_ARM_ADR_IMM: howto manager. (line 864)
  10397. * BFD_RELOC_ARM_ALU_PC_G0: howto manager. (line 812)
  10398. * BFD_RELOC_ARM_ALU_PC_G0_NC: howto manager. (line 811)
  10399. * BFD_RELOC_ARM_ALU_PC_G1: howto manager. (line 814)
  10400. * BFD_RELOC_ARM_ALU_PC_G1_NC: howto manager. (line 813)
  10401. * BFD_RELOC_ARM_ALU_PC_G2: howto manager. (line 815)
  10402. * BFD_RELOC_ARM_ALU_SB_G0: howto manager. (line 826)
  10403. * BFD_RELOC_ARM_ALU_SB_G0_NC: howto manager. (line 825)
  10404. * BFD_RELOC_ARM_ALU_SB_G1: howto manager. (line 828)
  10405. * BFD_RELOC_ARM_ALU_SB_G1_NC: howto manager. (line 827)
  10406. * BFD_RELOC_ARM_ALU_SB_G2: howto manager. (line 829)
  10407. * BFD_RELOC_ARM_CP_OFF_IMM: howto manager. (line 860)
  10408. * BFD_RELOC_ARM_CP_OFF_IMM_S2: howto manager. (line 861)
  10409. * BFD_RELOC_ARM_GLOB_DAT: howto manager. (line 788)
  10410. * BFD_RELOC_ARM_GOT32: howto manager. (line 789)
  10411. * BFD_RELOC_ARM_GOTOFF: howto manager. (line 792)
  10412. * BFD_RELOC_ARM_GOTPC: howto manager. (line 793)
  10413. * BFD_RELOC_ARM_GOT_PREL: howto manager. (line 794)
  10414. * BFD_RELOC_ARM_HVC: howto manager. (line 857)
  10415. * BFD_RELOC_ARM_HWLITERAL: howto manager. (line 871)
  10416. * BFD_RELOC_ARM_IMMEDIATE: howto manager. (line 849)
  10417. * BFD_RELOC_ARM_IN_POOL: howto manager. (line 867)
  10418. * BFD_RELOC_ARM_IRELATIVE: howto manager. (line 842)
  10419. * BFD_RELOC_ARM_JUMP_SLOT: howto manager. (line 787)
  10420. * BFD_RELOC_ARM_LDC_PC_G0: howto manager. (line 822)
  10421. * BFD_RELOC_ARM_LDC_PC_G1: howto manager. (line 823)
  10422. * BFD_RELOC_ARM_LDC_PC_G2: howto manager. (line 824)
  10423. * BFD_RELOC_ARM_LDC_SB_G0: howto manager. (line 836)
  10424. * BFD_RELOC_ARM_LDC_SB_G1: howto manager. (line 837)
  10425. * BFD_RELOC_ARM_LDC_SB_G2: howto manager. (line 838)
  10426. * BFD_RELOC_ARM_LDRS_PC_G0: howto manager. (line 819)
  10427. * BFD_RELOC_ARM_LDRS_PC_G1: howto manager. (line 820)
  10428. * BFD_RELOC_ARM_LDRS_PC_G2: howto manager. (line 821)
  10429. * BFD_RELOC_ARM_LDRS_SB_G0: howto manager. (line 833)
  10430. * BFD_RELOC_ARM_LDRS_SB_G1: howto manager. (line 834)
  10431. * BFD_RELOC_ARM_LDRS_SB_G2: howto manager. (line 835)
  10432. * BFD_RELOC_ARM_LDR_IMM: howto manager. (line 865)
  10433. * BFD_RELOC_ARM_LDR_PC_G0: howto manager. (line 816)
  10434. * BFD_RELOC_ARM_LDR_PC_G1: howto manager. (line 817)
  10435. * BFD_RELOC_ARM_LDR_PC_G2: howto manager. (line 818)
  10436. * BFD_RELOC_ARM_LDR_SB_G0: howto manager. (line 830)
  10437. * BFD_RELOC_ARM_LDR_SB_G1: howto manager. (line 831)
  10438. * BFD_RELOC_ARM_LDR_SB_G2: howto manager. (line 832)
  10439. * BFD_RELOC_ARM_LITERAL: howto manager. (line 866)
  10440. * BFD_RELOC_ARM_MOVT: howto manager. (line 779)
  10441. * BFD_RELOC_ARM_MOVT_PCREL: howto manager. (line 781)
  10442. * BFD_RELOC_ARM_MOVW: howto manager. (line 778)
  10443. * BFD_RELOC_ARM_MOVW_PCREL: howto manager. (line 780)
  10444. * BFD_RELOC_ARM_MULTI: howto manager. (line 859)
  10445. * BFD_RELOC_ARM_OFFSET_IMM: howto manager. (line 759)
  10446. * BFD_RELOC_ARM_OFFSET_IMM8: howto manager. (line 868)
  10447. * BFD_RELOC_ARM_PCREL_BLX: howto manager. (line 735)
  10448. * BFD_RELOC_ARM_PCREL_BRANCH: howto manager. (line 732)
  10449. * BFD_RELOC_ARM_PCREL_CALL: howto manager. (line 743)
  10450. * BFD_RELOC_ARM_PCREL_JUMP: howto manager. (line 746)
  10451. * BFD_RELOC_ARM_PLT32: howto manager. (line 790)
  10452. * BFD_RELOC_ARM_PREL31: howto manager. (line 776)
  10453. * BFD_RELOC_ARM_RELATIVE: howto manager. (line 791)
  10454. * BFD_RELOC_ARM_ROSEGREL32: howto manager. (line 768)
  10455. * BFD_RELOC_ARM_SBREL32: howto manager. (line 770)
  10456. * BFD_RELOC_ARM_SHIFT_IMM: howto manager. (line 855)
  10457. * BFD_RELOC_ARM_SMC: howto manager. (line 856)
  10458. * BFD_RELOC_ARM_SWI: howto manager. (line 858)
  10459. * BFD_RELOC_ARM_T32_ADD_IMM: howto manager. (line 852)
  10460. * BFD_RELOC_ARM_T32_ADD_PC12: howto manager. (line 854)
  10461. * BFD_RELOC_ARM_T32_CP_OFF_IMM: howto manager. (line 862)
  10462. * BFD_RELOC_ARM_T32_CP_OFF_IMM_S2: howto manager. (line 863)
  10463. * BFD_RELOC_ARM_T32_IMM12: howto manager. (line 853)
  10464. * BFD_RELOC_ARM_T32_IMMEDIATE: howto manager. (line 851)
  10465. * BFD_RELOC_ARM_T32_OFFSET_IMM: howto manager. (line 870)
  10466. * BFD_RELOC_ARM_T32_OFFSET_U8: howto manager. (line 869)
  10467. * BFD_RELOC_ARM_TARGET1: howto manager. (line 765)
  10468. * BFD_RELOC_ARM_TARGET2: howto manager. (line 772)
  10469. * BFD_RELOC_ARM_THM_TLS_CALL: howto manager. (line 806)
  10470. * BFD_RELOC_ARM_THM_TLS_DESCSEQ: howto manager. (line 808)
  10471. * BFD_RELOC_ARM_THUMB_ADD: howto manager. (line 872)
  10472. * BFD_RELOC_ARM_THUMB_ALU_ABS_G0_NC: howto manager. (line 844)
  10473. * BFD_RELOC_ARM_THUMB_ALU_ABS_G1_NC: howto manager. (line 845)
  10474. * BFD_RELOC_ARM_THUMB_ALU_ABS_G2_NC: howto manager. (line 846)
  10475. * BFD_RELOC_ARM_THUMB_ALU_ABS_G3_NC: howto manager. (line 847)
  10476. * BFD_RELOC_ARM_THUMB_IMM: howto manager. (line 873)
  10477. * BFD_RELOC_ARM_THUMB_MOVT: howto manager. (line 783)
  10478. * BFD_RELOC_ARM_THUMB_MOVT_PCREL: howto manager. (line 785)
  10479. * BFD_RELOC_ARM_THUMB_MOVW: howto manager. (line 782)
  10480. * BFD_RELOC_ARM_THUMB_MOVW_PCREL: howto manager. (line 784)
  10481. * BFD_RELOC_ARM_THUMB_OFFSET: howto manager. (line 762)
  10482. * BFD_RELOC_ARM_THUMB_SHIFT: howto manager. (line 874)
  10483. * BFD_RELOC_ARM_TLS_CALL: howto manager. (line 805)
  10484. * BFD_RELOC_ARM_TLS_DESC: howto manager. (line 809)
  10485. * BFD_RELOC_ARM_TLS_DESCSEQ: howto manager. (line 807)
  10486. * BFD_RELOC_ARM_TLS_DTPMOD32: howto manager. (line 800)
  10487. * BFD_RELOC_ARM_TLS_DTPOFF32: howto manager. (line 799)
  10488. * BFD_RELOC_ARM_TLS_GD32: howto manager. (line 796)
  10489. * BFD_RELOC_ARM_TLS_GOTDESC: howto manager. (line 804)
  10490. * BFD_RELOC_ARM_TLS_IE32: howto manager. (line 802)
  10491. * BFD_RELOC_ARM_TLS_LDM32: howto manager. (line 798)
  10492. * BFD_RELOC_ARM_TLS_LDO32: howto manager. (line 797)
  10493. * BFD_RELOC_ARM_TLS_LE32: howto manager. (line 803)
  10494. * BFD_RELOC_ARM_TLS_TPOFF32: howto manager. (line 801)
  10495. * BFD_RELOC_ARM_V4BX: howto manager. (line 840)
  10496. * BFD_RELOC_AVR_13_PCREL: howto manager. (line 1663)
  10497. * BFD_RELOC_AVR_16_PM: howto manager. (line 1666)
  10498. * BFD_RELOC_AVR_6: howto manager. (line 1734)
  10499. * BFD_RELOC_AVR_6_ADIW: howto manager. (line 1737)
  10500. * BFD_RELOC_AVR_7_PCREL: howto manager. (line 1660)
  10501. * BFD_RELOC_AVR_8_HI: howto manager. (line 1743)
  10502. * BFD_RELOC_AVR_8_HLO: howto manager. (line 1746)
  10503. * BFD_RELOC_AVR_8_LO: howto manager. (line 1740)
  10504. * BFD_RELOC_AVR_CALL: howto manager. (line 1728)
  10505. * BFD_RELOC_AVR_DIFF16: howto manager. (line 1750)
  10506. * BFD_RELOC_AVR_DIFF32: howto manager. (line 1751)
  10507. * BFD_RELOC_AVR_DIFF8: howto manager. (line 1749)
  10508. * BFD_RELOC_AVR_HH8_LDI: howto manager. (line 1675)
  10509. * BFD_RELOC_AVR_HH8_LDI_NEG: howto manager. (line 1690)
  10510. * BFD_RELOC_AVR_HH8_LDI_PM: howto manager. (line 1713)
  10511. * BFD_RELOC_AVR_HH8_LDI_PM_NEG: howto manager. (line 1724)
  10512. * BFD_RELOC_AVR_HI8_LDI: howto manager. (line 1672)
  10513. * BFD_RELOC_AVR_HI8_LDI_GS: howto manager. (line 1708)
  10514. * BFD_RELOC_AVR_HI8_LDI_NEG: howto manager. (line 1686)
  10515. * BFD_RELOC_AVR_HI8_LDI_PM: howto manager. (line 1705)
  10516. * BFD_RELOC_AVR_HI8_LDI_PM_NEG: howto manager. (line 1720)
  10517. * BFD_RELOC_AVR_LDI: howto manager. (line 1731)
  10518. * BFD_RELOC_AVR_LDS_STS_16: howto manager. (line 1758)
  10519. * BFD_RELOC_AVR_LO8_LDI: howto manager. (line 1669)
  10520. * BFD_RELOC_AVR_LO8_LDI_GS: howto manager. (line 1700)
  10521. * BFD_RELOC_AVR_LO8_LDI_NEG: howto manager. (line 1682)
  10522. * BFD_RELOC_AVR_LO8_LDI_PM: howto manager. (line 1697)
  10523. * BFD_RELOC_AVR_LO8_LDI_PM_NEG: howto manager. (line 1717)
  10524. * BFD_RELOC_AVR_MS8_LDI: howto manager. (line 1679)
  10525. * BFD_RELOC_AVR_MS8_LDI_NEG: howto manager. (line 1694)
  10526. * BFD_RELOC_AVR_PORT5: howto manager. (line 1764)
  10527. * BFD_RELOC_AVR_PORT6: howto manager. (line 1761)
  10528. * BFD_RELOC_BFIN_10_PCREL: howto manager. (line 1055)
  10529. * BFD_RELOC_BFIN_11_PCREL: howto manager. (line 1057)
  10530. * BFD_RELOC_BFIN_12_PCREL_JUMP: howto manager. (line 1059)
  10531. * BFD_RELOC_BFIN_12_PCREL_JUMP_S: howto manager. (line 1061)
  10532. * BFD_RELOC_BFIN_16_HIGH: howto manager. (line 1047)
  10533. * BFD_RELOC_BFIN_16_IMM: howto manager. (line 1045)
  10534. * BFD_RELOC_BFIN_16_LOW: howto manager. (line 1053)
  10535. * BFD_RELOC_BFIN_24_PCREL_CALL_X: howto manager. (line 1063)
  10536. * BFD_RELOC_BFIN_24_PCREL_JUMP_L: howto manager. (line 1065)
  10537. * BFD_RELOC_BFIN_4_PCREL: howto manager. (line 1049)
  10538. * BFD_RELOC_BFIN_5_PCREL: howto manager. (line 1051)
  10539. * BFD_RELOC_BFIN_FUNCDESC: howto manager. (line 1070)
  10540. * BFD_RELOC_BFIN_FUNCDESC_GOT17M4: howto manager. (line 1071)
  10541. * BFD_RELOC_BFIN_FUNCDESC_GOTHI: howto manager. (line 1072)
  10542. * BFD_RELOC_BFIN_FUNCDESC_GOTLO: howto manager. (line 1073)
  10543. * BFD_RELOC_BFIN_FUNCDESC_GOTOFF17M4: howto manager. (line 1075)
  10544. * BFD_RELOC_BFIN_FUNCDESC_GOTOFFHI: howto manager. (line 1076)
  10545. * BFD_RELOC_BFIN_FUNCDESC_GOTOFFLO: howto manager. (line 1077)
  10546. * BFD_RELOC_BFIN_FUNCDESC_VALUE: howto manager. (line 1074)
  10547. * BFD_RELOC_BFIN_GOT: howto manager. (line 1082)
  10548. * BFD_RELOC_BFIN_GOT17M4: howto manager. (line 1067)
  10549. * BFD_RELOC_BFIN_GOTHI: howto manager. (line 1068)
  10550. * BFD_RELOC_BFIN_GOTLO: howto manager. (line 1069)
  10551. * BFD_RELOC_BFIN_GOTOFF17M4: howto manager. (line 1078)
  10552. * BFD_RELOC_BFIN_GOTOFFHI: howto manager. (line 1079)
  10553. * BFD_RELOC_BFIN_GOTOFFLO: howto manager. (line 1080)
  10554. * BFD_RELOC_BFIN_PLTPC: howto manager. (line 1084)
  10555. * BFD_RELOC_C6000_ABS_H16: howto manager. (line 1505)
  10556. * BFD_RELOC_C6000_ABS_L16: howto manager. (line 1504)
  10557. * BFD_RELOC_C6000_ABS_S16: howto manager. (line 1503)
  10558. * BFD_RELOC_C6000_ALIGN: howto manager. (line 1526)
  10559. * BFD_RELOC_C6000_COPY: howto manager. (line 1521)
  10560. * BFD_RELOC_C6000_DSBT_INDEX: howto manager. (line 1519)
  10561. * BFD_RELOC_C6000_EHTYPE: howto manager. (line 1523)
  10562. * BFD_RELOC_C6000_FPHEAD: howto manager. (line 1527)
  10563. * BFD_RELOC_C6000_JUMP_SLOT: howto manager. (line 1522)
  10564. * BFD_RELOC_C6000_NOCMP: howto manager. (line 1528)
  10565. * BFD_RELOC_C6000_PCR_H16: howto manager. (line 1524)
  10566. * BFD_RELOC_C6000_PCR_L16: howto manager. (line 1525)
  10567. * BFD_RELOC_C6000_PCR_S10: howto manager. (line 1501)
  10568. * BFD_RELOC_C6000_PCR_S12: howto manager. (line 1500)
  10569. * BFD_RELOC_C6000_PCR_S21: howto manager. (line 1499)
  10570. * BFD_RELOC_C6000_PCR_S7: howto manager. (line 1502)
  10571. * BFD_RELOC_C6000_PREL31: howto manager. (line 1520)
  10572. * BFD_RELOC_C6000_SBR_GOT_H16_W: howto manager. (line 1518)
  10573. * BFD_RELOC_C6000_SBR_GOT_L16_W: howto manager. (line 1517)
  10574. * BFD_RELOC_C6000_SBR_GOT_U15_W: howto manager. (line 1516)
  10575. * BFD_RELOC_C6000_SBR_H16_B: howto manager. (line 1513)
  10576. * BFD_RELOC_C6000_SBR_H16_H: howto manager. (line 1514)
  10577. * BFD_RELOC_C6000_SBR_H16_W: howto manager. (line 1515)
  10578. * BFD_RELOC_C6000_SBR_L16_B: howto manager. (line 1510)
  10579. * BFD_RELOC_C6000_SBR_L16_H: howto manager. (line 1511)
  10580. * BFD_RELOC_C6000_SBR_L16_W: howto manager. (line 1512)
  10581. * BFD_RELOC_C6000_SBR_S16: howto manager. (line 1509)
  10582. * BFD_RELOC_C6000_SBR_U15_B: howto manager. (line 1506)
  10583. * BFD_RELOC_C6000_SBR_U15_H: howto manager. (line 1507)
  10584. * BFD_RELOC_C6000_SBR_U15_W: howto manager. (line 1508)
  10585. * bfd_reloc_code_type: howto manager. (line 9)
  10586. * BFD_RELOC_CR16_ABS20: howto manager. (line 2241)
  10587. * BFD_RELOC_CR16_ABS24: howto manager. (line 2242)
  10588. * BFD_RELOC_CR16_DISP16: howto manager. (line 2252)
  10589. * BFD_RELOC_CR16_DISP20: howto manager. (line 2253)
  10590. * BFD_RELOC_CR16_DISP24: howto manager. (line 2254)
  10591. * BFD_RELOC_CR16_DISP24a: howto manager. (line 2255)
  10592. * BFD_RELOC_CR16_DISP4: howto manager. (line 2250)
  10593. * BFD_RELOC_CR16_DISP8: howto manager. (line 2251)
  10594. * BFD_RELOC_CR16_GLOB_DAT: howto manager. (line 2261)
  10595. * BFD_RELOC_CR16_GOTC_REGREL20: howto manager. (line 2260)
  10596. * BFD_RELOC_CR16_GOT_REGREL20: howto manager. (line 2259)
  10597. * BFD_RELOC_CR16_IMM16: howto manager. (line 2245)
  10598. * BFD_RELOC_CR16_IMM20: howto manager. (line 2246)
  10599. * BFD_RELOC_CR16_IMM24: howto manager. (line 2247)
  10600. * BFD_RELOC_CR16_IMM32: howto manager. (line 2248)
  10601. * BFD_RELOC_CR16_IMM32a: howto manager. (line 2249)
  10602. * BFD_RELOC_CR16_IMM4: howto manager. (line 2243)
  10603. * BFD_RELOC_CR16_IMM8: howto manager. (line 2244)
  10604. * BFD_RELOC_CR16_NUM16: howto manager. (line 2230)
  10605. * BFD_RELOC_CR16_NUM32: howto manager. (line 2231)
  10606. * BFD_RELOC_CR16_NUM32a: howto manager. (line 2232)
  10607. * BFD_RELOC_CR16_NUM8: howto manager. (line 2229)
  10608. * BFD_RELOC_CR16_REGREL0: howto manager. (line 2233)
  10609. * BFD_RELOC_CR16_REGREL14: howto manager. (line 2236)
  10610. * BFD_RELOC_CR16_REGREL14a: howto manager. (line 2237)
  10611. * BFD_RELOC_CR16_REGREL16: howto manager. (line 2238)
  10612. * BFD_RELOC_CR16_REGREL20: howto manager. (line 2239)
  10613. * BFD_RELOC_CR16_REGREL20a: howto manager. (line 2240)
  10614. * BFD_RELOC_CR16_REGREL4: howto manager. (line 2234)
  10615. * BFD_RELOC_CR16_REGREL4a: howto manager. (line 2235)
  10616. * BFD_RELOC_CR16_SWITCH16: howto manager. (line 2257)
  10617. * BFD_RELOC_CR16_SWITCH32: howto manager. (line 2258)
  10618. * BFD_RELOC_CR16_SWITCH8: howto manager. (line 2256)
  10619. * BFD_RELOC_CRIS_16_DTPREL: howto manager. (line 2321)
  10620. * BFD_RELOC_CRIS_16_GOT: howto manager. (line 2303)
  10621. * BFD_RELOC_CRIS_16_GOTPLT: howto manager. (line 2307)
  10622. * BFD_RELOC_CRIS_16_GOT_GD: howto manager. (line 2317)
  10623. * BFD_RELOC_CRIS_16_GOT_TPREL: howto manager. (line 2323)
  10624. * BFD_RELOC_CRIS_16_TPREL: howto manager. (line 2325)
  10625. * BFD_RELOC_CRIS_32_DTPREL: howto manager. (line 2320)
  10626. * BFD_RELOC_CRIS_32_GD: howto manager. (line 2318)
  10627. * BFD_RELOC_CRIS_32_GOT: howto manager. (line 2301)
  10628. * BFD_RELOC_CRIS_32_GOTPLT: howto manager. (line 2305)
  10629. * BFD_RELOC_CRIS_32_GOTREL: howto manager. (line 2309)
  10630. * BFD_RELOC_CRIS_32_GOT_GD: howto manager. (line 2316)
  10631. * BFD_RELOC_CRIS_32_GOT_TPREL: howto manager. (line 2322)
  10632. * BFD_RELOC_CRIS_32_IE: howto manager. (line 2327)
  10633. * BFD_RELOC_CRIS_32_PLT_GOTREL: howto manager. (line 2311)
  10634. * BFD_RELOC_CRIS_32_PLT_PCREL: howto manager. (line 2313)
  10635. * BFD_RELOC_CRIS_32_TPREL: howto manager. (line 2324)
  10636. * BFD_RELOC_CRIS_BDISP8: howto manager. (line 2284)
  10637. * BFD_RELOC_CRIS_COPY: howto manager. (line 2296)
  10638. * BFD_RELOC_CRIS_DTP: howto manager. (line 2319)
  10639. * BFD_RELOC_CRIS_DTPMOD: howto manager. (line 2326)
  10640. * BFD_RELOC_CRIS_GLOB_DAT: howto manager. (line 2297)
  10641. * BFD_RELOC_CRIS_JUMP_SLOT: howto manager. (line 2298)
  10642. * BFD_RELOC_CRIS_LAPCQ_OFFSET: howto manager. (line 2292)
  10643. * BFD_RELOC_CRIS_RELATIVE: howto manager. (line 2299)
  10644. * BFD_RELOC_CRIS_SIGNED_16: howto manager. (line 2290)
  10645. * BFD_RELOC_CRIS_SIGNED_6: howto manager. (line 2286)
  10646. * BFD_RELOC_CRIS_SIGNED_8: howto manager. (line 2288)
  10647. * BFD_RELOC_CRIS_UNSIGNED_16: howto manager. (line 2291)
  10648. * BFD_RELOC_CRIS_UNSIGNED_4: howto manager. (line 2293)
  10649. * BFD_RELOC_CRIS_UNSIGNED_5: howto manager. (line 2285)
  10650. * BFD_RELOC_CRIS_UNSIGNED_6: howto manager. (line 2287)
  10651. * BFD_RELOC_CRIS_UNSIGNED_8: howto manager. (line 2289)
  10652. * BFD_RELOC_CRX_ABS16: howto manager. (line 2273)
  10653. * BFD_RELOC_CRX_ABS32: howto manager. (line 2274)
  10654. * BFD_RELOC_CRX_IMM16: howto manager. (line 2278)
  10655. * BFD_RELOC_CRX_IMM32: howto manager. (line 2279)
  10656. * BFD_RELOC_CRX_NUM16: howto manager. (line 2276)
  10657. * BFD_RELOC_CRX_NUM32: howto manager. (line 2277)
  10658. * BFD_RELOC_CRX_NUM8: howto manager. (line 2275)
  10659. * BFD_RELOC_CRX_REGREL12: howto manager. (line 2269)
  10660. * BFD_RELOC_CRX_REGREL22: howto manager. (line 2270)
  10661. * BFD_RELOC_CRX_REGREL28: howto manager. (line 2271)
  10662. * BFD_RELOC_CRX_REGREL32: howto manager. (line 2272)
  10663. * BFD_RELOC_CRX_REL16: howto manager. (line 2266)
  10664. * BFD_RELOC_CRX_REL24: howto manager. (line 2267)
  10665. * BFD_RELOC_CRX_REL32: howto manager. (line 2268)
  10666. * BFD_RELOC_CRX_REL4: howto manager. (line 2263)
  10667. * BFD_RELOC_CRX_REL8: howto manager. (line 2264)
  10668. * BFD_RELOC_CRX_REL8_CMP: howto manager. (line 2265)
  10669. * BFD_RELOC_CRX_SWITCH16: howto manager. (line 2281)
  10670. * BFD_RELOC_CRX_SWITCH32: howto manager. (line 2282)
  10671. * BFD_RELOC_CRX_SWITCH8: howto manager. (line 2280)
  10672. * BFD_RELOC_CTOR: howto manager. (line 727)
  10673. * BFD_RELOC_D10V_10_PCREL_L: howto manager. (line 1129)
  10674. * BFD_RELOC_D10V_10_PCREL_R: howto manager. (line 1126)
  10675. * BFD_RELOC_D10V_18: howto manager. (line 1133)
  10676. * BFD_RELOC_D10V_18_PCREL: howto manager. (line 1135)
  10677. * BFD_RELOC_D30V_15: howto manager. (line 1146)
  10678. * BFD_RELOC_D30V_15_PCREL: howto manager. (line 1149)
  10679. * BFD_RELOC_D30V_15_PCREL_R: howto manager. (line 1152)
  10680. * BFD_RELOC_D30V_21: howto manager. (line 1156)
  10681. * BFD_RELOC_D30V_21_PCREL: howto manager. (line 1159)
  10682. * BFD_RELOC_D30V_21_PCREL_R: howto manager. (line 1162)
  10683. * BFD_RELOC_D30V_32: howto manager. (line 1166)
  10684. * BFD_RELOC_D30V_32_PCREL: howto manager. (line 1168)
  10685. * BFD_RELOC_D30V_6: howto manager. (line 1137)
  10686. * BFD_RELOC_D30V_9_PCREL: howto manager. (line 1139)
  10687. * BFD_RELOC_D30V_9_PCREL_R: howto manager. (line 1142)
  10688. * BFD_RELOC_DLX_HI16_S: howto manager. (line 1170)
  10689. * BFD_RELOC_DLX_JMP26: howto manager. (line 1174)
  10690. * BFD_RELOC_DLX_LO16: howto manager. (line 1172)
  10691. * BFD_RELOC_EPIPHANY_HIGH: howto manager. (line 3192)
  10692. * BFD_RELOC_EPIPHANY_IMM11: howto manager. (line 3198)
  10693. * BFD_RELOC_EPIPHANY_IMM8: howto manager. (line 3201)
  10694. * BFD_RELOC_EPIPHANY_LOW: howto manager. (line 3194)
  10695. * BFD_RELOC_EPIPHANY_SIMM11: howto manager. (line 3196)
  10696. * BFD_RELOC_EPIPHANY_SIMM24: howto manager. (line 3190)
  10697. * BFD_RELOC_EPIPHANY_SIMM8: howto manager. (line 3188)
  10698. * BFD_RELOC_FR30_10_IN_8: howto manager. (line 1544)
  10699. * BFD_RELOC_FR30_12_PCREL: howto manager. (line 1550)
  10700. * BFD_RELOC_FR30_20: howto manager. (line 1532)
  10701. * BFD_RELOC_FR30_48: howto manager. (line 1530)
  10702. * BFD_RELOC_FR30_6_IN_4: howto manager. (line 1535)
  10703. * BFD_RELOC_FR30_8_IN_8: howto manager. (line 1538)
  10704. * BFD_RELOC_FR30_9_IN_8: howto manager. (line 1541)
  10705. * BFD_RELOC_FR30_9_PCREL: howto manager. (line 1547)
  10706. * BFD_RELOC_FRV_FUNCDESC: howto manager. (line 450)
  10707. * BFD_RELOC_FRV_FUNCDESC_GOT12: howto manager. (line 451)
  10708. * BFD_RELOC_FRV_FUNCDESC_GOTHI: howto manager. (line 452)
  10709. * BFD_RELOC_FRV_FUNCDESC_GOTLO: howto manager. (line 453)
  10710. * BFD_RELOC_FRV_FUNCDESC_GOTOFF12: howto manager. (line 455)
  10711. * BFD_RELOC_FRV_FUNCDESC_GOTOFFHI: howto manager. (line 456)
  10712. * BFD_RELOC_FRV_FUNCDESC_GOTOFFLO: howto manager. (line 457)
  10713. * BFD_RELOC_FRV_FUNCDESC_VALUE: howto manager. (line 454)
  10714. * BFD_RELOC_FRV_GETTLSOFF: howto manager. (line 461)
  10715. * BFD_RELOC_FRV_GETTLSOFF_RELAX: howto manager. (line 474)
  10716. * BFD_RELOC_FRV_GOT12: howto manager. (line 447)
  10717. * BFD_RELOC_FRV_GOTHI: howto manager. (line 448)
  10718. * BFD_RELOC_FRV_GOTLO: howto manager. (line 449)
  10719. * BFD_RELOC_FRV_GOTOFF12: howto manager. (line 458)
  10720. * BFD_RELOC_FRV_GOTOFFHI: howto manager. (line 459)
  10721. * BFD_RELOC_FRV_GOTOFFLO: howto manager. (line 460)
  10722. * BFD_RELOC_FRV_GOTTLSDESC12: howto manager. (line 463)
  10723. * BFD_RELOC_FRV_GOTTLSDESCHI: howto manager. (line 464)
  10724. * BFD_RELOC_FRV_GOTTLSDESCLO: howto manager. (line 465)
  10725. * BFD_RELOC_FRV_GOTTLSOFF12: howto manager. (line 469)
  10726. * BFD_RELOC_FRV_GOTTLSOFFHI: howto manager. (line 470)
  10727. * BFD_RELOC_FRV_GOTTLSOFFLO: howto manager. (line 471)
  10728. * BFD_RELOC_FRV_GPREL12: howto manager. (line 442)
  10729. * BFD_RELOC_FRV_GPREL32: howto manager. (line 444)
  10730. * BFD_RELOC_FRV_GPRELHI: howto manager. (line 445)
  10731. * BFD_RELOC_FRV_GPRELLO: howto manager. (line 446)
  10732. * BFD_RELOC_FRV_GPRELU12: howto manager. (line 443)
  10733. * BFD_RELOC_FRV_HI16: howto manager. (line 441)
  10734. * BFD_RELOC_FRV_LABEL16: howto manager. (line 438)
  10735. * BFD_RELOC_FRV_LABEL24: howto manager. (line 439)
  10736. * BFD_RELOC_FRV_LO16: howto manager. (line 440)
  10737. * BFD_RELOC_FRV_TLSDESC_RELAX: howto manager. (line 473)
  10738. * BFD_RELOC_FRV_TLSDESC_VALUE: howto manager. (line 462)
  10739. * BFD_RELOC_FRV_TLSMOFF: howto manager. (line 476)
  10740. * BFD_RELOC_FRV_TLSMOFF12: howto manager. (line 466)
  10741. * BFD_RELOC_FRV_TLSMOFFHI: howto manager. (line 467)
  10742. * BFD_RELOC_FRV_TLSMOFFLO: howto manager. (line 468)
  10743. * BFD_RELOC_FRV_TLSOFF: howto manager. (line 472)
  10744. * BFD_RELOC_FRV_TLSOFF_RELAX: howto manager. (line 475)
  10745. * BFD_RELOC_FT32_10: howto manager. (line 433)
  10746. * BFD_RELOC_FT32_17: howto manager. (line 435)
  10747. * BFD_RELOC_FT32_18: howto manager. (line 436)
  10748. * BFD_RELOC_FT32_20: howto manager. (line 434)
  10749. * BFD_RELOC_GPREL16: howto manager. (line 114)
  10750. * BFD_RELOC_GPREL32: howto manager. (line 115)
  10751. * BFD_RELOC_H8_DIR16A8: howto manager. (line 2387)
  10752. * BFD_RELOC_H8_DIR16R8: howto manager. (line 2388)
  10753. * BFD_RELOC_H8_DIR24A8: howto manager. (line 2389)
  10754. * BFD_RELOC_H8_DIR24R8: howto manager. (line 2390)
  10755. * BFD_RELOC_H8_DIR32A16: howto manager. (line 2391)
  10756. * BFD_RELOC_H8_DISP32A16: howto manager. (line 2392)
  10757. * BFD_RELOC_HI16: howto manager. (line 316)
  10758. * BFD_RELOC_HI16_BASEREL: howto manager. (line 94)
  10759. * BFD_RELOC_HI16_GOTOFF: howto manager. (line 53)
  10760. * BFD_RELOC_HI16_PCREL: howto manager. (line 325)
  10761. * BFD_RELOC_HI16_PLTOFF: howto manager. (line 65)
  10762. * BFD_RELOC_HI16_S: howto manager. (line 318)
  10763. * BFD_RELOC_HI16_S_BASEREL: howto manager. (line 95)
  10764. * BFD_RELOC_HI16_S_GOTOFF: howto manager. (line 54)
  10765. * BFD_RELOC_HI16_S_PCREL: howto manager. (line 327)
  10766. * BFD_RELOC_HI16_S_PLTOFF: howto manager. (line 66)
  10767. * BFD_RELOC_HI22: howto manager. (line 110)
  10768. * BFD_RELOC_I370_D12: howto manager. (line 725)
  10769. * BFD_RELOC_I960_CALLJ: howto manager. (line 120)
  10770. * BFD_RELOC_IA64_COPY: howto manager. (line 2090)
  10771. * BFD_RELOC_IA64_DIR32LSB: howto manager. (line 2035)
  10772. * BFD_RELOC_IA64_DIR32MSB: howto manager. (line 2034)
  10773. * BFD_RELOC_IA64_DIR64LSB: howto manager. (line 2037)
  10774. * BFD_RELOC_IA64_DIR64MSB: howto manager. (line 2036)
  10775. * BFD_RELOC_IA64_DTPMOD64LSB: howto manager. (line 2100)
  10776. * BFD_RELOC_IA64_DTPMOD64MSB: howto manager. (line 2099)
  10777. * BFD_RELOC_IA64_DTPREL14: howto manager. (line 2102)
  10778. * BFD_RELOC_IA64_DTPREL22: howto manager. (line 2103)
  10779. * BFD_RELOC_IA64_DTPREL32LSB: howto manager. (line 2106)
  10780. * BFD_RELOC_IA64_DTPREL32MSB: howto manager. (line 2105)
  10781. * BFD_RELOC_IA64_DTPREL64I: howto manager. (line 2104)
  10782. * BFD_RELOC_IA64_DTPREL64LSB: howto manager. (line 2108)
  10783. * BFD_RELOC_IA64_DTPREL64MSB: howto manager. (line 2107)
  10784. * BFD_RELOC_IA64_FPTR32LSB: howto manager. (line 2052)
  10785. * BFD_RELOC_IA64_FPTR32MSB: howto manager. (line 2051)
  10786. * BFD_RELOC_IA64_FPTR64I: howto manager. (line 2050)
  10787. * BFD_RELOC_IA64_FPTR64LSB: howto manager. (line 2054)
  10788. * BFD_RELOC_IA64_FPTR64MSB: howto manager. (line 2053)
  10789. * BFD_RELOC_IA64_GPREL22: howto manager. (line 2038)
  10790. * BFD_RELOC_IA64_GPREL32LSB: howto manager. (line 2041)
  10791. * BFD_RELOC_IA64_GPREL32MSB: howto manager. (line 2040)
  10792. * BFD_RELOC_IA64_GPREL64I: howto manager. (line 2039)
  10793. * BFD_RELOC_IA64_GPREL64LSB: howto manager. (line 2043)
  10794. * BFD_RELOC_IA64_GPREL64MSB: howto manager. (line 2042)
  10795. * BFD_RELOC_IA64_IMM14: howto manager. (line 2031)
  10796. * BFD_RELOC_IA64_IMM22: howto manager. (line 2032)
  10797. * BFD_RELOC_IA64_IMM64: howto manager. (line 2033)
  10798. * BFD_RELOC_IA64_IPLTLSB: howto manager. (line 2089)
  10799. * BFD_RELOC_IA64_IPLTMSB: howto manager. (line 2088)
  10800. * BFD_RELOC_IA64_LDXMOV: howto manager. (line 2092)
  10801. * BFD_RELOC_IA64_LTOFF22: howto manager. (line 2044)
  10802. * BFD_RELOC_IA64_LTOFF22X: howto manager. (line 2091)
  10803. * BFD_RELOC_IA64_LTOFF64I: howto manager. (line 2045)
  10804. * BFD_RELOC_IA64_LTOFF_DTPMOD22: howto manager. (line 2101)
  10805. * BFD_RELOC_IA64_LTOFF_DTPREL22: howto manager. (line 2109)
  10806. * BFD_RELOC_IA64_LTOFF_FPTR22: howto manager. (line 2066)
  10807. * BFD_RELOC_IA64_LTOFF_FPTR32LSB: howto manager. (line 2069)
  10808. * BFD_RELOC_IA64_LTOFF_FPTR32MSB: howto manager. (line 2068)
  10809. * BFD_RELOC_IA64_LTOFF_FPTR64I: howto manager. (line 2067)
  10810. * BFD_RELOC_IA64_LTOFF_FPTR64LSB: howto manager. (line 2071)
  10811. * BFD_RELOC_IA64_LTOFF_FPTR64MSB: howto manager. (line 2070)
  10812. * BFD_RELOC_IA64_LTOFF_TPREL22: howto manager. (line 2098)
  10813. * BFD_RELOC_IA64_LTV32LSB: howto manager. (line 2085)
  10814. * BFD_RELOC_IA64_LTV32MSB: howto manager. (line 2084)
  10815. * BFD_RELOC_IA64_LTV64LSB: howto manager. (line 2087)
  10816. * BFD_RELOC_IA64_LTV64MSB: howto manager. (line 2086)
  10817. * BFD_RELOC_IA64_PCREL21B: howto manager. (line 2055)
  10818. * BFD_RELOC_IA64_PCREL21BI: howto manager. (line 2056)
  10819. * BFD_RELOC_IA64_PCREL21F: howto manager. (line 2058)
  10820. * BFD_RELOC_IA64_PCREL21M: howto manager. (line 2057)
  10821. * BFD_RELOC_IA64_PCREL22: howto manager. (line 2059)
  10822. * BFD_RELOC_IA64_PCREL32LSB: howto manager. (line 2063)
  10823. * BFD_RELOC_IA64_PCREL32MSB: howto manager. (line 2062)
  10824. * BFD_RELOC_IA64_PCREL60B: howto manager. (line 2060)
  10825. * BFD_RELOC_IA64_PCREL64I: howto manager. (line 2061)
  10826. * BFD_RELOC_IA64_PCREL64LSB: howto manager. (line 2065)
  10827. * BFD_RELOC_IA64_PCREL64MSB: howto manager. (line 2064)
  10828. * BFD_RELOC_IA64_PLTOFF22: howto manager. (line 2046)
  10829. * BFD_RELOC_IA64_PLTOFF64I: howto manager. (line 2047)
  10830. * BFD_RELOC_IA64_PLTOFF64LSB: howto manager. (line 2049)
  10831. * BFD_RELOC_IA64_PLTOFF64MSB: howto manager. (line 2048)
  10832. * BFD_RELOC_IA64_REL32LSB: howto manager. (line 2081)
  10833. * BFD_RELOC_IA64_REL32MSB: howto manager. (line 2080)
  10834. * BFD_RELOC_IA64_REL64LSB: howto manager. (line 2083)
  10835. * BFD_RELOC_IA64_REL64MSB: howto manager. (line 2082)
  10836. * BFD_RELOC_IA64_SECREL32LSB: howto manager. (line 2077)
  10837. * BFD_RELOC_IA64_SECREL32MSB: howto manager. (line 2076)
  10838. * BFD_RELOC_IA64_SECREL64LSB: howto manager. (line 2079)
  10839. * BFD_RELOC_IA64_SECREL64MSB: howto manager. (line 2078)
  10840. * BFD_RELOC_IA64_SEGREL32LSB: howto manager. (line 2073)
  10841. * BFD_RELOC_IA64_SEGREL32MSB: howto manager. (line 2072)
  10842. * BFD_RELOC_IA64_SEGREL64LSB: howto manager. (line 2075)
  10843. * BFD_RELOC_IA64_SEGREL64MSB: howto manager. (line 2074)
  10844. * BFD_RELOC_IA64_TPREL14: howto manager. (line 2093)
  10845. * BFD_RELOC_IA64_TPREL22: howto manager. (line 2094)
  10846. * BFD_RELOC_IA64_TPREL64I: howto manager. (line 2095)
  10847. * BFD_RELOC_IA64_TPREL64LSB: howto manager. (line 2097)
  10848. * BFD_RELOC_IA64_TPREL64MSB: howto manager. (line 2096)
  10849. * BFD_RELOC_IP2K_ADDR16CJP: howto manager. (line 1992)
  10850. * BFD_RELOC_IP2K_BANK: howto manager. (line 1990)
  10851. * BFD_RELOC_IP2K_EX8DATA: howto manager. (line 1998)
  10852. * BFD_RELOC_IP2K_FR9: howto manager. (line 1988)
  10853. * BFD_RELOC_IP2K_FR_OFFSET: howto manager. (line 2007)
  10854. * BFD_RELOC_IP2K_HI8DATA: howto manager. (line 1997)
  10855. * BFD_RELOC_IP2K_HI8INSN: howto manager. (line 2001)
  10856. * BFD_RELOC_IP2K_LO8DATA: howto manager. (line 1996)
  10857. * BFD_RELOC_IP2K_LO8INSN: howto manager. (line 2000)
  10858. * BFD_RELOC_IP2K_PAGE3: howto manager. (line 1994)
  10859. * BFD_RELOC_IP2K_PC_SKIP: howto manager. (line 2003)
  10860. * BFD_RELOC_IP2K_TEXT: howto manager. (line 2005)
  10861. * BFD_RELOC_IQ2000_OFFSET_16: howto manager. (line 2498)
  10862. * BFD_RELOC_IQ2000_OFFSET_21: howto manager. (line 2499)
  10863. * BFD_RELOC_IQ2000_UHI16: howto manager. (line 2500)
  10864. * BFD_RELOC_LM32_16_GOT: howto manager. (line 2590)
  10865. * BFD_RELOC_LM32_BRANCH: howto manager. (line 2589)
  10866. * BFD_RELOC_LM32_CALL: howto manager. (line 2588)
  10867. * BFD_RELOC_LM32_COPY: howto manager. (line 2593)
  10868. * BFD_RELOC_LM32_GLOB_DAT: howto manager. (line 2594)
  10869. * BFD_RELOC_LM32_GOTOFF_HI16: howto manager. (line 2591)
  10870. * BFD_RELOC_LM32_GOTOFF_LO16: howto manager. (line 2592)
  10871. * BFD_RELOC_LM32_JMP_SLOT: howto manager. (line 2595)
  10872. * BFD_RELOC_LM32_RELATIVE: howto manager. (line 2596)
  10873. * BFD_RELOC_LO10: howto manager. (line 111)
  10874. * BFD_RELOC_LO16: howto manager. (line 323)
  10875. * BFD_RELOC_LO16_BASEREL: howto manager. (line 93)
  10876. * BFD_RELOC_LO16_GOTOFF: howto manager. (line 52)
  10877. * BFD_RELOC_LO16_PCREL: howto manager. (line 329)
  10878. * BFD_RELOC_LO16_PLTOFF: howto manager. (line 64)
  10879. * BFD_RELOC_M32C_HI8: howto manager. (line 1176)
  10880. * BFD_RELOC_M32C_RL_1ADDR: howto manager. (line 1178)
  10881. * BFD_RELOC_M32C_RL_2ADDR: howto manager. (line 1179)
  10882. * BFD_RELOC_M32C_RL_JUMP: howto manager. (line 1177)
  10883. * BFD_RELOC_M32R_10_PCREL: howto manager. (line 1184)
  10884. * BFD_RELOC_M32R_18_PCREL: howto manager. (line 1187)
  10885. * BFD_RELOC_M32R_24: howto manager. (line 1181)
  10886. * BFD_RELOC_M32R_26_PCREL: howto manager. (line 1189)
  10887. * BFD_RELOC_M32R_26_PLTREL: howto manager. (line 1203)
  10888. * BFD_RELOC_M32R_COPY: howto manager. (line 1204)
  10889. * BFD_RELOC_M32R_GLOB_DAT: howto manager. (line 1205)
  10890. * BFD_RELOC_M32R_GOT16_HI_SLO: howto manager. (line 1214)
  10891. * BFD_RELOC_M32R_GOT16_HI_ULO: howto manager. (line 1213)
  10892. * BFD_RELOC_M32R_GOT16_LO: howto manager. (line 1215)
  10893. * BFD_RELOC_M32R_GOT24: howto manager. (line 1202)
  10894. * BFD_RELOC_M32R_GOTOFF: howto manager. (line 1208)
  10895. * BFD_RELOC_M32R_GOTOFF_HI_SLO: howto manager. (line 1210)
  10896. * BFD_RELOC_M32R_GOTOFF_HI_ULO: howto manager. (line 1209)
  10897. * BFD_RELOC_M32R_GOTOFF_LO: howto manager. (line 1211)
  10898. * BFD_RELOC_M32R_GOTPC24: howto manager. (line 1212)
  10899. * BFD_RELOC_M32R_GOTPC_HI_SLO: howto manager. (line 1217)
  10900. * BFD_RELOC_M32R_GOTPC_HI_ULO: howto manager. (line 1216)
  10901. * BFD_RELOC_M32R_GOTPC_LO: howto manager. (line 1218)
  10902. * BFD_RELOC_M32R_HI16_SLO: howto manager. (line 1194)
  10903. * BFD_RELOC_M32R_HI16_ULO: howto manager. (line 1191)
  10904. * BFD_RELOC_M32R_JMP_SLOT: howto manager. (line 1206)
  10905. * BFD_RELOC_M32R_LO16: howto manager. (line 1197)
  10906. * BFD_RELOC_M32R_RELATIVE: howto manager. (line 1207)
  10907. * BFD_RELOC_M32R_SDA16: howto manager. (line 1199)
  10908. * BFD_RELOC_M68HC11_24: howto manager. (line 2137)
  10909. * BFD_RELOC_M68HC11_3B: howto manager. (line 2117)
  10910. * BFD_RELOC_M68HC11_HI8: howto manager. (line 2111)
  10911. * BFD_RELOC_M68HC11_LO16: howto manager. (line 2128)
  10912. * BFD_RELOC_M68HC11_LO8: howto manager. (line 2114)
  10913. * BFD_RELOC_M68HC11_PAGE: howto manager. (line 2133)
  10914. * BFD_RELOC_M68HC11_RL_GROUP: howto manager. (line 2124)
  10915. * BFD_RELOC_M68HC11_RL_JUMP: howto manager. (line 2119)
  10916. * BFD_RELOC_M68HC12_10_PCREL: howto manager. (line 2180)
  10917. * BFD_RELOC_M68HC12_16B: howto manager. (line 2176)
  10918. * BFD_RELOC_M68HC12_5B: howto manager. (line 2142)
  10919. * BFD_RELOC_M68HC12_9B: howto manager. (line 2174)
  10920. * BFD_RELOC_M68HC12_9_PCREL: howto manager. (line 2178)
  10921. * BFD_RELOC_M68HC12_HI8XG: howto manager. (line 2185)
  10922. * BFD_RELOC_M68HC12_LO8XG: howto manager. (line 2182)
  10923. * BFD_RELOC_MACH_O_ARM64_ADDEND: howto manager. (line 2624)
  10924. * BFD_RELOC_MACH_O_ARM64_GOT_LOAD_PAGE21: howto manager. (line 2626)
  10925. * BFD_RELOC_MACH_O_ARM64_GOT_LOAD_PAGEOFF12: howto manager. (line 2628)
  10926. * BFD_RELOC_MACH_O_ARM64_POINTER_TO_GOT: howto manager. (line 2630)
  10927. * BFD_RELOC_MACH_O_LOCAL_SECTDIFF: howto manager. (line 2601)
  10928. * BFD_RELOC_MACH_O_PAIR: howto manager. (line 2603)
  10929. * BFD_RELOC_MACH_O_SECTDIFF: howto manager. (line 2598)
  10930. * BFD_RELOC_MACH_O_SUBTRACTOR32: howto manager. (line 2605)
  10931. * BFD_RELOC_MACH_O_SUBTRACTOR64: howto manager. (line 2607)
  10932. * BFD_RELOC_MACH_O_X86_64_BRANCH32: howto manager. (line 2609)
  10933. * BFD_RELOC_MACH_O_X86_64_BRANCH8: howto manager. (line 2610)
  10934. * BFD_RELOC_MACH_O_X86_64_GOT: howto manager. (line 2613)
  10935. * BFD_RELOC_MACH_O_X86_64_GOT_LOAD: howto manager. (line 2615)
  10936. * BFD_RELOC_MACH_O_X86_64_PCREL32_1: howto manager. (line 2618)
  10937. * BFD_RELOC_MACH_O_X86_64_PCREL32_2: howto manager. (line 2620)
  10938. * BFD_RELOC_MACH_O_X86_64_PCREL32_4: howto manager. (line 2622)
  10939. * BFD_RELOC_MCORE_PCREL_32: howto manager. (line 1556)
  10940. * BFD_RELOC_MCORE_PCREL_IMM11BY2: howto manager. (line 1554)
  10941. * BFD_RELOC_MCORE_PCREL_IMM4BY2: howto manager. (line 1555)
  10942. * BFD_RELOC_MCORE_PCREL_IMM8BY4: howto manager. (line 1553)
  10943. * BFD_RELOC_MCORE_PCREL_JSR_IMM11BY2: howto manager. (line 1557)
  10944. * BFD_RELOC_MCORE_RVA: howto manager. (line 1558)
  10945. * BFD_RELOC_MEP_16: howto manager. (line 1561)
  10946. * BFD_RELOC_MEP_32: howto manager. (line 1562)
  10947. * BFD_RELOC_MEP_8: howto manager. (line 1560)
  10948. * BFD_RELOC_MEP_ADDR24A4: howto manager. (line 1577)
  10949. * BFD_RELOC_MEP_GNU_VTENTRY: howto manager. (line 1579)
  10950. * BFD_RELOC_MEP_GNU_VTINHERIT: howto manager. (line 1578)
  10951. * BFD_RELOC_MEP_GPREL: howto manager. (line 1571)
  10952. * BFD_RELOC_MEP_HI16S: howto manager. (line 1570)
  10953. * BFD_RELOC_MEP_HI16U: howto manager. (line 1569)
  10954. * BFD_RELOC_MEP_LOW16: howto manager. (line 1568)
  10955. * BFD_RELOC_MEP_PCABS24A2: howto manager. (line 1567)
  10956. * BFD_RELOC_MEP_PCREL12A2: howto manager. (line 1564)
  10957. * BFD_RELOC_MEP_PCREL17A2: howto manager. (line 1565)
  10958. * BFD_RELOC_MEP_PCREL24A2: howto manager. (line 1566)
  10959. * BFD_RELOC_MEP_PCREL8A2: howto manager. (line 1563)
  10960. * BFD_RELOC_MEP_TPREL: howto manager. (line 1572)
  10961. * BFD_RELOC_MEP_TPREL7: howto manager. (line 1573)
  10962. * BFD_RELOC_MEP_TPREL7A2: howto manager. (line 1574)
  10963. * BFD_RELOC_MEP_TPREL7A4: howto manager. (line 1575)
  10964. * BFD_RELOC_MEP_UIMM24: howto manager. (line 1576)
  10965. * BFD_RELOC_METAG_COPY: howto manager. (line 1600)
  10966. * BFD_RELOC_METAG_GETSETOFF: howto manager. (line 1584)
  10967. * BFD_RELOC_METAG_GETSET_GOT: howto manager. (line 1592)
  10968. * BFD_RELOC_METAG_GETSET_GOTOFF: howto manager. (line 1591)
  10969. * BFD_RELOC_METAG_GLOB_DAT: howto manager. (line 1603)
  10970. * BFD_RELOC_METAG_GOTOFF: howto manager. (line 1598)
  10971. * BFD_RELOC_METAG_HI16_GOTOFF: howto manager. (line 1589)
  10972. * BFD_RELOC_METAG_HI16_GOTPC: howto manager. (line 1593)
  10973. * BFD_RELOC_METAG_HI16_PLT: howto manager. (line 1595)
  10974. * BFD_RELOC_METAG_HIADDR16: howto manager. (line 1581)
  10975. * BFD_RELOC_METAG_HIOG: howto manager. (line 1585)
  10976. * BFD_RELOC_METAG_JMP_SLOT: howto manager. (line 1601)
  10977. * BFD_RELOC_METAG_LO16_GOTOFF: howto manager. (line 1590)
  10978. * BFD_RELOC_METAG_LO16_GOTPC: howto manager. (line 1594)
  10979. * BFD_RELOC_METAG_LO16_PLT: howto manager. (line 1596)
  10980. * BFD_RELOC_METAG_LOADDR16: howto manager. (line 1582)
  10981. * BFD_RELOC_METAG_LOOG: howto manager. (line 1586)
  10982. * BFD_RELOC_METAG_PLT: howto manager. (line 1599)
  10983. * BFD_RELOC_METAG_REL16: howto manager. (line 1588)
  10984. * BFD_RELOC_METAG_REL8: howto manager. (line 1587)
  10985. * BFD_RELOC_METAG_RELATIVE: howto manager. (line 1602)
  10986. * BFD_RELOC_METAG_RELBRANCH: howto manager. (line 1583)
  10987. * BFD_RELOC_METAG_RELBRANCH_PLT: howto manager. (line 1597)
  10988. * BFD_RELOC_METAG_TLS_DTPMOD: howto manager. (line 1614)
  10989. * BFD_RELOC_METAG_TLS_DTPOFF: howto manager. (line 1615)
  10990. * BFD_RELOC_METAG_TLS_GD: howto manager. (line 1604)
  10991. * BFD_RELOC_METAG_TLS_IE: howto manager. (line 1609)
  10992. * BFD_RELOC_METAG_TLS_IENONPIC: howto manager. (line 1610)
  10993. * BFD_RELOC_METAG_TLS_IENONPIC_HI16: howto manager. (line 1611)
  10994. * BFD_RELOC_METAG_TLS_IENONPIC_LO16: howto manager. (line 1612)
  10995. * BFD_RELOC_METAG_TLS_LDM: howto manager. (line 1605)
  10996. * BFD_RELOC_METAG_TLS_LDO: howto manager. (line 1608)
  10997. * BFD_RELOC_METAG_TLS_LDO_HI16: howto manager. (line 1606)
  10998. * BFD_RELOC_METAG_TLS_LDO_LO16: howto manager. (line 1607)
  10999. * BFD_RELOC_METAG_TLS_LE: howto manager. (line 1616)
  11000. * BFD_RELOC_METAG_TLS_LE_HI16: howto manager. (line 1617)
  11001. * BFD_RELOC_METAG_TLS_LE_LO16: howto manager. (line 1618)
  11002. * BFD_RELOC_METAG_TLS_TPOFF: howto manager. (line 1613)
  11003. * BFD_RELOC_MICROBLAZE_32_GOTOFF: howto manager. (line 2666)
  11004. * BFD_RELOC_MICROBLAZE_32_LO: howto manager. (line 2632)
  11005. * BFD_RELOC_MICROBLAZE_32_LO_PCREL: howto manager. (line 2635)
  11006. * BFD_RELOC_MICROBLAZE_32_ROSDA: howto manager. (line 2638)
  11007. * BFD_RELOC_MICROBLAZE_32_RWSDA: howto manager. (line 2641)
  11008. * BFD_RELOC_MICROBLAZE_32_SYM_OP_SYM: howto manager. (line 2644)
  11009. * BFD_RELOC_MICROBLAZE_32_TLSDTPMOD: howto manager. (line 2682)
  11010. * BFD_RELOC_MICROBLAZE_32_TLSDTPREL: howto manager. (line 2684)
  11011. * BFD_RELOC_MICROBLAZE_64_GOT: howto manager. (line 2655)
  11012. * BFD_RELOC_MICROBLAZE_64_GOTOFF: howto manager. (line 2662)
  11013. * BFD_RELOC_MICROBLAZE_64_GOTPC: howto manager. (line 2651)
  11014. * BFD_RELOC_MICROBLAZE_64_NONE: howto manager. (line 2647)
  11015. * BFD_RELOC_MICROBLAZE_64_PLT: howto manager. (line 2658)
  11016. * BFD_RELOC_MICROBLAZE_64_TLS: howto manager. (line 2672)
  11017. * BFD_RELOC_MICROBLAZE_64_TLSDTPREL: howto manager. (line 2686)
  11018. * BFD_RELOC_MICROBLAZE_64_TLSGD: howto manager. (line 2674)
  11019. * BFD_RELOC_MICROBLAZE_64_TLSGOTTPREL: howto manager. (line 2689)
  11020. * BFD_RELOC_MICROBLAZE_64_TLSLD: howto manager. (line 2678)
  11021. * BFD_RELOC_MICROBLAZE_64_TLSTPREL: howto manager. (line 2692)
  11022. * BFD_RELOC_MICROBLAZE_COPY: howto manager. (line 2669)
  11023. * BFD_RELOC_MICROMIPS_10_PCREL_S1: howto manager. (line 356)
  11024. * BFD_RELOC_MICROMIPS_16_PCREL_S1: howto manager. (line 357)
  11025. * BFD_RELOC_MICROMIPS_7_PCREL_S1: howto manager. (line 355)
  11026. * BFD_RELOC_MICROMIPS_CALL16: howto manager. (line 374)
  11027. * BFD_RELOC_MICROMIPS_CALL_HI16: howto manager. (line 380)
  11028. * BFD_RELOC_MICROMIPS_CALL_LO16: howto manager. (line 382)
  11029. * BFD_RELOC_MICROMIPS_GOT16: howto manager. (line 372)
  11030. * BFD_RELOC_MICROMIPS_GOT_DISP: howto manager. (line 390)
  11031. * BFD_RELOC_MICROMIPS_GOT_HI16: howto manager. (line 376)
  11032. * BFD_RELOC_MICROMIPS_GOT_LO16: howto manager. (line 378)
  11033. * BFD_RELOC_MICROMIPS_GOT_OFST: howto manager. (line 388)
  11034. * BFD_RELOC_MICROMIPS_GOT_PAGE: howto manager. (line 386)
  11035. * BFD_RELOC_MICROMIPS_GPREL16: howto manager. (line 366)
  11036. * BFD_RELOC_MICROMIPS_HI16: howto manager. (line 367)
  11037. * BFD_RELOC_MICROMIPS_HI16_S: howto manager. (line 368)
  11038. * BFD_RELOC_MICROMIPS_HIGHER: howto manager. (line 399)
  11039. * BFD_RELOC_MICROMIPS_HIGHEST: howto manager. (line 397)
  11040. * BFD_RELOC_MICROMIPS_JALR: howto manager. (line 405)
  11041. * BFD_RELOC_MICROMIPS_JMP: howto manager. (line 310)
  11042. * BFD_RELOC_MICROMIPS_LITERAL: howto manager. (line 353)
  11043. * BFD_RELOC_MICROMIPS_LO16: howto manager. (line 369)
  11044. * BFD_RELOC_MICROMIPS_SCN_DISP: howto manager. (line 401)
  11045. * BFD_RELOC_MICROMIPS_SUB: howto manager. (line 384)
  11046. * BFD_RELOC_MICROMIPS_TLS_DTPREL_HI16: howto manager. (line 415)
  11047. * BFD_RELOC_MICROMIPS_TLS_DTPREL_LO16: howto manager. (line 417)
  11048. * BFD_RELOC_MICROMIPS_TLS_GD: howto manager. (line 411)
  11049. * BFD_RELOC_MICROMIPS_TLS_GOTTPREL: howto manager. (line 419)
  11050. * BFD_RELOC_MICROMIPS_TLS_LDM: howto manager. (line 413)
  11051. * BFD_RELOC_MICROMIPS_TLS_TPREL_HI16: howto manager. (line 423)
  11052. * BFD_RELOC_MICROMIPS_TLS_TPREL_LO16: howto manager. (line 425)
  11053. * BFD_RELOC_MIPS16_16_PCREL_S1: howto manager. (line 359)
  11054. * BFD_RELOC_MIPS16_CALL16: howto manager. (line 332)
  11055. * BFD_RELOC_MIPS16_GOT16: howto manager. (line 331)
  11056. * BFD_RELOC_MIPS16_GPREL: howto manager. (line 314)
  11057. * BFD_RELOC_MIPS16_HI16: howto manager. (line 335)
  11058. * BFD_RELOC_MIPS16_HI16_S: howto manager. (line 337)
  11059. * BFD_RELOC_MIPS16_JMP: howto manager. (line 312)
  11060. * BFD_RELOC_MIPS16_LO16: howto manager. (line 342)
  11061. * BFD_RELOC_MIPS16_TLS_DTPREL_HI16: howto manager. (line 346)
  11062. * BFD_RELOC_MIPS16_TLS_DTPREL_LO16: howto manager. (line 347)
  11063. * BFD_RELOC_MIPS16_TLS_GD: howto manager. (line 344)
  11064. * BFD_RELOC_MIPS16_TLS_GOTTPREL: howto manager. (line 348)
  11065. * BFD_RELOC_MIPS16_TLS_LDM: howto manager. (line 345)
  11066. * BFD_RELOC_MIPS16_TLS_TPREL_HI16: howto manager. (line 349)
  11067. * BFD_RELOC_MIPS16_TLS_TPREL_LO16: howto manager. (line 350)
  11068. * BFD_RELOC_MIPS_18_PCREL_S3: howto manager. (line 363)
  11069. * BFD_RELOC_MIPS_19_PCREL_S2: howto manager. (line 364)
  11070. * BFD_RELOC_MIPS_21_PCREL_S2: howto manager. (line 361)
  11071. * BFD_RELOC_MIPS_26_PCREL_S2: howto manager. (line 362)
  11072. * BFD_RELOC_MIPS_CALL16: howto manager. (line 373)
  11073. * BFD_RELOC_MIPS_CALL_HI16: howto manager. (line 379)
  11074. * BFD_RELOC_MIPS_CALL_LO16: howto manager. (line 381)
  11075. * BFD_RELOC_MIPS_COPY: howto manager. (line 428)
  11076. * BFD_RELOC_MIPS_DELETE: howto manager. (line 395)
  11077. * BFD_RELOC_MIPS_EH: howto manager. (line 426)
  11078. * BFD_RELOC_MIPS_GOT16: howto manager. (line 371)
  11079. * BFD_RELOC_MIPS_GOT_DISP: howto manager. (line 389)
  11080. * BFD_RELOC_MIPS_GOT_HI16: howto manager. (line 375)
  11081. * BFD_RELOC_MIPS_GOT_LO16: howto manager. (line 377)
  11082. * BFD_RELOC_MIPS_GOT_OFST: howto manager. (line 387)
  11083. * BFD_RELOC_MIPS_GOT_PAGE: howto manager. (line 385)
  11084. * BFD_RELOC_MIPS_HIGHER: howto manager. (line 398)
  11085. * BFD_RELOC_MIPS_HIGHEST: howto manager. (line 396)
  11086. * BFD_RELOC_MIPS_INSERT_A: howto manager. (line 393)
  11087. * BFD_RELOC_MIPS_INSERT_B: howto manager. (line 394)
  11088. * BFD_RELOC_MIPS_JALR: howto manager. (line 404)
  11089. * BFD_RELOC_MIPS_JMP: howto manager. (line 309)
  11090. * BFD_RELOC_MIPS_JUMP_SLOT: howto manager. (line 429)
  11091. * BFD_RELOC_MIPS_LITERAL: howto manager. (line 352)
  11092. * BFD_RELOC_MIPS_REL16: howto manager. (line 402)
  11093. * BFD_RELOC_MIPS_RELGOT: howto manager. (line 403)
  11094. * BFD_RELOC_MIPS_SCN_DISP: howto manager. (line 400)
  11095. * BFD_RELOC_MIPS_SHIFT5: howto manager. (line 391)
  11096. * BFD_RELOC_MIPS_SHIFT6: howto manager. (line 392)
  11097. * BFD_RELOC_MIPS_SUB: howto manager. (line 383)
  11098. * BFD_RELOC_MIPS_TLS_DTPMOD32: howto manager. (line 406)
  11099. * BFD_RELOC_MIPS_TLS_DTPMOD64: howto manager. (line 408)
  11100. * BFD_RELOC_MIPS_TLS_DTPREL32: howto manager. (line 407)
  11101. * BFD_RELOC_MIPS_TLS_DTPREL64: howto manager. (line 409)
  11102. * BFD_RELOC_MIPS_TLS_DTPREL_HI16: howto manager. (line 414)
  11103. * BFD_RELOC_MIPS_TLS_DTPREL_LO16: howto manager. (line 416)
  11104. * BFD_RELOC_MIPS_TLS_GD: howto manager. (line 410)
  11105. * BFD_RELOC_MIPS_TLS_GOTTPREL: howto manager. (line 418)
  11106. * BFD_RELOC_MIPS_TLS_LDM: howto manager. (line 412)
  11107. * BFD_RELOC_MIPS_TLS_TPREL32: howto manager. (line 420)
  11108. * BFD_RELOC_MIPS_TLS_TPREL64: howto manager. (line 421)
  11109. * BFD_RELOC_MIPS_TLS_TPREL_HI16: howto manager. (line 422)
  11110. * BFD_RELOC_MIPS_TLS_TPREL_LO16: howto manager. (line 424)
  11111. * BFD_RELOC_MMIX_ADDR19: howto manager. (line 1642)
  11112. * BFD_RELOC_MMIX_ADDR27: howto manager. (line 1645)
  11113. * BFD_RELOC_MMIX_BASE_PLUS_OFFSET: howto manager. (line 1654)
  11114. * BFD_RELOC_MMIX_CBRANCH: howto manager. (line 1625)
  11115. * BFD_RELOC_MMIX_CBRANCH_1: howto manager. (line 1627)
  11116. * BFD_RELOC_MMIX_CBRANCH_2: howto manager. (line 1628)
  11117. * BFD_RELOC_MMIX_CBRANCH_3: howto manager. (line 1629)
  11118. * BFD_RELOC_MMIX_CBRANCH_J: howto manager. (line 1626)
  11119. * BFD_RELOC_MMIX_GETA: howto manager. (line 1620)
  11120. * BFD_RELOC_MMIX_GETA_1: howto manager. (line 1621)
  11121. * BFD_RELOC_MMIX_GETA_2: howto manager. (line 1622)
  11122. * BFD_RELOC_MMIX_GETA_3: howto manager. (line 1623)
  11123. * BFD_RELOC_MMIX_JMP: howto manager. (line 1637)
  11124. * BFD_RELOC_MMIX_JMP_1: howto manager. (line 1638)
  11125. * BFD_RELOC_MMIX_JMP_2: howto manager. (line 1639)
  11126. * BFD_RELOC_MMIX_JMP_3: howto manager. (line 1640)
  11127. * BFD_RELOC_MMIX_LOCAL: howto manager. (line 1657)
  11128. * BFD_RELOC_MMIX_PUSHJ: howto manager. (line 1631)
  11129. * BFD_RELOC_MMIX_PUSHJ_1: howto manager. (line 1632)
  11130. * BFD_RELOC_MMIX_PUSHJ_2: howto manager. (line 1633)
  11131. * BFD_RELOC_MMIX_PUSHJ_3: howto manager. (line 1634)
  11132. * BFD_RELOC_MMIX_PUSHJ_STUBBABLE: howto manager. (line 1635)
  11133. * BFD_RELOC_MMIX_REG: howto manager. (line 1651)
  11134. * BFD_RELOC_MMIX_REG_OR_BYTE: howto manager. (line 1648)
  11135. * BFD_RELOC_MN10300_16_PCREL: howto manager. (line 517)
  11136. * BFD_RELOC_MN10300_32_PCREL: howto manager. (line 514)
  11137. * BFD_RELOC_MN10300_ALIGN: howto manager. (line 501)
  11138. * BFD_RELOC_MN10300_COPY: howto manager. (line 489)
  11139. * BFD_RELOC_MN10300_GLOB_DAT: howto manager. (line 491)
  11140. * BFD_RELOC_MN10300_GOT16: howto manager. (line 486)
  11141. * BFD_RELOC_MN10300_GOT24: howto manager. (line 483)
  11142. * BFD_RELOC_MN10300_GOT32: howto manager. (line 480)
  11143. * BFD_RELOC_MN10300_GOTOFF24: howto manager. (line 478)
  11144. * BFD_RELOC_MN10300_JMP_SLOT: howto manager. (line 493)
  11145. * BFD_RELOC_MN10300_RELATIVE: howto manager. (line 495)
  11146. * BFD_RELOC_MN10300_SYM_DIFF: howto manager. (line 497)
  11147. * BFD_RELOC_MN10300_TLS_DTPMOD: howto manager. (line 510)
  11148. * BFD_RELOC_MN10300_TLS_DTPOFF: howto manager. (line 511)
  11149. * BFD_RELOC_MN10300_TLS_GD: howto manager. (line 504)
  11150. * BFD_RELOC_MN10300_TLS_GOTIE: howto manager. (line 507)
  11151. * BFD_RELOC_MN10300_TLS_IE: howto manager. (line 508)
  11152. * BFD_RELOC_MN10300_TLS_LD: howto manager. (line 505)
  11153. * BFD_RELOC_MN10300_TLS_LDO: howto manager. (line 506)
  11154. * BFD_RELOC_MN10300_TLS_LE: howto manager. (line 509)
  11155. * BFD_RELOC_MN10300_TLS_TPOFF: howto manager. (line 512)
  11156. * BFD_RELOC_MOXIE_10_PCREL: howto manager. (line 431)
  11157. * BFD_RELOC_MSP430X_ABS16: howto manager. (line 2440)
  11158. * BFD_RELOC_MSP430X_ABS20_ADR_DST: howto manager. (line 2437)
  11159. * BFD_RELOC_MSP430X_ABS20_ADR_SRC: howto manager. (line 2436)
  11160. * BFD_RELOC_MSP430X_ABS20_EXT_DST: howto manager. (line 2434)
  11161. * BFD_RELOC_MSP430X_ABS20_EXT_ODST: howto manager. (line 2435)
  11162. * BFD_RELOC_MSP430X_ABS20_EXT_SRC: howto manager. (line 2433)
  11163. * BFD_RELOC_MSP430X_PCR16: howto manager. (line 2438)
  11164. * BFD_RELOC_MSP430X_PCR20_CALL: howto manager. (line 2439)
  11165. * BFD_RELOC_MSP430X_PCR20_EXT_DST: howto manager. (line 2431)
  11166. * BFD_RELOC_MSP430X_PCR20_EXT_ODST: howto manager. (line 2432)
  11167. * BFD_RELOC_MSP430X_PCR20_EXT_SRC: howto manager. (line 2430)
  11168. * BFD_RELOC_MSP430_10_PCREL: howto manager. (line 2422)
  11169. * BFD_RELOC_MSP430_16: howto manager. (line 2424)
  11170. * BFD_RELOC_MSP430_16_BYTE: howto manager. (line 2426)
  11171. * BFD_RELOC_MSP430_16_PCREL: howto manager. (line 2423)
  11172. * BFD_RELOC_MSP430_16_PCREL_BYTE: howto manager. (line 2425)
  11173. * BFD_RELOC_MSP430_2X_PCREL: howto manager. (line 2427)
  11174. * BFD_RELOC_MSP430_ABS8: howto manager. (line 2429)
  11175. * BFD_RELOC_MSP430_ABS_HI16: howto manager. (line 2441)
  11176. * BFD_RELOC_MSP430_PREL31: howto manager. (line 2442)
  11177. * BFD_RELOC_MSP430_RL_PCREL: howto manager. (line 2428)
  11178. * BFD_RELOC_MSP430_SYM_DIFF: howto manager. (line 2443)
  11179. * BFD_RELOC_MT_GNU_VTENTRY: howto manager. (line 2418)
  11180. * BFD_RELOC_MT_GNU_VTINHERIT: howto manager. (line 2416)
  11181. * BFD_RELOC_MT_HI16: howto manager. (line 2412)
  11182. * BFD_RELOC_MT_LO16: howto manager. (line 2414)
  11183. * BFD_RELOC_MT_PC16: howto manager. (line 2410)
  11184. * BFD_RELOC_MT_PCINSN8: howto manager. (line 2420)
  11185. * BFD_RELOC_NDS32_10IFCU_PCREL: howto manager. (line 1370)
  11186. * BFD_RELOC_NDS32_10_UPCREL: howto manager. (line 1341)
  11187. * BFD_RELOC_NDS32_15_FIXED: howto manager. (line 1302)
  11188. * BFD_RELOC_NDS32_15_PCREL: howto manager. (line 1228)
  11189. * BFD_RELOC_NDS32_17IFC_PCREL: howto manager. (line 1369)
  11190. * BFD_RELOC_NDS32_17_FIXED: howto manager. (line 1303)
  11191. * BFD_RELOC_NDS32_17_PCREL: howto manager. (line 1230)
  11192. * BFD_RELOC_NDS32_20: howto manager. (line 1220)
  11193. * BFD_RELOC_NDS32_25_ABS: howto manager. (line 1365)
  11194. * BFD_RELOC_NDS32_25_FIXED: howto manager. (line 1304)
  11195. * BFD_RELOC_NDS32_25_PCREL: howto manager. (line 1232)
  11196. * BFD_RELOC_NDS32_25_PLTREL: howto manager. (line 1278)
  11197. * BFD_RELOC_NDS32_5: howto manager. (line 1339)
  11198. * BFD_RELOC_NDS32_9_FIXED: howto manager. (line 1301)
  11199. * BFD_RELOC_NDS32_9_PCREL: howto manager. (line 1222)
  11200. * BFD_RELOC_NDS32_9_PLTREL: howto manager. (line 1277)
  11201. * BFD_RELOC_NDS32_COPY: howto manager. (line 1279)
  11202. * BFD_RELOC_NDS32_DATA: howto manager. (line 1367)
  11203. * BFD_RELOC_NDS32_DIFF16: howto manager. (line 1360)
  11204. * BFD_RELOC_NDS32_DIFF32: howto manager. (line 1361)
  11205. * BFD_RELOC_NDS32_DIFF8: howto manager. (line 1359)
  11206. * BFD_RELOC_NDS32_DIFF_ULEB128: howto manager. (line 1362)
  11207. * BFD_RELOC_NDS32_DWARF2_LEB: howto manager. (line 1325)
  11208. * BFD_RELOC_NDS32_DWARF2_OP1: howto manager. (line 1323)
  11209. * BFD_RELOC_NDS32_DWARF2_OP2: howto manager. (line 1324)
  11210. * BFD_RELOC_NDS32_EMPTY: howto manager. (line 1363)
  11211. * BFD_RELOC_NDS32_GLOB_DAT: howto manager. (line 1280)
  11212. * BFD_RELOC_NDS32_GOT15S2: howto manager. (line 1336)
  11213. * BFD_RELOC_NDS32_GOT17S2: howto manager. (line 1337)
  11214. * BFD_RELOC_NDS32_GOT20: howto manager. (line 1276)
  11215. * BFD_RELOC_NDS32_GOTOFF: howto manager. (line 1283)
  11216. * BFD_RELOC_NDS32_GOTOFF_HI20: howto manager. (line 1284)
  11217. * BFD_RELOC_NDS32_GOTOFF_LO12: howto manager. (line 1285)
  11218. * BFD_RELOC_NDS32_GOTOFF_LO15: howto manager. (line 1334)
  11219. * BFD_RELOC_NDS32_GOTOFF_LO19: howto manager. (line 1335)
  11220. * BFD_RELOC_NDS32_GOTOFF_SUFF: howto manager. (line 1348)
  11221. * BFD_RELOC_NDS32_GOTPC20: howto manager. (line 1286)
  11222. * BFD_RELOC_NDS32_GOTPC_HI20: howto manager. (line 1289)
  11223. * BFD_RELOC_NDS32_GOTPC_LO12: howto manager. (line 1290)
  11224. * BFD_RELOC_NDS32_GOTTPOFF: howto manager. (line 1377)
  11225. * BFD_RELOC_NDS32_GOT_HI20: howto manager. (line 1287)
  11226. * BFD_RELOC_NDS32_GOT_LO12: howto manager. (line 1288)
  11227. * BFD_RELOC_NDS32_GOT_LO15: howto manager. (line 1332)
  11228. * BFD_RELOC_NDS32_GOT_LO19: howto manager. (line 1333)
  11229. * BFD_RELOC_NDS32_GOT_SUFF: howto manager. (line 1347)
  11230. * BFD_RELOC_NDS32_HI20: howto manager. (line 1234)
  11231. * BFD_RELOC_NDS32_INSN16: howto manager. (line 1292)
  11232. * BFD_RELOC_NDS32_JMP_SLOT: howto manager. (line 1281)
  11233. * BFD_RELOC_NDS32_LABEL: howto manager. (line 1293)
  11234. * BFD_RELOC_NDS32_LO12S0: howto manager. (line 1246)
  11235. * BFD_RELOC_NDS32_LO12S0_ORI: howto manager. (line 1249)
  11236. * BFD_RELOC_NDS32_LO12S1: howto manager. (line 1243)
  11237. * BFD_RELOC_NDS32_LO12S2: howto manager. (line 1240)
  11238. * BFD_RELOC_NDS32_LO12S2_DP: howto manager. (line 1320)
  11239. * BFD_RELOC_NDS32_LO12S2_SP: howto manager. (line 1321)
  11240. * BFD_RELOC_NDS32_LO12S3: howto manager. (line 1237)
  11241. * BFD_RELOC_NDS32_LOADSTORE: howto manager. (line 1300)
  11242. * BFD_RELOC_NDS32_LONGCALL1: howto manager. (line 1294)
  11243. * BFD_RELOC_NDS32_LONGCALL2: howto manager. (line 1295)
  11244. * BFD_RELOC_NDS32_LONGCALL3: howto manager. (line 1296)
  11245. * BFD_RELOC_NDS32_LONGCALL4: howto manager. (line 1305)
  11246. * BFD_RELOC_NDS32_LONGCALL5: howto manager. (line 1306)
  11247. * BFD_RELOC_NDS32_LONGCALL6: howto manager. (line 1307)
  11248. * BFD_RELOC_NDS32_LONGJUMP1: howto manager. (line 1297)
  11249. * BFD_RELOC_NDS32_LONGJUMP2: howto manager. (line 1298)
  11250. * BFD_RELOC_NDS32_LONGJUMP3: howto manager. (line 1299)
  11251. * BFD_RELOC_NDS32_LONGJUMP4: howto manager. (line 1308)
  11252. * BFD_RELOC_NDS32_LONGJUMP5: howto manager. (line 1309)
  11253. * BFD_RELOC_NDS32_LONGJUMP6: howto manager. (line 1310)
  11254. * BFD_RELOC_NDS32_LONGJUMP7: howto manager. (line 1311)
  11255. * BFD_RELOC_NDS32_MINUEND: howto manager. (line 1357)
  11256. * BFD_RELOC_NDS32_MULCALL_SUFF: howto manager. (line 1350)
  11257. * BFD_RELOC_NDS32_PLTBLOCK: howto manager. (line 1354)
  11258. * BFD_RELOC_NDS32_PLTREL_HI20: howto manager. (line 1313)
  11259. * BFD_RELOC_NDS32_PLTREL_LO12: howto manager. (line 1314)
  11260. * BFD_RELOC_NDS32_PLT_GOTREL_HI20: howto manager. (line 1315)
  11261. * BFD_RELOC_NDS32_PLT_GOTREL_LO12: howto manager. (line 1316)
  11262. * BFD_RELOC_NDS32_PLT_GOTREL_LO15: howto manager. (line 1330)
  11263. * BFD_RELOC_NDS32_PLT_GOTREL_LO19: howto manager. (line 1331)
  11264. * BFD_RELOC_NDS32_PLT_GOTREL_LO20: howto manager. (line 1329)
  11265. * BFD_RELOC_NDS32_PLT_GOT_SUFF: howto manager. (line 1349)
  11266. * BFD_RELOC_NDS32_PTR: howto manager. (line 1351)
  11267. * BFD_RELOC_NDS32_PTR_COUNT: howto manager. (line 1352)
  11268. * BFD_RELOC_NDS32_PTR_RESOLVED: howto manager. (line 1353)
  11269. * BFD_RELOC_NDS32_RELATIVE: howto manager. (line 1282)
  11270. * BFD_RELOC_NDS32_RELAX_ENTRY: howto manager. (line 1346)
  11271. * BFD_RELOC_NDS32_RELAX_REGION_BEGIN: howto manager. (line 1355)
  11272. * BFD_RELOC_NDS32_RELAX_REGION_END: howto manager. (line 1356)
  11273. * BFD_RELOC_NDS32_SDA12S2_DP: howto manager. (line 1318)
  11274. * BFD_RELOC_NDS32_SDA12S2_SP: howto manager. (line 1319)
  11275. * BFD_RELOC_NDS32_SDA15S0: howto manager. (line 1261)
  11276. * BFD_RELOC_NDS32_SDA15S1: howto manager. (line 1258)
  11277. * BFD_RELOC_NDS32_SDA15S2: howto manager. (line 1255)
  11278. * BFD_RELOC_NDS32_SDA15S3: howto manager. (line 1252)
  11279. * BFD_RELOC_NDS32_SDA16S3: howto manager. (line 1264)
  11280. * BFD_RELOC_NDS32_SDA17S2: howto manager. (line 1267)
  11281. * BFD_RELOC_NDS32_SDA18S1: howto manager. (line 1270)
  11282. * BFD_RELOC_NDS32_SDA19S0: howto manager. (line 1273)
  11283. * BFD_RELOC_NDS32_SDA_FP7U2_RELA: howto manager. (line 1344)
  11284. * BFD_RELOC_NDS32_SUBTRAHEND: howto manager. (line 1358)
  11285. * BFD_RELOC_NDS32_TLS_IE_HI20: howto manager. (line 1378)
  11286. * BFD_RELOC_NDS32_TLS_IE_LO12S2: howto manager. (line 1379)
  11287. * BFD_RELOC_NDS32_TLS_LE_15S0: howto manager. (line 1382)
  11288. * BFD_RELOC_NDS32_TLS_LE_15S1: howto manager. (line 1383)
  11289. * BFD_RELOC_NDS32_TLS_LE_15S2: howto manager. (line 1384)
  11290. * BFD_RELOC_NDS32_TLS_LE_20: howto manager. (line 1381)
  11291. * BFD_RELOC_NDS32_TLS_LE_ADD: howto manager. (line 1375)
  11292. * BFD_RELOC_NDS32_TLS_LE_HI20: howto manager. (line 1373)
  11293. * BFD_RELOC_NDS32_TLS_LE_LO12: howto manager. (line 1374)
  11294. * BFD_RELOC_NDS32_TLS_LE_LS: howto manager. (line 1376)
  11295. * BFD_RELOC_NDS32_TLS_TPOFF: howto manager. (line 1380)
  11296. * BFD_RELOC_NDS32_TPOFF: howto manager. (line 1372)
  11297. * BFD_RELOC_NDS32_TRAN: howto manager. (line 1368)
  11298. * BFD_RELOC_NDS32_UPDATE_TA: howto manager. (line 1327)
  11299. * BFD_RELOC_NDS32_WORD_9_PCREL: howto manager. (line 1225)
  11300. * BFD_RELOC_NIOS2_ALIGN: howto manager. (line 2459)
  11301. * BFD_RELOC_NIOS2_CACHE_OPX: howto manager. (line 2449)
  11302. * BFD_RELOC_NIOS2_CALL16: howto manager. (line 2461)
  11303. * BFD_RELOC_NIOS2_CALL26: howto manager. (line 2447)
  11304. * BFD_RELOC_NIOS2_CALL26_NOAT: howto manager. (line 2479)
  11305. * BFD_RELOC_NIOS2_CALLR: howto manager. (line 2458)
  11306. * BFD_RELOC_NIOS2_CALL_HA: howto manager. (line 2483)
  11307. * BFD_RELOC_NIOS2_CALL_LO: howto manager. (line 2482)
  11308. * BFD_RELOC_NIOS2_CJMP: howto manager. (line 2457)
  11309. * BFD_RELOC_NIOS2_COPY: howto manager. (line 2474)
  11310. * BFD_RELOC_NIOS2_GLOB_DAT: howto manager. (line 2475)
  11311. * BFD_RELOC_NIOS2_GOT16: howto manager. (line 2460)
  11312. * BFD_RELOC_NIOS2_GOTOFF: howto manager. (line 2478)
  11313. * BFD_RELOC_NIOS2_GOTOFF_HA: howto manager. (line 2463)
  11314. * BFD_RELOC_NIOS2_GOTOFF_LO: howto manager. (line 2462)
  11315. * BFD_RELOC_NIOS2_GOT_HA: howto manager. (line 2481)
  11316. * BFD_RELOC_NIOS2_GOT_LO: howto manager. (line 2480)
  11317. * BFD_RELOC_NIOS2_GPREL: howto manager. (line 2455)
  11318. * BFD_RELOC_NIOS2_HI16: howto manager. (line 2452)
  11319. * BFD_RELOC_NIOS2_HIADJ16: howto manager. (line 2454)
  11320. * BFD_RELOC_NIOS2_IMM5: howto manager. (line 2448)
  11321. * BFD_RELOC_NIOS2_IMM6: howto manager. (line 2450)
  11322. * BFD_RELOC_NIOS2_IMM8: howto manager. (line 2451)
  11323. * BFD_RELOC_NIOS2_JUMP_SLOT: howto manager. (line 2476)
  11324. * BFD_RELOC_NIOS2_LO16: howto manager. (line 2453)
  11325. * BFD_RELOC_NIOS2_PCREL_HA: howto manager. (line 2465)
  11326. * BFD_RELOC_NIOS2_PCREL_LO: howto manager. (line 2464)
  11327. * BFD_RELOC_NIOS2_R2_F1I5_2: howto manager. (line 2493)
  11328. * BFD_RELOC_NIOS2_R2_I10_1_PCREL: howto manager. (line 2485)
  11329. * BFD_RELOC_NIOS2_R2_L5I4X1: howto manager. (line 2494)
  11330. * BFD_RELOC_NIOS2_R2_S12: howto manager. (line 2484)
  11331. * BFD_RELOC_NIOS2_R2_T1I7_1_PCREL: howto manager. (line 2486)
  11332. * BFD_RELOC_NIOS2_R2_T1I7_2: howto manager. (line 2487)
  11333. * BFD_RELOC_NIOS2_R2_T1X1I6: howto manager. (line 2495)
  11334. * BFD_RELOC_NIOS2_R2_T1X1I6_2: howto manager. (line 2496)
  11335. * BFD_RELOC_NIOS2_R2_T2I4: howto manager. (line 2488)
  11336. * BFD_RELOC_NIOS2_R2_T2I4_1: howto manager. (line 2489)
  11337. * BFD_RELOC_NIOS2_R2_T2I4_2: howto manager. (line 2490)
  11338. * BFD_RELOC_NIOS2_R2_X1I7_2: howto manager. (line 2491)
  11339. * BFD_RELOC_NIOS2_R2_X2L5: howto manager. (line 2492)
  11340. * BFD_RELOC_NIOS2_RELATIVE: howto manager. (line 2477)
  11341. * BFD_RELOC_NIOS2_S16: howto manager. (line 2445)
  11342. * BFD_RELOC_NIOS2_TLS_DTPMOD: howto manager. (line 2471)
  11343. * BFD_RELOC_NIOS2_TLS_DTPREL: howto manager. (line 2472)
  11344. * BFD_RELOC_NIOS2_TLS_GD16: howto manager. (line 2466)
  11345. * BFD_RELOC_NIOS2_TLS_IE16: howto manager. (line 2469)
  11346. * BFD_RELOC_NIOS2_TLS_LDM16: howto manager. (line 2467)
  11347. * BFD_RELOC_NIOS2_TLS_LDO16: howto manager. (line 2468)
  11348. * BFD_RELOC_NIOS2_TLS_LE16: howto manager. (line 2470)
  11349. * BFD_RELOC_NIOS2_TLS_TPREL: howto manager. (line 2473)
  11350. * BFD_RELOC_NIOS2_U16: howto manager. (line 2446)
  11351. * BFD_RELOC_NIOS2_UJMP: howto manager. (line 2456)
  11352. * BFD_RELOC_NONE: howto manager. (line 122)
  11353. * BFD_RELOC_NS32K_DISP_16: howto manager. (line 585)
  11354. * BFD_RELOC_NS32K_DISP_16_PCREL: howto manager. (line 588)
  11355. * BFD_RELOC_NS32K_DISP_32: howto manager. (line 586)
  11356. * BFD_RELOC_NS32K_DISP_32_PCREL: howto manager. (line 589)
  11357. * BFD_RELOC_NS32K_DISP_8: howto manager. (line 584)
  11358. * BFD_RELOC_NS32K_DISP_8_PCREL: howto manager. (line 587)
  11359. * BFD_RELOC_NS32K_IMM_16: howto manager. (line 579)
  11360. * BFD_RELOC_NS32K_IMM_16_PCREL: howto manager. (line 582)
  11361. * BFD_RELOC_NS32K_IMM_32: howto manager. (line 580)
  11362. * BFD_RELOC_NS32K_IMM_32_PCREL: howto manager. (line 583)
  11363. * BFD_RELOC_NS32K_IMM_8: howto manager. (line 578)
  11364. * BFD_RELOC_NS32K_IMM_8_PCREL: howto manager. (line 581)
  11365. * BFD_RELOC_OR1K_COPY: howto manager. (line 2369)
  11366. * BFD_RELOC_OR1K_GLOB_DAT: howto manager. (line 2370)
  11367. * BFD_RELOC_OR1K_GOT16: howto manager. (line 2365)
  11368. * BFD_RELOC_OR1K_GOTOFF_HI16: howto manager. (line 2367)
  11369. * BFD_RELOC_OR1K_GOTOFF_LO16: howto manager. (line 2368)
  11370. * BFD_RELOC_OR1K_GOTPC_HI16: howto manager. (line 2363)
  11371. * BFD_RELOC_OR1K_GOTPC_LO16: howto manager. (line 2364)
  11372. * BFD_RELOC_OR1K_JMP_SLOT: howto manager. (line 2371)
  11373. * BFD_RELOC_OR1K_PLT26: howto manager. (line 2366)
  11374. * BFD_RELOC_OR1K_RELATIVE: howto manager. (line 2372)
  11375. * BFD_RELOC_OR1K_REL_26: howto manager. (line 2362)
  11376. * BFD_RELOC_OR1K_TLS_DTPMOD: howto manager. (line 2385)
  11377. * BFD_RELOC_OR1K_TLS_DTPOFF: howto manager. (line 2384)
  11378. * BFD_RELOC_OR1K_TLS_GD_HI16: howto manager. (line 2373)
  11379. * BFD_RELOC_OR1K_TLS_GD_LO16: howto manager. (line 2374)
  11380. * BFD_RELOC_OR1K_TLS_IE_HI16: howto manager. (line 2379)
  11381. * BFD_RELOC_OR1K_TLS_IE_LO16: howto manager. (line 2380)
  11382. * BFD_RELOC_OR1K_TLS_LDM_HI16: howto manager. (line 2375)
  11383. * BFD_RELOC_OR1K_TLS_LDM_LO16: howto manager. (line 2376)
  11384. * BFD_RELOC_OR1K_TLS_LDO_HI16: howto manager. (line 2377)
  11385. * BFD_RELOC_OR1K_TLS_LDO_LO16: howto manager. (line 2378)
  11386. * BFD_RELOC_OR1K_TLS_LE_HI16: howto manager. (line 2381)
  11387. * BFD_RELOC_OR1K_TLS_LE_LO16: howto manager. (line 2382)
  11388. * BFD_RELOC_OR1K_TLS_TPOFF: howto manager. (line 2383)
  11389. * BFD_RELOC_PDP11_DISP_6_PCREL: howto manager. (line 592)
  11390. * BFD_RELOC_PDP11_DISP_8_PCREL: howto manager. (line 591)
  11391. * BFD_RELOC_PJ_CODE_DIR16: howto manager. (line 596)
  11392. * BFD_RELOC_PJ_CODE_DIR32: howto manager. (line 597)
  11393. * BFD_RELOC_PJ_CODE_HI16: howto manager. (line 594)
  11394. * BFD_RELOC_PJ_CODE_LO16: howto manager. (line 595)
  11395. * BFD_RELOC_PJ_CODE_REL16: howto manager. (line 598)
  11396. * BFD_RELOC_PJ_CODE_REL32: howto manager. (line 599)
  11397. * BFD_RELOC_PPC64_ADDR16_DS: howto manager. (line 662)
  11398. * BFD_RELOC_PPC64_ADDR16_HIGH: howto manager. (line 673)
  11399. * BFD_RELOC_PPC64_ADDR16_HIGHA: howto manager. (line 674)
  11400. * BFD_RELOC_PPC64_ADDR16_LO_DS: howto manager. (line 663)
  11401. * BFD_RELOC_PPC64_ADDR64_LOCAL: howto manager. (line 675)
  11402. * BFD_RELOC_PPC64_DTPREL16_DS: howto manager. (line 714)
  11403. * BFD_RELOC_PPC64_DTPREL16_HIGH: howto manager. (line 722)
  11404. * BFD_RELOC_PPC64_DTPREL16_HIGHA: howto manager. (line 723)
  11405. * BFD_RELOC_PPC64_DTPREL16_HIGHER: howto manager. (line 716)
  11406. * BFD_RELOC_PPC64_DTPREL16_HIGHERA: howto manager. (line 717)
  11407. * BFD_RELOC_PPC64_DTPREL16_HIGHEST: howto manager. (line 718)
  11408. * BFD_RELOC_PPC64_DTPREL16_HIGHESTA: howto manager. (line 719)
  11409. * BFD_RELOC_PPC64_DTPREL16_LO_DS: howto manager. (line 715)
  11410. * BFD_RELOC_PPC64_ENTRY: howto manager. (line 676)
  11411. * BFD_RELOC_PPC64_GOT16_DS: howto manager. (line 664)
  11412. * BFD_RELOC_PPC64_GOT16_LO_DS: howto manager. (line 665)
  11413. * BFD_RELOC_PPC64_HIGHER: howto manager. (line 650)
  11414. * BFD_RELOC_PPC64_HIGHER_S: howto manager. (line 651)
  11415. * BFD_RELOC_PPC64_HIGHEST: howto manager. (line 652)
  11416. * BFD_RELOC_PPC64_HIGHEST_S: howto manager. (line 653)
  11417. * BFD_RELOC_PPC64_PLT16_LO_DS: howto manager. (line 666)
  11418. * BFD_RELOC_PPC64_PLTGOT16: howto manager. (line 658)
  11419. * BFD_RELOC_PPC64_PLTGOT16_DS: howto manager. (line 671)
  11420. * BFD_RELOC_PPC64_PLTGOT16_HA: howto manager. (line 661)
  11421. * BFD_RELOC_PPC64_PLTGOT16_HI: howto manager. (line 660)
  11422. * BFD_RELOC_PPC64_PLTGOT16_LO: howto manager. (line 659)
  11423. * BFD_RELOC_PPC64_PLTGOT16_LO_DS: howto manager. (line 672)
  11424. * BFD_RELOC_PPC64_SECTOFF_DS: howto manager. (line 667)
  11425. * BFD_RELOC_PPC64_SECTOFF_LO_DS: howto manager. (line 668)
  11426. * BFD_RELOC_PPC64_TOC: howto manager. (line 657)
  11427. * BFD_RELOC_PPC64_TOC16_DS: howto manager. (line 669)
  11428. * BFD_RELOC_PPC64_TOC16_HA: howto manager. (line 656)
  11429. * BFD_RELOC_PPC64_TOC16_HI: howto manager. (line 655)
  11430. * BFD_RELOC_PPC64_TOC16_LO: howto manager. (line 654)
  11431. * BFD_RELOC_PPC64_TOC16_LO_DS: howto manager. (line 670)
  11432. * BFD_RELOC_PPC64_TPREL16_DS: howto manager. (line 708)
  11433. * BFD_RELOC_PPC64_TPREL16_HIGH: howto manager. (line 720)
  11434. * BFD_RELOC_PPC64_TPREL16_HIGHA: howto manager. (line 721)
  11435. * BFD_RELOC_PPC64_TPREL16_HIGHER: howto manager. (line 710)
  11436. * BFD_RELOC_PPC64_TPREL16_HIGHERA: howto manager. (line 711)
  11437. * BFD_RELOC_PPC64_TPREL16_HIGHEST: howto manager. (line 712)
  11438. * BFD_RELOC_PPC64_TPREL16_HIGHESTA: howto manager. (line 713)
  11439. * BFD_RELOC_PPC64_TPREL16_LO_DS: howto manager. (line 709)
  11440. * BFD_RELOC_PPC_16DX_HA: howto manager. (line 648)
  11441. * BFD_RELOC_PPC_B16: howto manager. (line 604)
  11442. * BFD_RELOC_PPC_B16_BRNTAKEN: howto manager. (line 606)
  11443. * BFD_RELOC_PPC_B16_BRTAKEN: howto manager. (line 605)
  11444. * BFD_RELOC_PPC_B26: howto manager. (line 601)
  11445. * BFD_RELOC_PPC_BA16: howto manager. (line 607)
  11446. * BFD_RELOC_PPC_BA16_BRNTAKEN: howto manager. (line 609)
  11447. * BFD_RELOC_PPC_BA16_BRTAKEN: howto manager. (line 608)
  11448. * BFD_RELOC_PPC_BA26: howto manager. (line 602)
  11449. * BFD_RELOC_PPC_COPY: howto manager. (line 610)
  11450. * BFD_RELOC_PPC_DTPMOD: howto manager. (line 681)
  11451. * BFD_RELOC_PPC_DTPREL: howto manager. (line 691)
  11452. * BFD_RELOC_PPC_DTPREL16: howto manager. (line 687)
  11453. * BFD_RELOC_PPC_DTPREL16_HA: howto manager. (line 690)
  11454. * BFD_RELOC_PPC_DTPREL16_HI: howto manager. (line 689)
  11455. * BFD_RELOC_PPC_DTPREL16_LO: howto manager. (line 688)
  11456. * BFD_RELOC_PPC_EMB_BIT_FLD: howto manager. (line 629)
  11457. * BFD_RELOC_PPC_EMB_MRKREF: howto manager. (line 624)
  11458. * BFD_RELOC_PPC_EMB_NADDR16: howto manager. (line 616)
  11459. * BFD_RELOC_PPC_EMB_NADDR16_HA: howto manager. (line 619)
  11460. * BFD_RELOC_PPC_EMB_NADDR16_HI: howto manager. (line 618)
  11461. * BFD_RELOC_PPC_EMB_NADDR16_LO: howto manager. (line 617)
  11462. * BFD_RELOC_PPC_EMB_NADDR32: howto manager. (line 615)
  11463. * BFD_RELOC_PPC_EMB_RELSDA: howto manager. (line 630)
  11464. * BFD_RELOC_PPC_EMB_RELSEC16: howto manager. (line 625)
  11465. * BFD_RELOC_PPC_EMB_RELST_HA: howto manager. (line 628)
  11466. * BFD_RELOC_PPC_EMB_RELST_HI: howto manager. (line 627)
  11467. * BFD_RELOC_PPC_EMB_RELST_LO: howto manager. (line 626)
  11468. * BFD_RELOC_PPC_EMB_SDA21: howto manager. (line 623)
  11469. * BFD_RELOC_PPC_EMB_SDA2I16: howto manager. (line 621)
  11470. * BFD_RELOC_PPC_EMB_SDA2REL: howto manager. (line 622)
  11471. * BFD_RELOC_PPC_EMB_SDAI16: howto manager. (line 620)
  11472. * BFD_RELOC_PPC_GLOB_DAT: howto manager. (line 611)
  11473. * BFD_RELOC_PPC_GOT_DTPREL16: howto manager. (line 704)
  11474. * BFD_RELOC_PPC_GOT_DTPREL16_HA: howto manager. (line 707)
  11475. * BFD_RELOC_PPC_GOT_DTPREL16_HI: howto manager. (line 706)
  11476. * BFD_RELOC_PPC_GOT_DTPREL16_LO: howto manager. (line 705)
  11477. * BFD_RELOC_PPC_GOT_TLSGD16: howto manager. (line 692)
  11478. * BFD_RELOC_PPC_GOT_TLSGD16_HA: howto manager. (line 695)
  11479. * BFD_RELOC_PPC_GOT_TLSGD16_HI: howto manager. (line 694)
  11480. * BFD_RELOC_PPC_GOT_TLSGD16_LO: howto manager. (line 693)
  11481. * BFD_RELOC_PPC_GOT_TLSLD16: howto manager. (line 696)
  11482. * BFD_RELOC_PPC_GOT_TLSLD16_HA: howto manager. (line 699)
  11483. * BFD_RELOC_PPC_GOT_TLSLD16_HI: howto manager. (line 698)
  11484. * BFD_RELOC_PPC_GOT_TLSLD16_LO: howto manager. (line 697)
  11485. * BFD_RELOC_PPC_GOT_TPREL16: howto manager. (line 700)
  11486. * BFD_RELOC_PPC_GOT_TPREL16_HA: howto manager. (line 703)
  11487. * BFD_RELOC_PPC_GOT_TPREL16_HI: howto manager. (line 702)
  11488. * BFD_RELOC_PPC_GOT_TPREL16_LO: howto manager. (line 701)
  11489. * BFD_RELOC_PPC_JMP_SLOT: howto manager. (line 612)
  11490. * BFD_RELOC_PPC_LOCAL24PC: howto manager. (line 614)
  11491. * BFD_RELOC_PPC_REL16DX_HA: howto manager. (line 649)
  11492. * BFD_RELOC_PPC_RELATIVE: howto manager. (line 613)
  11493. * BFD_RELOC_PPC_TLS: howto manager. (line 678)
  11494. * BFD_RELOC_PPC_TLSGD: howto manager. (line 679)
  11495. * BFD_RELOC_PPC_TLSLD: howto manager. (line 680)
  11496. * BFD_RELOC_PPC_TOC16: howto manager. (line 603)
  11497. * BFD_RELOC_PPC_TPREL: howto manager. (line 686)
  11498. * BFD_RELOC_PPC_TPREL16: howto manager. (line 682)
  11499. * BFD_RELOC_PPC_TPREL16_HA: howto manager. (line 685)
  11500. * BFD_RELOC_PPC_TPREL16_HI: howto manager. (line 684)
  11501. * BFD_RELOC_PPC_TPREL16_LO: howto manager. (line 683)
  11502. * BFD_RELOC_PPC_VLE_HA16A: howto manager. (line 638)
  11503. * BFD_RELOC_PPC_VLE_HA16D: howto manager. (line 639)
  11504. * BFD_RELOC_PPC_VLE_HI16A: howto manager. (line 636)
  11505. * BFD_RELOC_PPC_VLE_HI16D: howto manager. (line 637)
  11506. * BFD_RELOC_PPC_VLE_LO16A: howto manager. (line 634)
  11507. * BFD_RELOC_PPC_VLE_LO16D: howto manager. (line 635)
  11508. * BFD_RELOC_PPC_VLE_REL15: howto manager. (line 632)
  11509. * BFD_RELOC_PPC_VLE_REL24: howto manager. (line 633)
  11510. * BFD_RELOC_PPC_VLE_REL8: howto manager. (line 631)
  11511. * BFD_RELOC_PPC_VLE_SDA21: howto manager. (line 640)
  11512. * BFD_RELOC_PPC_VLE_SDA21_LO: howto manager. (line 641)
  11513. * BFD_RELOC_PPC_VLE_SDAREL_HA16A: howto manager. (line 646)
  11514. * BFD_RELOC_PPC_VLE_SDAREL_HA16D: howto manager. (line 647)
  11515. * BFD_RELOC_PPC_VLE_SDAREL_HI16A: howto manager. (line 644)
  11516. * BFD_RELOC_PPC_VLE_SDAREL_HI16D: howto manager. (line 645)
  11517. * BFD_RELOC_PPC_VLE_SDAREL_LO16A: howto manager. (line 642)
  11518. * BFD_RELOC_PPC_VLE_SDAREL_LO16D: howto manager. (line 643)
  11519. * BFD_RELOC_RELC: howto manager. (line 2399)
  11520. * BFD_RELOC_RISCV_ADD16: howto manager. (line 1782)
  11521. * BFD_RELOC_RISCV_ADD32: howto manager. (line 1783)
  11522. * BFD_RELOC_RISCV_ADD64: howto manager. (line 1784)
  11523. * BFD_RELOC_RISCV_ADD8: howto manager. (line 1781)
  11524. * BFD_RELOC_RISCV_ALIGN: howto manager. (line 1799)
  11525. * BFD_RELOC_RISCV_CALL: howto manager. (line 1779)
  11526. * BFD_RELOC_RISCV_CALL_PLT: howto manager. (line 1780)
  11527. * BFD_RELOC_RISCV_CFA: howto manager. (line 1808)
  11528. * BFD_RELOC_RISCV_GOT_HI20: howto manager. (line 1789)
  11529. * BFD_RELOC_RISCV_GPREL12_I: howto manager. (line 1773)
  11530. * BFD_RELOC_RISCV_GPREL12_S: howto manager. (line 1774)
  11531. * BFD_RELOC_RISCV_GPREL_I: howto manager. (line 1803)
  11532. * BFD_RELOC_RISCV_GPREL_S: howto manager. (line 1804)
  11533. * BFD_RELOC_RISCV_HI20: howto manager. (line 1767)
  11534. * BFD_RELOC_RISCV_JMP: howto manager. (line 1792)
  11535. * BFD_RELOC_RISCV_LO12_I: howto manager. (line 1771)
  11536. * BFD_RELOC_RISCV_LO12_S: howto manager. (line 1772)
  11537. * BFD_RELOC_RISCV_PCREL_HI20: howto manager. (line 1768)
  11538. * BFD_RELOC_RISCV_PCREL_LO12_I: howto manager. (line 1769)
  11539. * BFD_RELOC_RISCV_PCREL_LO12_S: howto manager. (line 1770)
  11540. * BFD_RELOC_RISCV_RELAX: howto manager. (line 1807)
  11541. * BFD_RELOC_RISCV_RVC_BRANCH: howto manager. (line 1800)
  11542. * BFD_RELOC_RISCV_RVC_JUMP: howto manager. (line 1801)
  11543. * BFD_RELOC_RISCV_RVC_LUI: howto manager. (line 1802)
  11544. * BFD_RELOC_RISCV_SET16: howto manager. (line 1812)
  11545. * BFD_RELOC_RISCV_SET32: howto manager. (line 1813)
  11546. * BFD_RELOC_RISCV_SET6: howto manager. (line 1810)
  11547. * BFD_RELOC_RISCV_SET8: howto manager. (line 1811)
  11548. * BFD_RELOC_RISCV_SUB16: howto manager. (line 1786)
  11549. * BFD_RELOC_RISCV_SUB32: howto manager. (line 1787)
  11550. * BFD_RELOC_RISCV_SUB6: howto manager. (line 1809)
  11551. * BFD_RELOC_RISCV_SUB64: howto manager. (line 1788)
  11552. * BFD_RELOC_RISCV_SUB8: howto manager. (line 1785)
  11553. * BFD_RELOC_RISCV_TLS_DTPMOD32: howto manager. (line 1793)
  11554. * BFD_RELOC_RISCV_TLS_DTPMOD64: howto manager. (line 1795)
  11555. * BFD_RELOC_RISCV_TLS_DTPREL32: howto manager. (line 1794)
  11556. * BFD_RELOC_RISCV_TLS_DTPREL64: howto manager. (line 1796)
  11557. * BFD_RELOC_RISCV_TLS_GD_HI20: howto manager. (line 1791)
  11558. * BFD_RELOC_RISCV_TLS_GOT_HI20: howto manager. (line 1790)
  11559. * BFD_RELOC_RISCV_TLS_TPREL32: howto manager. (line 1797)
  11560. * BFD_RELOC_RISCV_TLS_TPREL64: howto manager. (line 1798)
  11561. * BFD_RELOC_RISCV_TPREL_ADD: howto manager. (line 1778)
  11562. * BFD_RELOC_RISCV_TPREL_HI20: howto manager. (line 1775)
  11563. * BFD_RELOC_RISCV_TPREL_I: howto manager. (line 1805)
  11564. * BFD_RELOC_RISCV_TPREL_LO12_I: howto manager. (line 1776)
  11565. * BFD_RELOC_RISCV_TPREL_LO12_S: howto manager. (line 1777)
  11566. * BFD_RELOC_RISCV_TPREL_S: howto manager. (line 1806)
  11567. * BFD_RELOC_RL78_16U: howto manager. (line 1823)
  11568. * BFD_RELOC_RL78_16_OP: howto manager. (line 1819)
  11569. * BFD_RELOC_RL78_24U: howto manager. (line 1824)
  11570. * BFD_RELOC_RL78_24_OP: howto manager. (line 1820)
  11571. * BFD_RELOC_RL78_32_OP: howto manager. (line 1821)
  11572. * BFD_RELOC_RL78_8U: howto manager. (line 1822)
  11573. * BFD_RELOC_RL78_ABS16: howto manager. (line 1836)
  11574. * BFD_RELOC_RL78_ABS16U: howto manager. (line 1840)
  11575. * BFD_RELOC_RL78_ABS16UL: howto manager. (line 1842)
  11576. * BFD_RELOC_RL78_ABS16UW: howto manager. (line 1841)
  11577. * BFD_RELOC_RL78_ABS16_REV: howto manager. (line 1837)
  11578. * BFD_RELOC_RL78_ABS32: howto manager. (line 1838)
  11579. * BFD_RELOC_RL78_ABS32_REV: howto manager. (line 1839)
  11580. * BFD_RELOC_RL78_ABS8: howto manager. (line 1835)
  11581. * BFD_RELOC_RL78_CODE: howto manager. (line 1847)
  11582. * BFD_RELOC_RL78_DIFF: howto manager. (line 1826)
  11583. * BFD_RELOC_RL78_DIR3U_PCREL: howto manager. (line 1825)
  11584. * BFD_RELOC_RL78_GPRELB: howto manager. (line 1827)
  11585. * BFD_RELOC_RL78_GPRELL: howto manager. (line 1829)
  11586. * BFD_RELOC_RL78_GPRELW: howto manager. (line 1828)
  11587. * BFD_RELOC_RL78_HI16: howto manager. (line 1844)
  11588. * BFD_RELOC_RL78_HI8: howto manager. (line 1845)
  11589. * BFD_RELOC_RL78_LO16: howto manager. (line 1846)
  11590. * BFD_RELOC_RL78_NEG16: howto manager. (line 1816)
  11591. * BFD_RELOC_RL78_NEG24: howto manager. (line 1817)
  11592. * BFD_RELOC_RL78_NEG32: howto manager. (line 1818)
  11593. * BFD_RELOC_RL78_NEG8: howto manager. (line 1815)
  11594. * BFD_RELOC_RL78_OP_AND: howto manager. (line 1833)
  11595. * BFD_RELOC_RL78_OP_NEG: howto manager. (line 1832)
  11596. * BFD_RELOC_RL78_OP_SHRA: howto manager. (line 1834)
  11597. * BFD_RELOC_RL78_OP_SUBTRACT: howto manager. (line 1831)
  11598. * BFD_RELOC_RL78_RELAX: howto manager. (line 1843)
  11599. * BFD_RELOC_RL78_SADDR: howto manager. (line 1848)
  11600. * BFD_RELOC_RL78_SYM: howto manager. (line 1830)
  11601. * BFD_RELOC_RVA: howto manager. (line 97)
  11602. * BFD_RELOC_RX_16U: howto manager. (line 1858)
  11603. * BFD_RELOC_RX_16_OP: howto manager. (line 1854)
  11604. * BFD_RELOC_RX_24U: howto manager. (line 1859)
  11605. * BFD_RELOC_RX_24_OP: howto manager. (line 1855)
  11606. * BFD_RELOC_RX_32_OP: howto manager. (line 1856)
  11607. * BFD_RELOC_RX_8U: howto manager. (line 1857)
  11608. * BFD_RELOC_RX_ABS16: howto manager. (line 1869)
  11609. * BFD_RELOC_RX_ABS16U: howto manager. (line 1873)
  11610. * BFD_RELOC_RX_ABS16UL: howto manager. (line 1875)
  11611. * BFD_RELOC_RX_ABS16UW: howto manager. (line 1874)
  11612. * BFD_RELOC_RX_ABS16_REV: howto manager. (line 1870)
  11613. * BFD_RELOC_RX_ABS32: howto manager. (line 1871)
  11614. * BFD_RELOC_RX_ABS32_REV: howto manager. (line 1872)
  11615. * BFD_RELOC_RX_ABS8: howto manager. (line 1868)
  11616. * BFD_RELOC_RX_DIFF: howto manager. (line 1861)
  11617. * BFD_RELOC_RX_DIR3U_PCREL: howto manager. (line 1860)
  11618. * BFD_RELOC_RX_GPRELB: howto manager. (line 1862)
  11619. * BFD_RELOC_RX_GPRELL: howto manager. (line 1864)
  11620. * BFD_RELOC_RX_GPRELW: howto manager. (line 1863)
  11621. * BFD_RELOC_RX_NEG16: howto manager. (line 1851)
  11622. * BFD_RELOC_RX_NEG24: howto manager. (line 1852)
  11623. * BFD_RELOC_RX_NEG32: howto manager. (line 1853)
  11624. * BFD_RELOC_RX_NEG8: howto manager. (line 1850)
  11625. * BFD_RELOC_RX_OP_NEG: howto manager. (line 1867)
  11626. * BFD_RELOC_RX_OP_SUBTRACT: howto manager. (line 1866)
  11627. * BFD_RELOC_RX_RELAX: howto manager. (line 1876)
  11628. * BFD_RELOC_RX_SYM: howto manager. (line 1865)
  11629. * BFD_RELOC_SCORE16_BRANCH: howto manager. (line 1979)
  11630. * BFD_RELOC_SCORE16_JMP: howto manager. (line 1977)
  11631. * BFD_RELOC_SCORE_BCMP: howto manager. (line 1981)
  11632. * BFD_RELOC_SCORE_BRANCH: howto manager. (line 1971)
  11633. * BFD_RELOC_SCORE_CALL15: howto manager. (line 1985)
  11634. * BFD_RELOC_SCORE_DUMMY2: howto manager. (line 1968)
  11635. * BFD_RELOC_SCORE_DUMMY_HI16: howto manager. (line 1986)
  11636. * BFD_RELOC_SCORE_GOT15: howto manager. (line 1983)
  11637. * BFD_RELOC_SCORE_GOT_LO16: howto manager. (line 1984)
  11638. * BFD_RELOC_SCORE_GPREL15: howto manager. (line 1966)
  11639. * BFD_RELOC_SCORE_IMM30: howto manager. (line 1973)
  11640. * BFD_RELOC_SCORE_IMM32: howto manager. (line 1975)
  11641. * BFD_RELOC_SCORE_JMP: howto manager. (line 1969)
  11642. * BFD_RELOC_SH_ALIGN: howto manager. (line 899)
  11643. * BFD_RELOC_SH_CODE: howto manager. (line 900)
  11644. * BFD_RELOC_SH_COPY: howto manager. (line 905)
  11645. * BFD_RELOC_SH_COPY64: howto manager. (line 930)
  11646. * BFD_RELOC_SH_COUNT: howto manager. (line 898)
  11647. * BFD_RELOC_SH_DATA: howto manager. (line 901)
  11648. * BFD_RELOC_SH_DISP12: howto manager. (line 881)
  11649. * BFD_RELOC_SH_DISP12BY2: howto manager. (line 882)
  11650. * BFD_RELOC_SH_DISP12BY4: howto manager. (line 883)
  11651. * BFD_RELOC_SH_DISP12BY8: howto manager. (line 884)
  11652. * BFD_RELOC_SH_DISP20: howto manager. (line 885)
  11653. * BFD_RELOC_SH_DISP20BY8: howto manager. (line 886)
  11654. * BFD_RELOC_SH_FUNCDESC: howto manager. (line 973)
  11655. * BFD_RELOC_SH_GLOB_DAT: howto manager. (line 906)
  11656. * BFD_RELOC_SH_GLOB_DAT64: howto manager. (line 931)
  11657. * BFD_RELOC_SH_GOT10BY4: howto manager. (line 934)
  11658. * BFD_RELOC_SH_GOT10BY8: howto manager. (line 935)
  11659. * BFD_RELOC_SH_GOT20: howto manager. (line 967)
  11660. * BFD_RELOC_SH_GOTFUNCDESC: howto manager. (line 969)
  11661. * BFD_RELOC_SH_GOTFUNCDESC20: howto manager. (line 970)
  11662. * BFD_RELOC_SH_GOTOFF20: howto manager. (line 968)
  11663. * BFD_RELOC_SH_GOTOFFFUNCDESC: howto manager. (line 971)
  11664. * BFD_RELOC_SH_GOTOFFFUNCDESC20: howto manager. (line 972)
  11665. * BFD_RELOC_SH_GOTOFF_HI16: howto manager. (line 925)
  11666. * BFD_RELOC_SH_GOTOFF_LOW16: howto manager. (line 922)
  11667. * BFD_RELOC_SH_GOTOFF_MEDHI16: howto manager. (line 924)
  11668. * BFD_RELOC_SH_GOTOFF_MEDLOW16: howto manager. (line 923)
  11669. * BFD_RELOC_SH_GOTPC: howto manager. (line 909)
  11670. * BFD_RELOC_SH_GOTPC_HI16: howto manager. (line 929)
  11671. * BFD_RELOC_SH_GOTPC_LOW16: howto manager. (line 926)
  11672. * BFD_RELOC_SH_GOTPC_MEDHI16: howto manager. (line 928)
  11673. * BFD_RELOC_SH_GOTPC_MEDLOW16: howto manager. (line 927)
  11674. * BFD_RELOC_SH_GOTPLT10BY4: howto manager. (line 936)
  11675. * BFD_RELOC_SH_GOTPLT10BY8: howto manager. (line 937)
  11676. * BFD_RELOC_SH_GOTPLT32: howto manager. (line 938)
  11677. * BFD_RELOC_SH_GOTPLT_HI16: howto manager. (line 917)
  11678. * BFD_RELOC_SH_GOTPLT_LOW16: howto manager. (line 914)
  11679. * BFD_RELOC_SH_GOTPLT_MEDHI16: howto manager. (line 916)
  11680. * BFD_RELOC_SH_GOTPLT_MEDLOW16: howto manager. (line 915)
  11681. * BFD_RELOC_SH_GOT_HI16: howto manager. (line 913)
  11682. * BFD_RELOC_SH_GOT_LOW16: howto manager. (line 910)
  11683. * BFD_RELOC_SH_GOT_MEDHI16: howto manager. (line 912)
  11684. * BFD_RELOC_SH_GOT_MEDLOW16: howto manager. (line 911)
  11685. * BFD_RELOC_SH_IMM3: howto manager. (line 879)
  11686. * BFD_RELOC_SH_IMM3U: howto manager. (line 880)
  11687. * BFD_RELOC_SH_IMM4: howto manager. (line 887)
  11688. * BFD_RELOC_SH_IMM4BY2: howto manager. (line 888)
  11689. * BFD_RELOC_SH_IMM4BY4: howto manager. (line 889)
  11690. * BFD_RELOC_SH_IMM8: howto manager. (line 890)
  11691. * BFD_RELOC_SH_IMM8BY2: howto manager. (line 891)
  11692. * BFD_RELOC_SH_IMM8BY4: howto manager. (line 892)
  11693. * BFD_RELOC_SH_IMMS10: howto manager. (line 944)
  11694. * BFD_RELOC_SH_IMMS10BY2: howto manager. (line 945)
  11695. * BFD_RELOC_SH_IMMS10BY4: howto manager. (line 946)
  11696. * BFD_RELOC_SH_IMMS10BY8: howto manager. (line 947)
  11697. * BFD_RELOC_SH_IMMS16: howto manager. (line 948)
  11698. * BFD_RELOC_SH_IMMS6: howto manager. (line 941)
  11699. * BFD_RELOC_SH_IMMS6BY32: howto manager. (line 942)
  11700. * BFD_RELOC_SH_IMMU16: howto manager. (line 949)
  11701. * BFD_RELOC_SH_IMMU5: howto manager. (line 940)
  11702. * BFD_RELOC_SH_IMMU6: howto manager. (line 943)
  11703. * BFD_RELOC_SH_IMM_HI16: howto manager. (line 956)
  11704. * BFD_RELOC_SH_IMM_HI16_PCREL: howto manager. (line 957)
  11705. * BFD_RELOC_SH_IMM_LOW16: howto manager. (line 950)
  11706. * BFD_RELOC_SH_IMM_LOW16_PCREL: howto manager. (line 951)
  11707. * BFD_RELOC_SH_IMM_MEDHI16: howto manager. (line 954)
  11708. * BFD_RELOC_SH_IMM_MEDHI16_PCREL: howto manager. (line 955)
  11709. * BFD_RELOC_SH_IMM_MEDLOW16: howto manager. (line 952)
  11710. * BFD_RELOC_SH_IMM_MEDLOW16_PCREL: howto manager. (line 953)
  11711. * BFD_RELOC_SH_JMP_SLOT: howto manager. (line 907)
  11712. * BFD_RELOC_SH_JMP_SLOT64: howto manager. (line 932)
  11713. * BFD_RELOC_SH_LABEL: howto manager. (line 902)
  11714. * BFD_RELOC_SH_LOOP_END: howto manager. (line 904)
  11715. * BFD_RELOC_SH_LOOP_START: howto manager. (line 903)
  11716. * BFD_RELOC_SH_PCDISP12BY2: howto manager. (line 878)
  11717. * BFD_RELOC_SH_PCDISP8BY2: howto manager. (line 877)
  11718. * BFD_RELOC_SH_PCRELIMM8BY2: howto manager. (line 893)
  11719. * BFD_RELOC_SH_PCRELIMM8BY4: howto manager. (line 894)
  11720. * BFD_RELOC_SH_PLT_HI16: howto manager. (line 921)
  11721. * BFD_RELOC_SH_PLT_LOW16: howto manager. (line 918)
  11722. * BFD_RELOC_SH_PLT_MEDHI16: howto manager. (line 920)
  11723. * BFD_RELOC_SH_PLT_MEDLOW16: howto manager. (line 919)
  11724. * BFD_RELOC_SH_PT_16: howto manager. (line 958)
  11725. * BFD_RELOC_SH_RELATIVE: howto manager. (line 908)
  11726. * BFD_RELOC_SH_RELATIVE64: howto manager. (line 933)
  11727. * BFD_RELOC_SH_SHMEDIA_CODE: howto manager. (line 939)
  11728. * BFD_RELOC_SH_SWITCH16: howto manager. (line 895)
  11729. * BFD_RELOC_SH_SWITCH32: howto manager. (line 896)
  11730. * BFD_RELOC_SH_TLS_DTPMOD32: howto manager. (line 964)
  11731. * BFD_RELOC_SH_TLS_DTPOFF32: howto manager. (line 965)
  11732. * BFD_RELOC_SH_TLS_GD_32: howto manager. (line 959)
  11733. * BFD_RELOC_SH_TLS_IE_32: howto manager. (line 962)
  11734. * BFD_RELOC_SH_TLS_LDO_32: howto manager. (line 961)
  11735. * BFD_RELOC_SH_TLS_LD_32: howto manager. (line 960)
  11736. * BFD_RELOC_SH_TLS_LE_32: howto manager. (line 963)
  11737. * BFD_RELOC_SH_TLS_TPOFF32: howto manager. (line 966)
  11738. * BFD_RELOC_SH_USES: howto manager. (line 897)
  11739. * BFD_RELOC_SIZE32: howto manager. (line 69)
  11740. * BFD_RELOC_SIZE64: howto manager. (line 70)
  11741. * BFD_RELOC_SPARC13: howto manager. (line 125)
  11742. * BFD_RELOC_SPARC22: howto manager. (line 124)
  11743. * BFD_RELOC_SPARC_10: howto manager. (line 152)
  11744. * BFD_RELOC_SPARC_11: howto manager. (line 153)
  11745. * BFD_RELOC_SPARC_5: howto manager. (line 165)
  11746. * BFD_RELOC_SPARC_6: howto manager. (line 164)
  11747. * BFD_RELOC_SPARC_64: howto manager. (line 151)
  11748. * BFD_RELOC_SPARC_7: howto manager. (line 163)
  11749. * BFD_RELOC_SPARC_BASE13: howto manager. (line 148)
  11750. * BFD_RELOC_SPARC_BASE22: howto manager. (line 149)
  11751. * BFD_RELOC_SPARC_COPY: howto manager. (line 132)
  11752. * BFD_RELOC_SPARC_DISP64: howto manager. (line 166)
  11753. * BFD_RELOC_SPARC_GLOB_DAT: howto manager. (line 133)
  11754. * BFD_RELOC_SPARC_GOT10: howto manager. (line 126)
  11755. * BFD_RELOC_SPARC_GOT13: howto manager. (line 127)
  11756. * BFD_RELOC_SPARC_GOT22: howto manager. (line 128)
  11757. * BFD_RELOC_SPARC_GOTDATA_HIX22: howto manager. (line 139)
  11758. * BFD_RELOC_SPARC_GOTDATA_LOX10: howto manager. (line 140)
  11759. * BFD_RELOC_SPARC_GOTDATA_OP: howto manager. (line 143)
  11760. * BFD_RELOC_SPARC_GOTDATA_OP_HIX22: howto manager. (line 141)
  11761. * BFD_RELOC_SPARC_GOTDATA_OP_LOX10: howto manager. (line 142)
  11762. * BFD_RELOC_SPARC_H34: howto manager. (line 175)
  11763. * BFD_RELOC_SPARC_H44: howto manager. (line 171)
  11764. * BFD_RELOC_SPARC_HH22: howto manager. (line 155)
  11765. * BFD_RELOC_SPARC_HIX22: howto manager. (line 169)
  11766. * BFD_RELOC_SPARC_HM10: howto manager. (line 156)
  11767. * BFD_RELOC_SPARC_IRELATIVE: howto manager. (line 145)
  11768. * BFD_RELOC_SPARC_JMP_IREL: howto manager. (line 144)
  11769. * BFD_RELOC_SPARC_JMP_SLOT: howto manager. (line 134)
  11770. * BFD_RELOC_SPARC_L44: howto manager. (line 173)
  11771. * BFD_RELOC_SPARC_LM22: howto manager. (line 157)
  11772. * BFD_RELOC_SPARC_LOX10: howto manager. (line 170)
  11773. * BFD_RELOC_SPARC_M44: howto manager. (line 172)
  11774. * BFD_RELOC_SPARC_OLO10: howto manager. (line 154)
  11775. * BFD_RELOC_SPARC_PC10: howto manager. (line 129)
  11776. * BFD_RELOC_SPARC_PC22: howto manager. (line 130)
  11777. * BFD_RELOC_SPARC_PC_HH22: howto manager. (line 158)
  11778. * BFD_RELOC_SPARC_PC_HM10: howto manager. (line 159)
  11779. * BFD_RELOC_SPARC_PC_LM22: howto manager. (line 160)
  11780. * BFD_RELOC_SPARC_PLT32: howto manager. (line 167)
  11781. * BFD_RELOC_SPARC_PLT64: howto manager. (line 168)
  11782. * BFD_RELOC_SPARC_REGISTER: howto manager. (line 174)
  11783. * BFD_RELOC_SPARC_RELATIVE: howto manager. (line 135)
  11784. * BFD_RELOC_SPARC_REV32: howto manager. (line 180)
  11785. * BFD_RELOC_SPARC_SIZE32: howto manager. (line 176)
  11786. * BFD_RELOC_SPARC_SIZE64: howto manager. (line 177)
  11787. * BFD_RELOC_SPARC_TLS_DTPMOD32: howto manager. (line 200)
  11788. * BFD_RELOC_SPARC_TLS_DTPMOD64: howto manager. (line 201)
  11789. * BFD_RELOC_SPARC_TLS_DTPOFF32: howto manager. (line 202)
  11790. * BFD_RELOC_SPARC_TLS_DTPOFF64: howto manager. (line 203)
  11791. * BFD_RELOC_SPARC_TLS_GD_ADD: howto manager. (line 184)
  11792. * BFD_RELOC_SPARC_TLS_GD_CALL: howto manager. (line 185)
  11793. * BFD_RELOC_SPARC_TLS_GD_HI22: howto manager. (line 182)
  11794. * BFD_RELOC_SPARC_TLS_GD_LO10: howto manager. (line 183)
  11795. * BFD_RELOC_SPARC_TLS_IE_ADD: howto manager. (line 197)
  11796. * BFD_RELOC_SPARC_TLS_IE_HI22: howto manager. (line 193)
  11797. * BFD_RELOC_SPARC_TLS_IE_LD: howto manager. (line 195)
  11798. * BFD_RELOC_SPARC_TLS_IE_LDX: howto manager. (line 196)
  11799. * BFD_RELOC_SPARC_TLS_IE_LO10: howto manager. (line 194)
  11800. * BFD_RELOC_SPARC_TLS_LDM_ADD: howto manager. (line 188)
  11801. * BFD_RELOC_SPARC_TLS_LDM_CALL: howto manager. (line 189)
  11802. * BFD_RELOC_SPARC_TLS_LDM_HI22: howto manager. (line 186)
  11803. * BFD_RELOC_SPARC_TLS_LDM_LO10: howto manager. (line 187)
  11804. * BFD_RELOC_SPARC_TLS_LDO_ADD: howto manager. (line 192)
  11805. * BFD_RELOC_SPARC_TLS_LDO_HIX22: howto manager. (line 190)
  11806. * BFD_RELOC_SPARC_TLS_LDO_LOX10: howto manager. (line 191)
  11807. * BFD_RELOC_SPARC_TLS_LE_HIX22: howto manager. (line 198)
  11808. * BFD_RELOC_SPARC_TLS_LE_LOX10: howto manager. (line 199)
  11809. * BFD_RELOC_SPARC_TLS_TPOFF32: howto manager. (line 204)
  11810. * BFD_RELOC_SPARC_TLS_TPOFF64: howto manager. (line 205)
  11811. * BFD_RELOC_SPARC_UA16: howto manager. (line 136)
  11812. * BFD_RELOC_SPARC_UA32: howto manager. (line 137)
  11813. * BFD_RELOC_SPARC_UA64: howto manager. (line 138)
  11814. * BFD_RELOC_SPARC_WDISP10: howto manager. (line 178)
  11815. * BFD_RELOC_SPARC_WDISP16: howto manager. (line 161)
  11816. * BFD_RELOC_SPARC_WDISP19: howto manager. (line 162)
  11817. * BFD_RELOC_SPARC_WDISP22: howto manager. (line 123)
  11818. * BFD_RELOC_SPARC_WPLT30: howto manager. (line 131)
  11819. * BFD_RELOC_SPU_ADD_PIC: howto manager. (line 221)
  11820. * BFD_RELOC_SPU_HI16: howto manager. (line 218)
  11821. * BFD_RELOC_SPU_IMM10: howto manager. (line 209)
  11822. * BFD_RELOC_SPU_IMM10W: howto manager. (line 210)
  11823. * BFD_RELOC_SPU_IMM16: howto manager. (line 211)
  11824. * BFD_RELOC_SPU_IMM16W: howto manager. (line 212)
  11825. * BFD_RELOC_SPU_IMM18: howto manager. (line 213)
  11826. * BFD_RELOC_SPU_IMM7: howto manager. (line 207)
  11827. * BFD_RELOC_SPU_IMM8: howto manager. (line 208)
  11828. * BFD_RELOC_SPU_LO16: howto manager. (line 217)
  11829. * BFD_RELOC_SPU_PCREL16: howto manager. (line 216)
  11830. * BFD_RELOC_SPU_PCREL9a: howto manager. (line 214)
  11831. * BFD_RELOC_SPU_PCREL9b: howto manager. (line 215)
  11832. * BFD_RELOC_SPU_PPU32: howto manager. (line 219)
  11833. * BFD_RELOC_SPU_PPU64: howto manager. (line 220)
  11834. * BFD_RELOC_THUMB_PCREL_BLX: howto manager. (line 739)
  11835. * BFD_RELOC_THUMB_PCREL_BRANCH12: howto manager. (line 750)
  11836. * BFD_RELOC_THUMB_PCREL_BRANCH20: howto manager. (line 751)
  11837. * BFD_RELOC_THUMB_PCREL_BRANCH23: howto manager. (line 752)
  11838. * BFD_RELOC_THUMB_PCREL_BRANCH25: howto manager. (line 753)
  11839. * BFD_RELOC_THUMB_PCREL_BRANCH7: howto manager. (line 748)
  11840. * BFD_RELOC_THUMB_PCREL_BRANCH9: howto manager. (line 749)
  11841. * BFD_RELOC_TIC30_LDP: howto manager. (line 1478)
  11842. * BFD_RELOC_TIC54X_16_OF_23: howto manager. (line 1492)
  11843. * BFD_RELOC_TIC54X_23: howto manager. (line 1490)
  11844. * BFD_RELOC_TIC54X_MS7_OF_23: howto manager. (line 1496)
  11845. * BFD_RELOC_TIC54X_PARTLS7: howto manager. (line 1482)
  11846. * BFD_RELOC_TIC54X_PARTMS9: howto manager. (line 1486)
  11847. * BFD_RELOC_TILEGX_BROFF_X1: howto manager. (line 3089)
  11848. * BFD_RELOC_TILEGX_COPY: howto manager. (line 3085)
  11849. * BFD_RELOC_TILEGX_DEST_IMM8_X1: howto manager. (line 3096)
  11850. * BFD_RELOC_TILEGX_GLOB_DAT: howto manager. (line 3086)
  11851. * BFD_RELOC_TILEGX_HW0: howto manager. (line 3078)
  11852. * BFD_RELOC_TILEGX_HW0_LAST: howto manager. (line 3082)
  11853. * BFD_RELOC_TILEGX_HW1: howto manager. (line 3079)
  11854. * BFD_RELOC_TILEGX_HW1_LAST: howto manager. (line 3083)
  11855. * BFD_RELOC_TILEGX_HW2: howto manager. (line 3080)
  11856. * BFD_RELOC_TILEGX_HW2_LAST: howto manager. (line 3084)
  11857. * BFD_RELOC_TILEGX_HW3: howto manager. (line 3081)
  11858. * BFD_RELOC_TILEGX_IMM16_X0_HW0: howto manager. (line 3105)
  11859. * BFD_RELOC_TILEGX_IMM16_X0_HW0_GOT: howto manager. (line 3133)
  11860. * BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST: howto manager. (line 3113)
  11861. * BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_GOT: howto manager. (line 3141)
  11862. * BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_PCREL: howto manager. (line 3127)
  11863. * BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_PLT_PCREL: howto manager.
  11864. (line 3161)
  11865. * BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_TLS_GD: howto manager. (line 3155)
  11866. * BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_TLS_IE: howto manager. (line 3167)
  11867. * BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_TLS_LE: howto manager. (line 3151)
  11868. * BFD_RELOC_TILEGX_IMM16_X0_HW0_PCREL: howto manager. (line 3119)
  11869. * BFD_RELOC_TILEGX_IMM16_X0_HW0_PLT_PCREL: howto manager. (line 3135)
  11870. * BFD_RELOC_TILEGX_IMM16_X0_HW0_TLS_GD: howto manager. (line 3147)
  11871. * BFD_RELOC_TILEGX_IMM16_X0_HW0_TLS_IE: howto manager. (line 3159)
  11872. * BFD_RELOC_TILEGX_IMM16_X0_HW0_TLS_LE: howto manager. (line 3149)
  11873. * BFD_RELOC_TILEGX_IMM16_X0_HW1: howto manager. (line 3107)
  11874. * BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST: howto manager. (line 3115)
  11875. * BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_GOT: howto manager. (line 3143)
  11876. * BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_PCREL: howto manager. (line 3129)
  11877. * BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_PLT_PCREL: howto manager.
  11878. (line 3163)
  11879. * BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_TLS_GD: howto manager. (line 3157)
  11880. * BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_TLS_IE: howto manager. (line 3169)
  11881. * BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_TLS_LE: howto manager. (line 3153)
  11882. * BFD_RELOC_TILEGX_IMM16_X0_HW1_PCREL: howto manager. (line 3121)
  11883. * BFD_RELOC_TILEGX_IMM16_X0_HW1_PLT_PCREL: howto manager. (line 3137)
  11884. * BFD_RELOC_TILEGX_IMM16_X0_HW2: howto manager. (line 3109)
  11885. * BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST: howto manager. (line 3117)
  11886. * BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_PCREL: howto manager. (line 3131)
  11887. * BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_PLT_PCREL: howto manager.
  11888. (line 3165)
  11889. * BFD_RELOC_TILEGX_IMM16_X0_HW2_PCREL: howto manager. (line 3123)
  11890. * BFD_RELOC_TILEGX_IMM16_X0_HW2_PLT_PCREL: howto manager. (line 3139)
  11891. * BFD_RELOC_TILEGX_IMM16_X0_HW3: howto manager. (line 3111)
  11892. * BFD_RELOC_TILEGX_IMM16_X0_HW3_PCREL: howto manager. (line 3125)
  11893. * BFD_RELOC_TILEGX_IMM16_X0_HW3_PLT_PCREL: howto manager. (line 3145)
  11894. * BFD_RELOC_TILEGX_IMM16_X1_HW0: howto manager. (line 3106)
  11895. * BFD_RELOC_TILEGX_IMM16_X1_HW0_GOT: howto manager. (line 3134)
  11896. * BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST: howto manager. (line 3114)
  11897. * BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_GOT: howto manager. (line 3142)
  11898. * BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_PCREL: howto manager. (line 3128)
  11899. * BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_PLT_PCREL: howto manager.
  11900. (line 3162)
  11901. * BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_TLS_GD: howto manager. (line 3156)
  11902. * BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_TLS_IE: howto manager. (line 3168)
  11903. * BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_TLS_LE: howto manager. (line 3152)
  11904. * BFD_RELOC_TILEGX_IMM16_X1_HW0_PCREL: howto manager. (line 3120)
  11905. * BFD_RELOC_TILEGX_IMM16_X1_HW0_PLT_PCREL: howto manager. (line 3136)
  11906. * BFD_RELOC_TILEGX_IMM16_X1_HW0_TLS_GD: howto manager. (line 3148)
  11907. * BFD_RELOC_TILEGX_IMM16_X1_HW0_TLS_IE: howto manager. (line 3160)
  11908. * BFD_RELOC_TILEGX_IMM16_X1_HW0_TLS_LE: howto manager. (line 3150)
  11909. * BFD_RELOC_TILEGX_IMM16_X1_HW1: howto manager. (line 3108)
  11910. * BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST: howto manager. (line 3116)
  11911. * BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_GOT: howto manager. (line 3144)
  11912. * BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_PCREL: howto manager. (line 3130)
  11913. * BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_PLT_PCREL: howto manager.
  11914. (line 3164)
  11915. * BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_TLS_GD: howto manager. (line 3158)
  11916. * BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_TLS_IE: howto manager. (line 3170)
  11917. * BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_TLS_LE: howto manager. (line 3154)
  11918. * BFD_RELOC_TILEGX_IMM16_X1_HW1_PCREL: howto manager. (line 3122)
  11919. * BFD_RELOC_TILEGX_IMM16_X1_HW1_PLT_PCREL: howto manager. (line 3138)
  11920. * BFD_RELOC_TILEGX_IMM16_X1_HW2: howto manager. (line 3110)
  11921. * BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST: howto manager. (line 3118)
  11922. * BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_PCREL: howto manager. (line 3132)
  11923. * BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_PLT_PCREL: howto manager.
  11924. (line 3166)
  11925. * BFD_RELOC_TILEGX_IMM16_X1_HW2_PCREL: howto manager. (line 3124)
  11926. * BFD_RELOC_TILEGX_IMM16_X1_HW2_PLT_PCREL: howto manager. (line 3140)
  11927. * BFD_RELOC_TILEGX_IMM16_X1_HW3: howto manager. (line 3112)
  11928. * BFD_RELOC_TILEGX_IMM16_X1_HW3_PCREL: howto manager. (line 3126)
  11929. * BFD_RELOC_TILEGX_IMM16_X1_HW3_PLT_PCREL: howto manager. (line 3146)
  11930. * BFD_RELOC_TILEGX_IMM8_X0: howto manager. (line 3092)
  11931. * BFD_RELOC_TILEGX_IMM8_X0_TLS_ADD: howto manager. (line 3183)
  11932. * BFD_RELOC_TILEGX_IMM8_X0_TLS_GD_ADD: howto manager. (line 3178)
  11933. * BFD_RELOC_TILEGX_IMM8_X1: howto manager. (line 3094)
  11934. * BFD_RELOC_TILEGX_IMM8_X1_TLS_ADD: howto manager. (line 3184)
  11935. * BFD_RELOC_TILEGX_IMM8_X1_TLS_GD_ADD: howto manager. (line 3179)
  11936. * BFD_RELOC_TILEGX_IMM8_Y0: howto manager. (line 3093)
  11937. * BFD_RELOC_TILEGX_IMM8_Y0_TLS_ADD: howto manager. (line 3185)
  11938. * BFD_RELOC_TILEGX_IMM8_Y0_TLS_GD_ADD: howto manager. (line 3180)
  11939. * BFD_RELOC_TILEGX_IMM8_Y1: howto manager. (line 3095)
  11940. * BFD_RELOC_TILEGX_IMM8_Y1_TLS_ADD: howto manager. (line 3186)
  11941. * BFD_RELOC_TILEGX_IMM8_Y1_TLS_GD_ADD: howto manager. (line 3181)
  11942. * BFD_RELOC_TILEGX_JMP_SLOT: howto manager. (line 3087)
  11943. * BFD_RELOC_TILEGX_JUMPOFF_X1: howto manager. (line 3090)
  11944. * BFD_RELOC_TILEGX_JUMPOFF_X1_PLT: howto manager. (line 3091)
  11945. * BFD_RELOC_TILEGX_MF_IMM14_X1: howto manager. (line 3098)
  11946. * BFD_RELOC_TILEGX_MMEND_X0: howto manager. (line 3100)
  11947. * BFD_RELOC_TILEGX_MMSTART_X0: howto manager. (line 3099)
  11948. * BFD_RELOC_TILEGX_MT_IMM14_X1: howto manager. (line 3097)
  11949. * BFD_RELOC_TILEGX_RELATIVE: howto manager. (line 3088)
  11950. * BFD_RELOC_TILEGX_SHAMT_X0: howto manager. (line 3101)
  11951. * BFD_RELOC_TILEGX_SHAMT_X1: howto manager. (line 3102)
  11952. * BFD_RELOC_TILEGX_SHAMT_Y0: howto manager. (line 3103)
  11953. * BFD_RELOC_TILEGX_SHAMT_Y1: howto manager. (line 3104)
  11954. * BFD_RELOC_TILEGX_TLS_DTPMOD32: howto manager. (line 3174)
  11955. * BFD_RELOC_TILEGX_TLS_DTPMOD64: howto manager. (line 3171)
  11956. * BFD_RELOC_TILEGX_TLS_DTPOFF32: howto manager. (line 3175)
  11957. * BFD_RELOC_TILEGX_TLS_DTPOFF64: howto manager. (line 3172)
  11958. * BFD_RELOC_TILEGX_TLS_GD_CALL: howto manager. (line 3177)
  11959. * BFD_RELOC_TILEGX_TLS_IE_LOAD: howto manager. (line 3182)
  11960. * BFD_RELOC_TILEGX_TLS_TPOFF32: howto manager. (line 3176)
  11961. * BFD_RELOC_TILEGX_TLS_TPOFF64: howto manager. (line 3173)
  11962. * BFD_RELOC_TILEPRO_BROFF_X1: howto manager. (line 3002)
  11963. * BFD_RELOC_TILEPRO_COPY: howto manager. (line 2998)
  11964. * BFD_RELOC_TILEPRO_DEST_IMM8_X1: howto manager. (line 3009)
  11965. * BFD_RELOC_TILEPRO_GLOB_DAT: howto manager. (line 2999)
  11966. * BFD_RELOC_TILEPRO_IMM16_X0: howto manager. (line 3012)
  11967. * BFD_RELOC_TILEPRO_IMM16_X0_GOT: howto manager. (line 3028)
  11968. * BFD_RELOC_TILEPRO_IMM16_X0_GOT_HA: howto manager. (line 3034)
  11969. * BFD_RELOC_TILEPRO_IMM16_X0_GOT_HI: howto manager. (line 3032)
  11970. * BFD_RELOC_TILEPRO_IMM16_X0_GOT_LO: howto manager. (line 3030)
  11971. * BFD_RELOC_TILEPRO_IMM16_X0_HA: howto manager. (line 3018)
  11972. * BFD_RELOC_TILEPRO_IMM16_X0_HA_PCREL: howto manager. (line 3026)
  11973. * BFD_RELOC_TILEPRO_IMM16_X0_HI: howto manager. (line 3016)
  11974. * BFD_RELOC_TILEPRO_IMM16_X0_HI_PCREL: howto manager. (line 3024)
  11975. * BFD_RELOC_TILEPRO_IMM16_X0_LO: howto manager. (line 3014)
  11976. * BFD_RELOC_TILEPRO_IMM16_X0_LO_PCREL: howto manager. (line 3022)
  11977. * BFD_RELOC_TILEPRO_IMM16_X0_PCREL: howto manager. (line 3020)
  11978. * BFD_RELOC_TILEPRO_IMM16_X0_TLS_GD: howto manager. (line 3050)
  11979. * BFD_RELOC_TILEPRO_IMM16_X0_TLS_GD_HA: howto manager. (line 3056)
  11980. * BFD_RELOC_TILEPRO_IMM16_X0_TLS_GD_HI: howto manager. (line 3054)
  11981. * BFD_RELOC_TILEPRO_IMM16_X0_TLS_GD_LO: howto manager. (line 3052)
  11982. * BFD_RELOC_TILEPRO_IMM16_X0_TLS_IE: howto manager. (line 3058)
  11983. * BFD_RELOC_TILEPRO_IMM16_X0_TLS_IE_HA: howto manager. (line 3064)
  11984. * BFD_RELOC_TILEPRO_IMM16_X0_TLS_IE_HI: howto manager. (line 3062)
  11985. * BFD_RELOC_TILEPRO_IMM16_X0_TLS_IE_LO: howto manager. (line 3060)
  11986. * BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE: howto manager. (line 3069)
  11987. * BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_HA: howto manager. (line 3075)
  11988. * BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_HI: howto manager. (line 3073)
  11989. * BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_LO: howto manager. (line 3071)
  11990. * BFD_RELOC_TILEPRO_IMM16_X1: howto manager. (line 3013)
  11991. * BFD_RELOC_TILEPRO_IMM16_X1_GOT: howto manager. (line 3029)
  11992. * BFD_RELOC_TILEPRO_IMM16_X1_GOT_HA: howto manager. (line 3035)
  11993. * BFD_RELOC_TILEPRO_IMM16_X1_GOT_HI: howto manager. (line 3033)
  11994. * BFD_RELOC_TILEPRO_IMM16_X1_GOT_LO: howto manager. (line 3031)
  11995. * BFD_RELOC_TILEPRO_IMM16_X1_HA: howto manager. (line 3019)
  11996. * BFD_RELOC_TILEPRO_IMM16_X1_HA_PCREL: howto manager. (line 3027)
  11997. * BFD_RELOC_TILEPRO_IMM16_X1_HI: howto manager. (line 3017)
  11998. * BFD_RELOC_TILEPRO_IMM16_X1_HI_PCREL: howto manager. (line 3025)
  11999. * BFD_RELOC_TILEPRO_IMM16_X1_LO: howto manager. (line 3015)
  12000. * BFD_RELOC_TILEPRO_IMM16_X1_LO_PCREL: howto manager. (line 3023)
  12001. * BFD_RELOC_TILEPRO_IMM16_X1_PCREL: howto manager. (line 3021)
  12002. * BFD_RELOC_TILEPRO_IMM16_X1_TLS_GD: howto manager. (line 3051)
  12003. * BFD_RELOC_TILEPRO_IMM16_X1_TLS_GD_HA: howto manager. (line 3057)
  12004. * BFD_RELOC_TILEPRO_IMM16_X1_TLS_GD_HI: howto manager. (line 3055)
  12005. * BFD_RELOC_TILEPRO_IMM16_X1_TLS_GD_LO: howto manager. (line 3053)
  12006. * BFD_RELOC_TILEPRO_IMM16_X1_TLS_IE: howto manager. (line 3059)
  12007. * BFD_RELOC_TILEPRO_IMM16_X1_TLS_IE_HA: howto manager. (line 3065)
  12008. * BFD_RELOC_TILEPRO_IMM16_X1_TLS_IE_HI: howto manager. (line 3063)
  12009. * BFD_RELOC_TILEPRO_IMM16_X1_TLS_IE_LO: howto manager. (line 3061)
  12010. * BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE: howto manager. (line 3070)
  12011. * BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_HA: howto manager. (line 3076)
  12012. * BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_HI: howto manager. (line 3074)
  12013. * BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_LO: howto manager. (line 3072)
  12014. * BFD_RELOC_TILEPRO_IMM8_X0: howto manager. (line 3005)
  12015. * BFD_RELOC_TILEPRO_IMM8_X0_TLS_GD_ADD: howto manager. (line 3045)
  12016. * BFD_RELOC_TILEPRO_IMM8_X1: howto manager. (line 3007)
  12017. * BFD_RELOC_TILEPRO_IMM8_X1_TLS_GD_ADD: howto manager. (line 3046)
  12018. * BFD_RELOC_TILEPRO_IMM8_Y0: howto manager. (line 3006)
  12019. * BFD_RELOC_TILEPRO_IMM8_Y0_TLS_GD_ADD: howto manager. (line 3047)
  12020. * BFD_RELOC_TILEPRO_IMM8_Y1: howto manager. (line 3008)
  12021. * BFD_RELOC_TILEPRO_IMM8_Y1_TLS_GD_ADD: howto manager. (line 3048)
  12022. * BFD_RELOC_TILEPRO_JMP_SLOT: howto manager. (line 3000)
  12023. * BFD_RELOC_TILEPRO_JOFFLONG_X1: howto manager. (line 3003)
  12024. * BFD_RELOC_TILEPRO_JOFFLONG_X1_PLT: howto manager. (line 3004)
  12025. * BFD_RELOC_TILEPRO_MF_IMM15_X1: howto manager. (line 3011)
  12026. * BFD_RELOC_TILEPRO_MMEND_X0: howto manager. (line 3037)
  12027. * BFD_RELOC_TILEPRO_MMEND_X1: howto manager. (line 3039)
  12028. * BFD_RELOC_TILEPRO_MMSTART_X0: howto manager. (line 3036)
  12029. * BFD_RELOC_TILEPRO_MMSTART_X1: howto manager. (line 3038)
  12030. * BFD_RELOC_TILEPRO_MT_IMM15_X1: howto manager. (line 3010)
  12031. * BFD_RELOC_TILEPRO_RELATIVE: howto manager. (line 3001)
  12032. * BFD_RELOC_TILEPRO_SHAMT_X0: howto manager. (line 3040)
  12033. * BFD_RELOC_TILEPRO_SHAMT_X1: howto manager. (line 3041)
  12034. * BFD_RELOC_TILEPRO_SHAMT_Y0: howto manager. (line 3042)
  12035. * BFD_RELOC_TILEPRO_SHAMT_Y1: howto manager. (line 3043)
  12036. * BFD_RELOC_TILEPRO_TLS_DTPMOD32: howto manager. (line 3066)
  12037. * BFD_RELOC_TILEPRO_TLS_DTPOFF32: howto manager. (line 3067)
  12038. * BFD_RELOC_TILEPRO_TLS_GD_CALL: howto manager. (line 3044)
  12039. * BFD_RELOC_TILEPRO_TLS_IE_LOAD: howto manager. (line 3049)
  12040. * BFD_RELOC_TILEPRO_TLS_TPOFF32: howto manager. (line 3068)
  12041. * bfd_reloc_type_lookup: howto manager. (line 3213)
  12042. * BFD_RELOC_V850_16_GOT: howto manager. (line 1454)
  12043. * BFD_RELOC_V850_16_GOTOFF: howto manager. (line 1470)
  12044. * BFD_RELOC_V850_16_PCREL: howto manager. (line 1434)
  12045. * BFD_RELOC_V850_16_S1: howto manager. (line 1446)
  12046. * BFD_RELOC_V850_16_SPLIT_OFFSET: howto manager. (line 1444)
  12047. * BFD_RELOC_V850_17_PCREL: howto manager. (line 1436)
  12048. * BFD_RELOC_V850_22_PCREL: howto manager. (line 1388)
  12049. * BFD_RELOC_V850_22_PLT_PCREL: howto manager. (line 1458)
  12050. * BFD_RELOC_V850_23: howto manager. (line 1438)
  12051. * BFD_RELOC_V850_32_ABS: howto manager. (line 1442)
  12052. * BFD_RELOC_V850_32_GOT: howto manager. (line 1456)
  12053. * BFD_RELOC_V850_32_GOTOFF: howto manager. (line 1472)
  12054. * BFD_RELOC_V850_32_GOTPCREL: howto manager. (line 1452)
  12055. * BFD_RELOC_V850_32_PCREL: howto manager. (line 1440)
  12056. * BFD_RELOC_V850_32_PLT_PCREL: howto manager. (line 1460)
  12057. * BFD_RELOC_V850_9_PCREL: howto manager. (line 1386)
  12058. * BFD_RELOC_V850_ALIGN: howto manager. (line 1429)
  12059. * BFD_RELOC_V850_CALLT_15_16_OFFSET: howto manager. (line 1450)
  12060. * BFD_RELOC_V850_CALLT_16_16_OFFSET: howto manager. (line 1423)
  12061. * BFD_RELOC_V850_CALLT_6_7_OFFSET: howto manager. (line 1421)
  12062. * BFD_RELOC_V850_CODE: howto manager. (line 1474)
  12063. * BFD_RELOC_V850_COPY: howto manager. (line 1462)
  12064. * BFD_RELOC_V850_DATA: howto manager. (line 1476)
  12065. * BFD_RELOC_V850_GLOB_DAT: howto manager. (line 1464)
  12066. * BFD_RELOC_V850_JMP_SLOT: howto manager. (line 1466)
  12067. * BFD_RELOC_V850_LO16_S1: howto manager. (line 1448)
  12068. * BFD_RELOC_V850_LO16_SPLIT_OFFSET: howto manager. (line 1431)
  12069. * BFD_RELOC_V850_LONGCALL: howto manager. (line 1425)
  12070. * BFD_RELOC_V850_LONGJUMP: howto manager. (line 1427)
  12071. * BFD_RELOC_V850_RELATIVE: howto manager. (line 1468)
  12072. * BFD_RELOC_V850_SDA_15_16_OFFSET: howto manager. (line 1392)
  12073. * BFD_RELOC_V850_SDA_16_16_OFFSET: howto manager. (line 1390)
  12074. * BFD_RELOC_V850_SDA_16_16_SPLIT_OFFSET: howto manager. (line 1415)
  12075. * BFD_RELOC_V850_TDA_16_16_OFFSET: howto manager. (line 1408)
  12076. * BFD_RELOC_V850_TDA_4_4_OFFSET: howto manager. (line 1413)
  12077. * BFD_RELOC_V850_TDA_4_5_OFFSET: howto manager. (line 1410)
  12078. * BFD_RELOC_V850_TDA_6_8_OFFSET: howto manager. (line 1400)
  12079. * BFD_RELOC_V850_TDA_7_7_OFFSET: howto manager. (line 1406)
  12080. * BFD_RELOC_V850_TDA_7_8_OFFSET: howto manager. (line 1403)
  12081. * BFD_RELOC_V850_ZDA_15_16_OFFSET: howto manager. (line 1397)
  12082. * BFD_RELOC_V850_ZDA_16_16_OFFSET: howto manager. (line 1395)
  12083. * BFD_RELOC_V850_ZDA_16_16_SPLIT_OFFSET: howto manager. (line 1418)
  12084. * BFD_RELOC_VAX_GLOB_DAT: howto manager. (line 2406)
  12085. * BFD_RELOC_VAX_JMP_SLOT: howto manager. (line 2407)
  12086. * BFD_RELOC_VAX_RELATIVE: howto manager. (line 2408)
  12087. * BFD_RELOC_VISIUM_HI16: howto manager. (line 3203)
  12088. * BFD_RELOC_VISIUM_HI16_PCREL: howto manager. (line 3207)
  12089. * BFD_RELOC_VISIUM_IM16: howto manager. (line 3205)
  12090. * BFD_RELOC_VISIUM_IM16_PCREL: howto manager. (line 3209)
  12091. * BFD_RELOC_VISIUM_LO16: howto manager. (line 3204)
  12092. * BFD_RELOC_VISIUM_LO16_PCREL: howto manager. (line 3208)
  12093. * BFD_RELOC_VISIUM_REL16: howto manager. (line 3206)
  12094. * BFD_RELOC_VPE4KMATH_DATA: howto manager. (line 2009)
  12095. * BFD_RELOC_VPE4KMATH_INSN: howto manager. (line 2010)
  12096. * BFD_RELOC_VTABLE_ENTRY: howto manager. (line 2013)
  12097. * BFD_RELOC_VTABLE_INHERIT: howto manager. (line 2012)
  12098. * BFD_RELOC_X86_64_32S: howto manager. (line 553)
  12099. * BFD_RELOC_X86_64_COPY: howto manager. (line 548)
  12100. * BFD_RELOC_X86_64_DTPMOD64: howto manager. (line 554)
  12101. * BFD_RELOC_X86_64_DTPOFF32: howto manager. (line 559)
  12102. * BFD_RELOC_X86_64_DTPOFF64: howto manager. (line 555)
  12103. * BFD_RELOC_X86_64_GLOB_DAT: howto manager. (line 549)
  12104. * BFD_RELOC_X86_64_GOT32: howto manager. (line 546)
  12105. * BFD_RELOC_X86_64_GOT64: howto manager. (line 564)
  12106. * BFD_RELOC_X86_64_GOTOFF64: howto manager. (line 562)
  12107. * BFD_RELOC_X86_64_GOTPC32: howto manager. (line 563)
  12108. * BFD_RELOC_X86_64_GOTPC32_TLSDESC: howto manager. (line 569)
  12109. * BFD_RELOC_X86_64_GOTPC64: howto manager. (line 566)
  12110. * BFD_RELOC_X86_64_GOTPCREL: howto manager. (line 552)
  12111. * BFD_RELOC_X86_64_GOTPCREL64: howto manager. (line 565)
  12112. * BFD_RELOC_X86_64_GOTPCRELX: howto manager. (line 575)
  12113. * BFD_RELOC_X86_64_GOTPLT64: howto manager. (line 567)
  12114. * BFD_RELOC_X86_64_GOTTPOFF: howto manager. (line 560)
  12115. * BFD_RELOC_X86_64_IRELATIVE: howto manager. (line 572)
  12116. * BFD_RELOC_X86_64_JUMP_SLOT: howto manager. (line 550)
  12117. * BFD_RELOC_X86_64_PC32_BND: howto manager. (line 573)
  12118. * BFD_RELOC_X86_64_PLT32: howto manager. (line 547)
  12119. * BFD_RELOC_X86_64_PLT32_BND: howto manager. (line 574)
  12120. * BFD_RELOC_X86_64_PLTOFF64: howto manager. (line 568)
  12121. * BFD_RELOC_X86_64_RELATIVE: howto manager. (line 551)
  12122. * BFD_RELOC_X86_64_REX_GOTPCRELX: howto manager. (line 576)
  12123. * BFD_RELOC_X86_64_TLSDESC: howto manager. (line 571)
  12124. * BFD_RELOC_X86_64_TLSDESC_CALL: howto manager. (line 570)
  12125. * BFD_RELOC_X86_64_TLSGD: howto manager. (line 557)
  12126. * BFD_RELOC_X86_64_TLSLD: howto manager. (line 558)
  12127. * BFD_RELOC_X86_64_TPOFF32: howto manager. (line 561)
  12128. * BFD_RELOC_X86_64_TPOFF64: howto manager. (line 556)
  12129. * BFD_RELOC_XC16X_PAG: howto manager. (line 2401)
  12130. * BFD_RELOC_XC16X_POF: howto manager. (line 2402)
  12131. * BFD_RELOC_XC16X_SEG: howto manager. (line 2403)
  12132. * BFD_RELOC_XC16X_SOF: howto manager. (line 2404)
  12133. * BFD_RELOC_XGATE_24: howto manager. (line 2156)
  12134. * BFD_RELOC_XGATE_GPAGE: howto manager. (line 2154)
  12135. * BFD_RELOC_XGATE_IMM3: howto manager. (line 2168)
  12136. * BFD_RELOC_XGATE_IMM4: howto manager. (line 2170)
  12137. * BFD_RELOC_XGATE_IMM5: howto manager. (line 2172)
  12138. * BFD_RELOC_XGATE_IMM8_HI: howto manager. (line 2165)
  12139. * BFD_RELOC_XGATE_IMM8_LO: howto manager. (line 2162)
  12140. * BFD_RELOC_XGATE_LO16: howto manager. (line 2151)
  12141. * BFD_RELOC_XGATE_PCREL_10: howto manager. (line 2160)
  12142. * BFD_RELOC_XGATE_PCREL_9: howto manager. (line 2158)
  12143. * BFD_RELOC_XGATE_RL_GROUP: howto manager. (line 2147)
  12144. * BFD_RELOC_XGATE_RL_JUMP: howto manager. (line 2144)
  12145. * BFD_RELOC_XSTORMY16_12: howto manager. (line 2395)
  12146. * BFD_RELOC_XSTORMY16_24: howto manager. (line 2396)
  12147. * BFD_RELOC_XSTORMY16_FPTR16: howto manager. (line 2397)
  12148. * BFD_RELOC_XSTORMY16_REL_12: howto manager. (line 2394)
  12149. * BFD_RELOC_XTENSA_ASM_EXPAND: howto manager. (line 2564)
  12150. * BFD_RELOC_XTENSA_ASM_SIMPLIFY: howto manager. (line 2568)
  12151. * BFD_RELOC_XTENSA_DIFF16: howto manager. (line 2515)
  12152. * BFD_RELOC_XTENSA_DIFF32: howto manager. (line 2516)
  12153. * BFD_RELOC_XTENSA_DIFF8: howto manager. (line 2514)
  12154. * BFD_RELOC_XTENSA_GLOB_DAT: howto manager. (line 2506)
  12155. * BFD_RELOC_XTENSA_JMP_SLOT: howto manager. (line 2507)
  12156. * BFD_RELOC_XTENSA_OP0: howto manager. (line 2559)
  12157. * BFD_RELOC_XTENSA_OP1: howto manager. (line 2560)
  12158. * BFD_RELOC_XTENSA_OP2: howto manager. (line 2561)
  12159. * BFD_RELOC_XTENSA_PLT: howto manager. (line 2510)
  12160. * BFD_RELOC_XTENSA_RELATIVE: howto manager. (line 2508)
  12161. * BFD_RELOC_XTENSA_RTLD: howto manager. (line 2502)
  12162. * BFD_RELOC_XTENSA_SLOT0_ALT: howto manager. (line 2542)
  12163. * BFD_RELOC_XTENSA_SLOT0_OP: howto manager. (line 2523)
  12164. * BFD_RELOC_XTENSA_SLOT10_ALT: howto manager. (line 2552)
  12165. * BFD_RELOC_XTENSA_SLOT10_OP: howto manager. (line 2533)
  12166. * BFD_RELOC_XTENSA_SLOT11_ALT: howto manager. (line 2553)
  12167. * BFD_RELOC_XTENSA_SLOT11_OP: howto manager. (line 2534)
  12168. * BFD_RELOC_XTENSA_SLOT12_ALT: howto manager. (line 2554)
  12169. * BFD_RELOC_XTENSA_SLOT12_OP: howto manager. (line 2535)
  12170. * BFD_RELOC_XTENSA_SLOT13_ALT: howto manager. (line 2555)
  12171. * BFD_RELOC_XTENSA_SLOT13_OP: howto manager. (line 2536)
  12172. * BFD_RELOC_XTENSA_SLOT14_ALT: howto manager. (line 2556)
  12173. * BFD_RELOC_XTENSA_SLOT14_OP: howto manager. (line 2537)
  12174. * BFD_RELOC_XTENSA_SLOT1_ALT: howto manager. (line 2543)
  12175. * BFD_RELOC_XTENSA_SLOT1_OP: howto manager. (line 2524)
  12176. * BFD_RELOC_XTENSA_SLOT2_ALT: howto manager. (line 2544)
  12177. * BFD_RELOC_XTENSA_SLOT2_OP: howto manager. (line 2525)
  12178. * BFD_RELOC_XTENSA_SLOT3_ALT: howto manager. (line 2545)
  12179. * BFD_RELOC_XTENSA_SLOT3_OP: howto manager. (line 2526)
  12180. * BFD_RELOC_XTENSA_SLOT4_ALT: howto manager. (line 2546)
  12181. * BFD_RELOC_XTENSA_SLOT4_OP: howto manager. (line 2527)
  12182. * BFD_RELOC_XTENSA_SLOT5_ALT: howto manager. (line 2547)
  12183. * BFD_RELOC_XTENSA_SLOT5_OP: howto manager. (line 2528)
  12184. * BFD_RELOC_XTENSA_SLOT6_ALT: howto manager. (line 2548)
  12185. * BFD_RELOC_XTENSA_SLOT6_OP: howto manager. (line 2529)
  12186. * BFD_RELOC_XTENSA_SLOT7_ALT: howto manager. (line 2549)
  12187. * BFD_RELOC_XTENSA_SLOT7_OP: howto manager. (line 2530)
  12188. * BFD_RELOC_XTENSA_SLOT8_ALT: howto manager. (line 2550)
  12189. * BFD_RELOC_XTENSA_SLOT8_OP: howto manager. (line 2531)
  12190. * BFD_RELOC_XTENSA_SLOT9_ALT: howto manager. (line 2551)
  12191. * BFD_RELOC_XTENSA_SLOT9_OP: howto manager. (line 2532)
  12192. * BFD_RELOC_XTENSA_TLSDESC_ARG: howto manager. (line 2573)
  12193. * BFD_RELOC_XTENSA_TLSDESC_FN: howto manager. (line 2572)
  12194. * BFD_RELOC_XTENSA_TLS_ARG: howto manager. (line 2577)
  12195. * BFD_RELOC_XTENSA_TLS_CALL: howto manager. (line 2578)
  12196. * BFD_RELOC_XTENSA_TLS_DTPOFF: howto manager. (line 2574)
  12197. * BFD_RELOC_XTENSA_TLS_FUNC: howto manager. (line 2576)
  12198. * BFD_RELOC_XTENSA_TLS_TPOFF: howto manager. (line 2575)
  12199. * BFD_RELOC_Z80_DISP8: howto manager. (line 2580)
  12200. * BFD_RELOC_Z8K_CALLR: howto manager. (line 2584)
  12201. * BFD_RELOC_Z8K_DISP7: howto manager. (line 2582)
  12202. * BFD_RELOC_Z8K_IMM4L: howto manager. (line 2586)
  12203. * bfd_rename_section: section prototypes. (line 177)
  12204. * bfd_scan_arch: Architectures. (line 546)
  12205. * bfd_scan_vma: Miscellaneous. (line 124)
  12206. * bfd_sections_find_if: section prototypes. (line 207)
  12207. * bfd_section_already_linked: Writing the symbol table.
  12208. (line 55)
  12209. * bfd_section_list_clear: section prototypes. (line 7)
  12210. * bfd_set_archive_head: Archives. (line 74)
  12211. * bfd_set_arch_info: Architectures. (line 587)
  12212. * bfd_set_assert_handler: Error reporting. (line 135)
  12213. * bfd_set_default_target: bfd_target. (line 468)
  12214. * bfd_set_error: Error reporting. (line 57)
  12215. * bfd_set_error_handler: Error reporting. (line 100)
  12216. * bfd_set_error_program_name: Error reporting. (line 109)
  12217. * bfd_set_file_flags: Miscellaneous. (line 43)
  12218. * bfd_set_format: Formats. (line 67)
  12219. * bfd_set_gp_size: Miscellaneous. (line 114)
  12220. * bfd_set_private_flags: Miscellaneous. (line 172)
  12221. * bfd_set_reloc: Miscellaneous. (line 33)
  12222. * bfd_set_section_contents: section prototypes. (line 239)
  12223. * bfd_set_section_flags: section prototypes. (line 162)
  12224. * bfd_set_section_size: section prototypes. (line 224)
  12225. * bfd_set_start_address: Miscellaneous. (line 93)
  12226. * bfd_set_symtab: symbol handling functions.
  12227. (line 63)
  12228. * bfd_symbol_info: symbol handling functions.
  12229. (line 135)
  12230. * bfd_target_list: bfd_target. (line 520)
  12231. * bfd_update_compression_header: Miscellaneous. (line 348)
  12232. * bfd_write_bigendian_4byte_int: Internal. (line 12)
  12233. * bfd_zalloc: Opening and Closing.
  12234. (line 256)
  12235. * bfd_zalloc2: Opening and Closing.
  12236. (line 265)
  12237. * check_build_id_file: Opening and Closing.
  12238. (line 450)
  12239. * coff_symbol_type: coff. (line 244)
  12240. * core_file_matches_executable_p: Core Files. (line 38)
  12241. * find_separate_debug_file: Opening and Closing.
  12242. (line 331)
  12243. * generic_core_file_matches_executable_p: Core Files. (line 48)
  12244. * get_build_id: Opening and Closing.
  12245. (line 420)
  12246. * get_build_id_name: Opening and Closing.
  12247. (line 434)
  12248. * Hash tables: Hash Tables. (line 6)
  12249. * internal object-file format: Canonical format. (line 11)
  12250. * Linker: Linker Functions. (line 6)
  12251. * Other functions: Miscellaneous. (line 186)
  12252. * separate_alt_debug_file_exists: Opening and Closing.
  12253. (line 322)
  12254. * separate_debug_file_exists: Opening and Closing.
  12255. (line 313)
  12256. * struct bfd_iovec: Miscellaneous. (line 407)
  12257. * target vector (_bfd_final_link): Performing the Final Link.
  12258. (line 6)
  12259. * target vector (_bfd_link_add_symbols): Adding Symbols to the Hash Table.
  12260. (line 6)
  12261. * target vector (_bfd_link_hash_table_create): Creating a Linker Hash Table.
  12262. (line 6)
  12263. * The HOWTO Macro: typedef arelent. (line 289)
  12264. * what is it?: Overview. (line 6)
  12265. 
  12266. Tag Table:
  12267. Node: Top1054
  12268. Node: Overview1390
  12269. Node: History2448
  12270. Node: How It Works3393
  12271. Node: What BFD Version 2 Can Do4930
  12272. Node: BFD information loss6247
  12273. Node: Canonical format8788
  12274. Node: BFD front end13165
  12275. Node: typedef bfd13589
  12276. Node: Error reporting25893
  12277. Node: Miscellaneous30373
  12278. Node: Memory Usage48835
  12279. Node: Initialization50066
  12280. Node: Sections50525
  12281. Node: Section Input51008
  12282. Node: Section Output52377
  12283. Node: typedef asection54864
  12284. Node: section prototypes81597
  12285. Node: Symbols92204
  12286. Node: Reading Symbols93807
  12287. Node: Writing Symbols94915
  12288. Node: Mini Symbols96659
  12289. Node: typedef asymbol97633
  12290. Node: symbol handling functions103689
  12291. Node: Archives109027
  12292. Node: Formats113055
  12293. Node: Relocations116006
  12294. Node: typedef arelent116733
  12295. Node: howto manager132389
  12296. Node: Core Files255354
  12297. Node: Targets257392
  12298. Node: bfd_target259367
  12299. Node: Architectures282873
  12300. Node: Opening and Closing312221
  12301. Node: Internal329053
  12302. Node: File Caching335402
  12303. Node: Linker Functions337320
  12304. Node: Creating a Linker Hash Table338994
  12305. Node: Adding Symbols to the Hash Table340733
  12306. Node: Differing file formats341633
  12307. Node: Adding symbols from an object file343358
  12308. Node: Adding symbols from an archive345508
  12309. Node: Performing the Final Link347854
  12310. Node: Information provided by the linker349095
  12311. Node: Relocating the section contents350249
  12312. Node: Writing the symbol table352001
  12313. Node: Hash Tables358135
  12314. Node: Creating and Freeing a Hash Table359333
  12315. Node: Looking Up or Entering a String360583
  12316. Node: Traversing a Hash Table361836
  12317. Node: Deriving a New Hash Table Type362625
  12318. Node: Define the Derived Structures363691
  12319. Node: Write the Derived Creation Routine364772
  12320. Node: Write Other Derived Routines367396
  12321. Node: BFD back ends368711
  12322. Node: What to Put Where368981
  12323. Node: aout369161
  12324. Node: coff375504
  12325. Node: elf404374
  12326. Node: mmo404775
  12327. Node: File layout405645
  12328. Node: Symbol-table411559
  12329. Node: mmo section mapping415322
  12330. Node: GNU Free Documentation License418976
  12331. Node: BFD Index444040
  12332. 
  12333. End Tag Table